Friday, June 5, 2009

Cisco Lab 3 : VLAN

1. Setup and remove VLAN database
2. Static access port assignment in VLAN
3. Static trunk port VLAN setup
4. Virtual trunking protocol (vtp)
5. VTP pruning

Note : Maximum vlan support on Catalyst 2950 = 128

Setup VLAN database
1. Setup self IP address of switch
2. Setup VLAN database
switch#vlan database
3. Setup vlan record
switch(vlan)# vlan "vlan number (0,1,...,128)" name "vlan name"

Remove VLAN database
There are two alternative ways to remove vlan database
1. Remove by individual
switch#vlan database
switch(vlan)#no vlan "vlan number" e.g. #no vlan2
2. Remove all of database
switch#delete flash:vlan.dat

Static access port assignment in VLAN
1. Enter Global configuration mode
switch#conf t
2. port assignment : there are two alternative ways individual or group assignment
First way : individual port assignment
- Enter interface configuation
switch(config)#interface "interface-type" "module"/"number" e.g. #int fa0/1
- Set port access mode
switch(config-if)#switchport mode access
- Assign vlan to port
switch(config-if)#switchport access vlan "vlan number"

Second way : group of port assignment
- Enter group of interface configuation
switch(config)#interface range "interface-type" "module"/"begin number" - "end number" e.g. #int fa0/1 - 24
- Set port access mode
switch(config-if-range)#switchport mode access
- Assign vlan to port
switch(config-if-range)#switchport access vlan "vlan number"

Static trunk port assignment in VLAN
1. Enter interface of trunk port
switch(config)#interface "interface-type" "module"/"number"
2. Change mode to trunk mode
switch(config-if)#switchport mode trunk
3. Verify
switch#show interface status
switch#show interface
"interface-type" "module"/"number"
4. limited vlan to access trunk
switch(config-if)#switchport trunk allow vlan "begin vlan number"-"end vlan number"

Virtual trunking protocol (VTP)
1. Setup vtp domain
switch#vlan database
switch(vlan)#vtp domain "domain name"
2. Set mode of vtp equipment
switch(vlan)#vtp {server / client / transparent}
3. (optional) Set password on vtp
switch(vlan)#vtp password xxxx
4. Verify result
switch#show vtp status

VTP Pruning
1. Enable pruning
switch#vtp pruning

No comments:

Post a Comment