background image
Hands-on Labs
641
1002 fddi-default Suspended
1003 token-ring-defau Suspended
1004 fddinet-default Suspended
1005 trnet-default Suspended
--------------------------------------
# [output cut]
Lab B.4: Assigning VLANs to Switch Ports
In this lab, you will configure two ports of the switch to be a member of
each VLAN.
1.
Configure ports 1 and 2 to be in VLAN 2. Remember that all ports are
in VLAN 1 unless set differently.
1900A#config t
Enter configuration commands, one per line. End with
CNTL/Z
1900A(config)#int e0/1
1900A(config-if)#vlan-membership static 2
1900A(config-if)#int e0/2
1900A(config-if)#vlan-membership static 2
2.
Assign ports 3 and 4 to be in VLAN 3.
1900A(config-if)#int e0/3
1900A(config-if)#vlan-membership static 3
1900A(config-if)#int e0/4
1900A(config-if)#vlan-membership static 3
Assign ports 5 and 6 to be in VLAN 4.
1900A(config-if)#int e0/5
1900A(config-if)#vlan-membership static 4
1900A(config-if)#int e0/6
1900A(config-if)#vlan-membership static 4
Assign ports 7 and 8 to be in VLAN 5.
1900A(config-if)#int e0/7
1900A(config-if)#vlan-membership static 5
1900A(config-if)#int e0/8
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com