Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring MPLS and H-VPLS (Rev. 03)
Multiprotocol Label Switching
© 2008 Foundry Networks, Inc
Page 63 of 113
Spoke
(config vlan)#
config v12
Spoke
(config-vlan v12)#
add ports 1/1/28 untagged
Spoke
(config-vlan v12)#
add ports default 1/1/28
Spoke
(config-vlan v12)#
rif sw2
Spoke
(config-vlan v12)#
exit
3. Remove uplinks from the default VLAN:
Spoke
(config vlan)#
config default
Spoke
(config-vlan default)#
remove ports 1/1/27,1/1/28
Spoke
(config-vlan default)#
exit
Spoke
(config vlan)#
exit
4. Create virtual loopback interface lo1:
Spoke
(config)#
interface lo1
Spoke
(config-if lo1)#
ip address 1.1.1.1/32
Spoke
(config-if lo1)#
exit
5. Add static route to the Loopback interface of the other devices:
Spoke
(config)#
ip route 2.2.2.2/32 11.0.0.2
Spoke
(config)#
ip route 3.3.3.3/32 12.0.0.2
6. Create static LSPs:
Spoke
(config)#
mpls static-lsp lsp-1
Spoke
(config-static-lsp lsp-1)#
push 32
Spoke
(config-static-lsp lsp-1)#
inet-map 2.2.2.2/32
Spoke
(config-static-lsp lsp-1)#
nexthop 11.0.0.2 sw1
Spoke
(config-static-lsp lsp-1)#
no shutdown
Spoke
(config-static-lsp lsp-1)#
exit
Spoke
(config)#
mpls static-lsp lsp-2
Spoke
(config-static-lsp lsp-2)#
pop
Spoke
(config-static-lsp lsp-2)#
label-map 41 sw1
Spoke
(config-static-lsp lsp-2)#
no shutdown
Spoke
(config-static-lsp lsp-2)#
exit
Spoke
(config)#
mpls static-lsp lsp-3
Spoke
(config-static-lsp lsp-3)#
push 33
Spoke
(config-static-lsp lsp-3)#
inet-map 3.3.3.3/32
Spoke
(config-static-lsp lsp-3)#
nexthop 12.0.0.2 sw2
Spoke
(config-static-lsp lsp-3)#
no shutdown
Spoke
(config-static-lsp lsp-3)#
exit
Spoke
(config)#
mpls static-lsp lsp-4
Spoke
(config-static-lsp lsp-4)#
pop
Spoke
(config-static-lsp lsp-4)#
label-map 51 sw2
Spoke
(config-static-lsp lsp-4)#
no shutdown
Spoke
(config-static-lsp lsp-4)#
exit
7. Set VPLS mode and define VPLS instance “12”:
Spoke
(config)#
vpls mode unqualified
Spoke
(config)#
vpls 12
Spoke
(config-vpls 12)#
def-vc-id 10
Spoke
(config-vpls 12)#
sap 1/1/1
Spoke
(config-vpls 12)#
spoke-sdp static 1/1/27 remote-peer 2.2.2.2
outgoing-vc-label 3222 incoming-vc-label 2222
Spoke
(config-vpls 12)#
spoke-sdp static backup 1/1/28 remote-peer
3.3.3.3 outgoing-vc-label 4333 incoming-vc-label 3333
Spoke
(config-vpls 12)#
exit