VLAN range commands

VLANs specified by VLAN-ID-LIST

This command is executed from a global configuration context.

Syntax


vlan <VLAN-ID-LIST>
no vlan <VLAN-ID-LIST>

Description

Creates VLANs specified by the VLAN-ID-LIST and returns to the global configuration context. Use the no version of the command to delete the VLANs specified by the VLAN-ID-LIST.

Examples

config# vlan 2-15
config# vlan 5,10,13-20,25
config# no vlan 2-10
config# no vlan 2,5,15-18,25

VLANs specified by VLAN-ID-LIST and tag specified ports specified by PORT-LIST

Syntax


vlan <VLAN-ID-LIST> tagged <PORT-LIST>
no vlan <VLAN-ID-LIST> tagged <PORT-LIST>

Description

Creates VLANs specified by the VLAN-ID-LIST and tags the ports specified by the PORT-LIST to the VLAN-ID-LIST. If VLANs already exist, the tagging of ports specified by the PORT-LIST is performed.

Use the no form of the command to remove the tagged PORT-LIST from a range of VLANs specified by the VLAN-ID-LIST. After command execution, CLI returns to the global configuration context.

Examples

config# vlan 2-15 tagged A1-A20
config# vlan 5,10,13-20,25 tagged A1-A5,L2,L5-L10
config# vlan 2-20 tagged all
config# no vlan 2-15 tagged A1-A5
config# no vlan 5,10,13-20 tagged A1-A5,L6