cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
515
Views
0
Helpful
3
Replies

how to create vlans

Dragomir
Level 1
Level 1

how do I create vlans on ios switches?

3 Replies 3

smogra
Cisco Employee
Cisco Employee

Hi,

Please refer this document:

http://www.cisco.com/en/US/tech/tk389/tk689/technologies_configuration_example09186a008009478e.shtml

Hope that helps.

Sweta

P.S. Please rate the answers that helped you.

cadet alain
VIP Alumni
VIP Alumni

Hi,

there are 2 ways of creating vlans:

1) in vlan database mode ( deprecated)

switch# vlan database

               vlan 1 name toto

               apply

2) in config mode

     -switch(config)# vlan 1

                                   name toto

   you can also directly assign a vlan to a port and if it doesn't exists then it will create it for you( as long as the vtp mode is server or transparent): switch(config-interface)# switchport access vlan 1

Regards.

Alain.

Don't forget to rate helpful posts.

Hi Tony,

You can configure VLANs on Cisco Catalyst switch by using vlan command on the global configuration mode.

Remember, VLAN 1 is the administrative VLAN.

Swtich#config terminal

Switch(confing)#vlan 2

Switch(config-vlan)#name freetechexams

Switch(config-vlan)#vlan 3

Switch(config-vlan)#freetechexams1

Switch(config-vlan)#vlan 4

Switch(config-vlan)#freetechexams2

Switch(config-vlan)#^Z

Switch#

From the above configurations, 3 VLANs are created with the name of freetechexams, freetechexams1 and freetechexams2. VLANs can be created from 2 to 4094. VLAN 1 is reserved and created by default.

You can check the list of created VLANs by using Show vlan command.

Switch# Show vlan

A VLAN is useless if you have not assigned specific ports to a VLAN. You can add specific ports to a VLAN by using following steps

Switch# config t

Switch(config)# int fa0/3

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 3

Please rate the helpfull posts.

Regards,

Naidu.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card