VLAN types
Normal Range:- 2-1001 ( configurable )
1002 - FDDI
1003 - Token Ring ( IBM )
1004 - FDDI.net
1005 - Trnet
1006 - 1023 - Testing
Extended Range:- 1024-4095 Uses only in L3 Switch .
Default all ports in VLAN1.
Vlan configuration two ways :
1.Traditional Method ( Not recommended )
sw#vlan database
sw# vlan 10
sw# apply
This method will directly write to flash.
name of Vlan file in flash - vlan.dat
To delete Vlan from flash -> delete flash:vlan.dat
If you removed the running config of the router , then VLAN wont be removed
Vlan saves in FLASH , running config saved in NVRAM.
2.New Method
sw(config) #vlan 10
sw(config-vlan)#name CCNP
sw#sh vlan brief Verification command
Multiple Vlan creation using single command
sw(config)# vlan 2-1001
sw(config)#vlan 2,3,4,5,6-10,13-19
port assigning to vlan
sw(config)#int fa0/1
sw(config-if)#switchport access vlan 2
Multiple interfaces assigning to Vlan
sw(config)#int range fa0/1-24 ( this command does not work in some of the L3 switches , you have to use space after fa 0/1 - 24 )
sw(config-if-range)#switchport access vlan 3
Normal Range:- 2-1001 ( configurable )
1002 - FDDI
1003 - Token Ring ( IBM )
1004 - FDDI.net
1005 - Trnet
1006 - 1023 - Testing
Extended Range:- 1024-4095 Uses only in L3 Switch .
Default all ports in VLAN1.
Vlan configuration two ways :
1.Traditional Method ( Not recommended )
sw#vlan database
sw# vlan 10
sw# apply
This method will directly write to flash.
Default all ports are in Vlan 1.
name of Vlan file in flash - vlan.dat
To delete Vlan from flash -> delete flash:vlan.dat
If you removed the running config of the router , then VLAN wont be removed
Vlan saves in FLASH , running config saved in NVRAM.
2.New Method
sw(config) #vlan 10
sw(config-vlan)#name CCNP
sw#sh vlan brief Verification command
Multiple Vlan creation using single command
sw(config)# vlan 2-1001
sw(config)#vlan 2,3,4,5,6-10,13-19
port assigning to vlan
sw(config)#int fa0/1
sw(config-if)#switchport access vlan 2
Multiple interfaces assigning to Vlan
sw(config)#int range fa0/1-24 ( this command does not work in some of the L3 switches , you have to use space after fa 0/1 - 24 )
sw(config-if-range)#switchport access vlan 3