VPLS Configuration Example with LDP Signaling
The example in this section shows how to configure the VPLS topology illustrated in Figure 122. The example includes the commands for configuring VPLS on both the local E-series router (VE 1) and the remote E-series router (VE 2).
![]()
Topology Overview of VPLS with LDP Signaling
Because the basic components of a VPLS network are the same regardless of whether BGP signaling or LDP signaling is used, the sample topology shown for LDP signaling in Figure 122 is almost identical to the sample topology shown for BGP signaling in Figure 121. Figure 122 includes two VPLS domains: VPLS A, which connects CE 1 and CE 3, and VPLS B, which connects CE 2 and CE 4. The local VE router, VE 1, and the remote VE router, VE 2, each participate in both the VPLS A domain and the VPLS B domain, and have one VPLS instance associated with each domain configured on each router.
Unlike a VPLS configuration with BGP signaling, a VPLS configuration with LDP signaling requires that you configure a VPLS ID for each VPLS instance to uniquely identify each VPLS domain. In the sample topology in Figure 122, instance vplsA is assigned VPLS ID 1, and instance vplsB is assigned VPLS ID 2 on both the local VE and the remote VE. You must also configure a list of remote neighbor (peer) addresses to which LDP can send or from which LDP can receive targeted hello messages. In the sample topology, the remote neighbor configured for VE 1 is VE 2 with IP address 2.2.2.2, and the remote neighbor configured for VE 2 is VE 1 with IP address 1.1.1.1.
The Ethernet and bridged Ethernet network interfaces, ATM core-facing interfaces, VPLS virtual core interfaces, and MPLS LSPs play the same role in a VPLS topology with LDP signaling as they do in a VPLS topology with BGP signaling. For more information about these components, see Topology Overview of VPLS with BGP Signaling.
Configuration on VE 1 (Local VE Router)
Use the following commands on the local VE router (VE 1) to configure the VPLS topology shown in Figure 122.
! Configure VPLS instance vplsA.host1(config)#bridge vplsA vpls transport-virtual-router default!! Configure VPLS instance vplsB.host1(config)#bridge vplsB vpls transport-virtual-router default!! Configure Fast Ethernet interface 2/1 between VE 1 and CE 1,! and assign it to vplsA as a trunk interface.host1(config)#interface fastEthernet 2/1host1(config-if)#bridge-group vplsA subscriber-trunkhost1(config-if)#exit!! Configure bridged Ethernet interface 6/0.12 between VE 1 and CE 2,! and assign it to vplsB as a trunk interface.host1(config)#interface atm 6/0.12 point-to-pointhost1(config-subif)#atm pvc 12 0 12 aal5snap 0 0 0host1(config-subif)#encapsulation bridge1483 mac-address 0090.1a40.9991host1(config-subif)#bridge-group vplsB subscriber-trunkhost1(config-if)#exit!! Configure LDP signaling for vplsA.host1(config)#mpls ldp vpls vplsA vpls-id 1host1(config)#mpls ldp vpls vplsA neighbor 2.2.2.2!! Configure LDP signaling for vplsB.host1(config)#mpls ldp vpls vplsB vpls-id 2host1(config)#mpls ldp vpls vplsB neighbor 2.2.2.2!! Configure a loopback interface on VE 1 and assign it an IP address.host1(config)#interface loopback 0host1(config-if)#ip address 1.1.1.1 255.255.255.255host1(config-if)#exit!! Assign the router ID for VE 1 using the IP address of the loopback interface.host1(config)#ip router-id 1.1.1.1!! Configure ATM core-facing interface 6/0.10 between VE 1 and the P router,! and assign it an IP address.host1(config)#interface atm 6/0.10 point-to-pointhost1(config-subif)#atm pvc 10 0 10 aal5snap 0 0 0host1(config-subif)#ip address 10.10.10.1 255.255.255.0!! Enable MPLS, LDP, and topology-driven LSPs on the core-facing interface.host1(config-subif)#mplshost1(config-subif)#mpls ldphost1(config-subif)#exit!! Configure OSPF routing in the core MPLS network.host1(config)#router ospf 1host1(config-router)#network 1.1.1.1 0.0.0.0 area 0.0.0.0host1(config-router)#network 10.10.10.0 0.0.0.255 area 0.0.0.0host1(config-router)#exitConfiguration on VE 2 (Remote VE Router)
Use the following commands on the remote VE router (VE 2) to configure the VPLS topology shown in Figure 122.
! Configure VPLS instance vplsA.host2(config)#bridge vplsA vpls transport-virtual-router default!! Configure VPLS instance vplsB.host2(config)#bridge vplsB vpls transport-virtual-router default!! Configure Fast Ethernet interface 2/5 between VE 2 and CE 3,! and assign it to vplsA as a trunk interface.host2(config)#interface fastEthernet 2/5host2(config-if)#bridge-group vplsA subscriber-trunkhost2(config-if)#exit!! Configure bridged Ethernet interface 6/0.21 between VE 2 and CE 4,! and assign it to vplsB as a trunk interface.host2(config)#interface atm 6/0.21 point-to-pointhost2(config-subif)#atm pvc 21 0 21 aal5snap 0 0 0host2(config-subif)#encapsulation bridge1483 mac-address 0090.1a40.9992host2(config-subif)#bridge-group vplsB subscriber-trunkhost2(config-if)#exit!! Configure LDP signaling for vplsA.host2(config)#mpls ldp vpls vplsA vpls-id 1host2(config)#mpls ldp vpls vplsA neighbor 1.1.1.1!! Configure LDP signaling for vplsB.host2(config)#mpls ldp vpls vplsB vpls-id 2host2(config)#mpls ldp vpls vplsB neighbor 1.1.1.1!! Configure a loopback interface on VE 2 and assign it an IP address.host2(config)#interface loopback 0host2(config-if)#ip address 2.2.2.2 255.255.255.255host2(config-if)#exit!! Assign the router ID for VE 2 using the IP address of the loopback interface.host2(config)#ip router-id 2.2.2.2!! Configure ATM core-facing interface 6/1.20 between VE 2 and the P router,! and assign it an IP address.host2(config)#interface atm 6/1.20 point-to-pointhost2(config-subif)#atm pvc 20 0 20 aal5snap 0 0 0host2(config-subif)#ip address 20.20.20.2 255.255.255.0!! Enable MPLS, LDP, and topology-driven LSPs on the core-facing interface.host2(config-subif)#mplshost2(config-subif)#mpls ldphost2(config-subif)#exit!! Configure OSPF routing in the core MPLS network.host2(config)#router ospf 1host2(config-router)#network 2.2.2.2 0.0.0.0 area 0.0.0.0host2(config-router)#network 20.20.20.0 0.0.0.255 area 0.0.0.0host2(config-router)#exit