Configuring per-port S-VLAN membership

The svlan vid command supports tagged and untagged options to configure per-port S-VLAN memberships. Use these options from the configuration level by beginning the command with svlan vid , or from the context level of the specific VLAN by entering the command option.

Syntax:

svlan vid

tagged port-list

Configures the indicated ports as Tagged for the specified S-VLAN. The no version sets the ports to either No or (if GVRP is enabled) to Auto.

untagged port-list

Configures the indicated ports as Untagged for the specified S-VLAN. The no version sets the ports to either No or (if GVRP is enabled) to Auto

forbid port-list

Dynamic trunks cannot be involved as a part of any static configurations like forbid. Forbid can only be applied on ports and static trunks .The forbid configuration can be applied to only PPORTS and Static Trunks (Trk1….Trk144), and not to Dynamic LACP Trunks (Dyn1….Dyn144.)

The no version sets the ports to either no or (if GVRP is enabled) to Auto.

auto port-list

QinQ S-VLAN mode only. Available if GVRP is enabled on the switch. Returns the per-port settings for the specified S-VLAN to Auto operation. Auto is the default per-port setting for a static VLAN if GVRP is running on the switch.


[NOTE: ]

NOTE: Since provider-gvrp is not supported in a QinQ mixed VLAN mode environment, the forbid and auto configurations are available only in QinQ S-VLAN mode.


In QinQ mixed VLAN mode

An interface (port or trunk) must be explicitly GVRP-disabled before it can be assigned to the S-VLAN space. When you first attempt to configure a port as tagged for an S-VLAN, the CLI will issue a message disallowing the configuration.

config#: svlan 200 tagged a1,a2 GVRP enabled ports cannot be members of svlans. 
Disable the interface level gvrp configuration.

To disable GVRP at the interface, issue the following command:

config#: interface a1,a2 unknown-vlans disable

When you configure the port, the CLI will issue a warning prompt:

config#: svlan 200 tagged a1,a2 Ports a1, a2 will lose their cvlan memberships if any
Do you want to continue? [y/n]

Press Y to continue and automatically configure both ports as port-type provider-network (the default for all S-VLAN member ports).