Setting up S-VLANs

S-VLANs are created via the CLI using the svlan vid command.

Syntax:

svlan vid | ascii-name-string

[no] svlan vid

If vid does not exist in the switch, this command creates a port-based S-VLAN with the specified vid. If the command does not include options, the CLI moves to the newly created S-VLAN context. If you do not specify an optional name, the switch assigns a name in the default format: svlan where n is the vid assigned to the S-VLAN. If the S-VLAN already exists and you enter either the vid or the ascii-name-string, the CLI moves to the specified S-VLAN's context.

The no form of the command deletes the S-VLAN as follows:

  • If one or more ports belong only to the S-VLAN to be deleted, the CLI notifies you that these ports will be moved to the default VLAN and prompts you to continue the deletion. For member ports that also belong to another S-VLAN, there is no move prompt.


[NOTE: ]

NOTE: When QinQ is disabled, all VLANs must be C-VLANs. When QinQ is enabled in SVLAN mode, all VLANs must be S-VLANs. When QinQ is enabled in mixed VLAN mode, VLANs can be configured as either C-VLANs or S-VLANs.