Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring MPLS and H-VPLS (Rev. 03)
Multiprotocol Label Switching
© 2008 Foundry Networks, Inc
Page 70 of 113
DeviceB
(config-if lo1)#
exit
4. Add static route to the Loopback interface of the Spoke device:
DeviceB
(config)#
ip route 1.1.1.1/32 11.0.0.1
5. Set the LSR-ID of the device:
DeviceB
(config)#
mpls lsr-id 3.3.3.3
6. Enable and configure LDP protocol:
DeviceB
(config)#
router ldp
DeviceB
(config-router)#
transport-address 3.3.3.3
DeviceB
(config-router)#
targeted-peer 1.1.1.1
DeviceB
(config-router-peer 1.1.1.1)#
exit
DeviceB
(config-router)#
exit
7. Set needed route marking policies:
DeviceB
(config)#
mpls ingress 1.1.1.1/32
DeviceB
(config)#
mpls egress 3.3.3.3/32
8. Set VPLS mode and define VPLS instance “12”:
DeviceB
(config)#
vpls mode unqualified
DeviceB
(config)#
vpls 12
DeviceB
(config-vpls 12)#
def-vc-id 10
DeviceB
(config-vpls 12)#
sap 1/1/1
DeviceB
(config-vpls 12)#
spoke-sdp ldp-peer 1.1.1.1
DeviceB
(config-vpls 12)#
exit
DeviceB
(config)#
exit
Spoke Configuration
1. Create interface sw1 and VLAN v11:
Spoke
#
configure terminal
Spoke
(config)#
interface sw1
Spoke
(config-if sw1)#
ip address 11.0.0.1/8
Spoke
(config-if sw1)#
mpls ldp
Spoke
(config-if sw1)#
exit
Spoke
(config)#
vlan
Spoke
(config vlan)#
create v11 11
Spoke
(config vlan)#
config v11
Spoke
(config-vlan v11)#
add ports 1/1/27 untagged
Spoke
(config-vlan v11)#
add ports default 1/1/27
Spoke
(config-vlan v11)#
rif sw1
Spoke
(config-vlan v11)#
exit
2. Create interface sw2 and VLAN v12:
Spoke
#
configure terminal
Spoke
(config)#
interface sw2
Spoke
(config-if sw2)#
ip address 12.0.0.1/8
Spoke
(config-if sw2)#
mpls ldp
Spoke
(config-if sw2)#
exit
Spoke
(config)#
vlan
Spoke
(config vlan)#
create v12 12
Spoke
(config vlan)#
config v12