Configuring Vlan on Cisco Switch
Introduction to VLAN
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
Learn about VTP
|