How to Create a Batch of VLANs Using a Single Command on Cisco Devices

VLANs are vital for networks, and there are two primary methods to create VLANs on Cisco devices. The first method involves creating a single VLAN.

The command below creates a single VLAN on a Cisco switch:

Switch(config)# vlan 10
Switch(config-vlan)# end
Switch# write memory

The second method allows you to create multiple VLANs using a single command. While the first method is functional, the second method is preferable due to its speed and efficiency.

To create multiple VLANs at once, use the following command:

Switch(config)# vlan 10,11,12,13,14,15,16,17,18,30-40

After running this command, the VLANs will be created.

A disadvantage of the second method is that it does not allow for directly assigning names to the VLANs. To assign a name to a specific VLAN, you can use the following command:

Switch(config)# vlan 10
Switch(config-vlan)# name HuseyinPala
Switch(config-vlan)# end
Switch# write memory

Stay tuned for more computer networking content.

About Hüseyin Pala 156 Articles
Junior Network Specialist

Be the first to comment

Leave a Reply

Your email address will not be published.


*