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:

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.

You can set forbid mode for MVRP enabled ports.

Set MVRP forbid mode

switch(eth-A1)# forbid
vlan                  Prevent this port from becoming a member of the
                      specified VLAN(s).
switch(eth-A1)# forbid vlan
[vlan]VLAN-ID-LIST    Enter a list of VLAN identifiers or one VLAN identifier.
switch(eth-A1)# forbid vlan 100
switch# show mvrp state 100

Configuration and Status - MVRP state for VLAN 100

Port     VLAN  Registrar Applicant Forbid
                State     State     Mode
-------- ----- --------- --------- ---------
A1       100    MT        AA        Yes