Foundry NetIron M2404C and M2404F Metro Access Switches Configuring VLANs (Rev.03)
Virtual LANs
© 2008 Foundry Networks, Inc.
Page 31 of 73
2. Create an interface to the subnet sw2 and add the IP interface 21.10.3.6/16:
device-name
(config)#
interface sw2
device-name
(config-if sw2)#
ip address 21.10.3.6/16
device-name
(config-if sw2)#
exit
3.
Create the VLAN
Research
with VLAN ID 100:
device-name
(config vlan)#
create Research 100
device-name
(config)#
vlan
4. Add ports 1/1/2-1/1/5 as tagged to VLAN
Research
and attach the subnet sw4 to this VLAN:
device-name
(config vlan)#
config Research
device-name
(config-vlan Research)#
add ports 1/1/2-1/1/5 tagged
device-name
(config-vlan Research)#
rif sw4
device-name
(config-vlan Research)#
exit
5. Create the VLAN
Production
with VLAN ID 200:
device-name
(config vlan)#
create Production 200
6. Add ports 1/1/6, 1/1/8 as untagged to VLAN
Production
and attach the subnet sw2 to this
VLAN:
device-name
(config vlan)#
config Production
device-name
(config-vlan Production)#
add ports 1/1/6,1/1/8 untagged
device-name
(config-vlan Production)#
add ports default 1/1/6,1/1/8
device-name
(config-vlan Production)#
rif sw2
device-name
(config-vlan Research)#
end
7. Display the configured VLANs:
device-name
#
show vlan
=====================================================================
Name | VTag | Rout If | Tagged ports | Untagged ports
-----------------+------+---------+-----------------+--------------
Default | 1 | sw0 | |1/1/1-1/1/28
Research | 100 | sw4 |1/1/2-1/1/5 |
Production | 200 | sw2 | |1/1/6,1/1/8
device-name
#
show running-config port
...
!
interface 1/1/5
!
interface 1/1/6
default vlan 200
!
interface 1/1/7
!
interface 1/1/8
default vlan 200
...
! VLAN configuration:
!
vlan
create research 100
config research
add ports 1/1/2-1/1/5 tagged
rif sw4