Wednesday, 2 October 2013

VLan -Virtual Lan

Vlan
     We can create multiple broadcast domain virtually by using Vlan.All the ports are member of Vlan 1.so Vlan 1 is called default Vlan.In common Vlan 1 is also called native Vlan.We can use Vlan ID member range from2 to 1001.

Creating Vlan

Switch>enable -press enter
Switch#config  -press enter
Switch(config)# vlan <vlan id> -we can give any ID from 1 to 1001
Switch(config)#name <anyname>
Switch(config)#exit
Switch#show vlan  [this command is used to view the created vlans]

Adding interfaces To Vlan 
Switch#config  -press enter
Switch(config)#Interface F0/1
Switch(config-if)# switchport mode access
Switch(config-if)#switchport access vlan <created vlan id>
Switch(config-if)#exit
            
Adding a range of ports to a Vlan
Switch(config)#interface range f0/1-5 [here we are adding port 1-5 into a vlan]
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan<created vlan id>
Switch(config-if)#exit
 Thank you.




1 comment: