Command
Vlan
Use
This is the modern way to configure VLANs. A useful feature of this command is that you can configure a range of VLANs with a single command.
Syntax
Switch(config)#vlan <vlan range>
Options
<name> | Set VLAN name |
<exit> | Apply changes and leave VLAN configuration mode |
Example
In the below example we will configure VLAN 25 and name it MANAGEMENT.
Cat1(config)#vlan 25 VLAN Name Status Ports |
Now we will configure a VLAN range to configure many VLANs at once.
Cat1(config)#vlan 55-70,101-103 VLAN Name Status Ports VLAN Name Status Ports |