R3303-HP HSR6800 Routers MPLS Configuration Guide
235
[NPE1] mpls lsr-id 2.2.2.2
[NPE1] mpls
[NPE1–mpls] quit
[NPE1] mpls ldp
[NPE1–mpls-ldp] quit
# Configure an IP address for the interface connected to UPE, and enable MPLS and MPLS LDP.
[NPE1] interface gigabitethernet 2/1/1
[NPE1-GigabitEthernet2/1/1] ip address 12.1.1.2 24
[NPE1-GigabitEthernet2/1/1] mpls
[NPE1-GigabitEthernet2/1/1] mpls ldp
[NPE1-GigabitEthernet2/1/1] quit
# Configure an IP address for the interface connected to NPE 3, and enable MPLS and MPLS LDP.
[NPE1] interface gigabitethernet 2/1/2
[NPE1-GigabitEthernet2/1/2] ip address 15.1.1.1 24
[NPE1-GigabitEthernet2/1/2] mpls
[NPE1-GigabitEthernet2/1/2] mpls ldp
[NPE1-GigabitEthernet2/1/2] quit
# Configure the remote LDP peer UPE.
[NPE1] mpls ldp remote-peer 2
[NPE1-mpls-remote-2] remote-ip 1.1.1.1
[NPE1-mpls-remote-2] quit
# Configure the remote LDP peer NPE 3.
[NPE1] mpls ldp remote-peer 3
[NPE1-mpls-remote-3] remote-ip 4.4.4.4
[NPE1-mpls-remote-3] quit
# Enable L2VPN and MPLS L2VPN.
[NPE1] l2vpn
[NPE1-l2vpn] mpls l2vpn
[NPE1-l2vpn] quit
# Create VPLS instance aaa that uses LDP signaling.
[NPE1] vsi aaa static
[NPE1-vsi-aaa] pwsignal ldp
[NPE1-vsi-aaa-ldp] vsi-id 500
[NPE1-vsi-aaa-ldp] peer 1.1.1.1 upe
[NPE1-vsi-aaa-ldp] peer 4.4.4.4
[NPE1-vsi-aaa-ldp] quit
[NPE1-vsi-aaa] quit
The configuration procedure on NPE 2 is similar to that on NPE 1.
4. Configure NPE 3:
# Configure basic MPLS.
<Sysname> system-view
[Sysname] sysname NPE3
[NPE3] interface loopback 0
[NPE3-LoopBack0] ip address 4.4.4.4 32
[NPE3-LoopBack0] quit
[NPE3] mpls lsr-id 4.4.4.4