06-28-2011 05:26 PM - edited 03-07-2019 01:00 AM
06-28-2011 05:35 PM
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.
06-29-2011 12:18 AM
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.
06-29-2011 01:34 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide