Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring MPLS and H-VPLS (Rev. 03)
Multiprotocol Label Switching
© 2008 Foundry Networks, Inc
Page 61 of 113
DeviceA
(config-vlan default)#
remove ports 1/1/27
DeviceA
(config-vlan default)#
exit
DeviceA
(config vlan)#
exit
3. Create virtual loopback interface lo1:
DeviceA
(config)#
interface lo1
DeviceA
(config-if lo1)#
ip address 2.2.2.2/32
DeviceA
(config-if lo1)#
exit
4. Add static route to the Loopback interface of the Spoke device:
DeviceA
(config)#
ip route 1.1.1.1/32 11.0.0.1
5. Create static LSPs:
DeviceA
(config)#
mpls static-lsp lsp-1
DeviceA
(config-static-lsp lsp-1)#
push 41
DeviceA
(config-static-lsplsp-1)#
inet-map 1.1.1.1/32
DeviceA
(config-static-lsp lsp-1)#
nexthop 11.0.0.1 sw1
DeviceA
(config-static-lsp lsp-1)#
no shutdown
DeviceA
(config-static-lsp lsp-1)#
exit
DeviceA
(config)#
mpls static-lsp lsp-2
DeviceA
(config-static-lsp lsp-2)#
pop
DeviceA
(config-static-lsp lsp-2)#
label-map 32 sw1
DeviceA
(config-static-lsp lsp-2)#
no shutdown
DeviceA
(config-static-lsp lsp-2)#
exit
6. Set VPLS mode and define VPLS instance “12”:
DeviceA
(config)#
vpls mode unqualified
DeviceA
(config)#
vpls 12
DeviceA
(config-vpls 12)#
def-vc-id 10
DeviceA
(config-vpls 12)#
sap 1/1/1
DeviceA
(config-vpls 12)#
spoke-sdp static 1/1/27 remote-peer 1.1.1.1
outgoing-vc-label 2222 incoming-vc-label 3222
DeviceA
(config-vpls 12)#
exit
DeviceA
(config)#
exit
Device B Configuration
1. Create interface sw2 and VLAN v12:
DeviceB
#
configure terminal
DeviceB
(config)#
interface sw2
DeviceB
(config-if sw2)#
ip address 12.0.0.2/8
DeviceB
(config-if sw2)#
exit
DeviceB
(config)#
vlan
DeviceB
(config vlan)#
create v12 12
DeviceB
(config vlan)#
config v12
DeviceB
(config-vlan v12)#
add ports 1/1/27 untagged
DeviceB
(config-vlan v12)#
add ports default 1/1/27
DeviceB
(config-vlan v12)#
rif sw2
DeviceB
(config-vlan v12)#
exit
2. Remove uplink from the default VLAN:
DeviceB
(config vlan)#
config default
DeviceB
(config-vlan default)#
remove ports 1/1/27
DeviceB
(config-vlan default)#
exit