Switch Configuration Using VLAN ID (VID)

Referring to a VLAN (Virtual LAN) by VID and specifying lists of VIDs is a useful shortcut that can greatly reduce the number of commands required to configure the switch.

For example consider a scenario where two ports should be added to four tagged VLANs. Previously, this required four commands:
  • configure vlan red add ports 2, 10 tagged
  • configure vlan blue add ports 2, 10 tagged
  • configure vlan green add ports 2, 10 tagged
  • configure vlan orange add ports 2, 10 tagged
Assuming the tags for the VLANs are 100, 200, 300, 400 respectively this configuration can be accomplished with a single command:
  • configure vlan 100,200,300,400 add ports 2, 10 tagged
Note

Note

commands enhanced with VID list support operate in a “best effort” fashion. If one of the VIDs in a VID list do not exist the command is still executed for all of the VIDs in the list that do exist. No error or warning is displayed for the invalid VIDs unless all of the specified VIDs are in valid.