[NPE3-Vlan-interface16] ip address 22.214.171.124 255.255.255.0
[NPE3-Vlan-interface16] mpls ldp
# Configure the remote LDP session.
[NPE3] mpls ldp remote-peer 1
[NPE3-mpls-remote-1] remote-ip 126.96.36.199
[NPE3] mpls ldp remote-peer 2
[NPE3-mpls-remote-2] remote-ip 188.8.131.52
# Enable L2VPN and MPLS L2VPN.
[NPE3-l2vpn] mpls l2vpn
# Configure the basic attributes of VPLS instance aaa, which uses LDP.
[NPE3] vsi aaa static
[NPE3-vsi-aaa] pwsignal ldp
[NPE3-vsi-aaa-ldp] vsi-id 500
[NPE3-vsi-aaa-ldp] peer 184.108.40.206
[NPE3-vsi-aaa-ldp] peer 220.127.116.11
# Create service instance on GigabitEthernet 1/0/1, the interface connecting CE 3, and bind the
[NPE3] interface gigabitethernet 1/0/1
[NPE3-GigabitEthernet1/0/1] service-instance 1000
[NPE3-GigabitEthernet1/0/1-srv1000] encapsulation s-vid 10
[NPE3-GigabitEthernet1/0/1-srv1000] xconnect vsi aaa
After you complete the previous settings, execute the display vpls connection command on the PEs.
The command output shows that a PW connection in up state has been established.
Configuring BFD for the primary link in an H-VPLS network
In the H-VPLS network, Switch A is the UPE, Switch B is the primary NPE and Switch C is the backup NPE.
Enable MPLS on the connecting interfaces of the switches. Enable OSPF on the switches to ensure IP
Configure BFD for the link between Switch A and Switch B and the link between Switch A and Switch C,
so that when either link is down, BFD can detect the link failure and inform the MPLS LDP protocol for fast