Scaling the Switch Block
111
You can configure each port to be in a VLAN by using the vlan-
membership
command. You can only configure VLANs port by port (there
is no command to assign more than one port to a VLAN at a time):
1900EN#config t
Enter configuration commands, one per line. End with CNTL/Z
1900EN(config)#int e0/2
1900EN(config-if)#v?
vlan-membership
1900EN(config-if)#vlan-membership ?
dynamic Set VLAN membership type as dynamic
static Set VLAN membership type as static
1900EN(config-if)#vlan-membership static ?
<1-1005> ISL VLAN index
1900EN(config-if)#vlan-membership static 2
1900EN(config-if)#int e0/4
1900EN(config-if)#vlan-membership static 3
1900EN(config-if)#int e0/5
1900EN(config-if)#vlan-membership static 4
1900EN(config-if)#exit
1900EN(config)#exit
Now, type show vlan again to see the ports assigned to each VLAN:
1900EN#sh vlan
VLAN Name Status Ports
--------------------------------------
1 default Enabled 1, 3, 6-12, AUI, A, B
2 sales Enabled 2
3 marketing Enabled 4
4 mis Enabled 5
1002 fddi-default Suspended
1003 token-ring-defau Suspended
1004 fddinet-default Suspended
1005 trnet-default Suspended
--------------------------------------
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com