R2511-HP MSR Router Series MPLS Configuration Guide(V5)
98
[PE1-mpls-ldp] quit
# Configure PE 2 as the remote LDP peer.
[PE1] mpls ldp remote-peer 1
[PE1-mpls-ldp-remote-1] remote-ip 192.3.3.3
[PE1-mpls-ldp-remote-1] quit
# Configure Ethernet 1/2 (the interface connected to the P device), and enable LDP on the
interface.
[PE1] interface ethernet 1/2
[PE1-Ethernet1/2] ip address 10.1.1.1 24
[PE1-Ethernet1/2] mpls
[PE1-Ethernet1/2] mpls ldp
[PE1-Ethernet1/2] quit
# Configure OSPF for LSP establishment.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 192.2.2.2 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Create a VC on Ethernet 1/2 (the interface connected to CE 1). The interface requires no IP
address.
[PE1] interface ethernet 1/2
[PE1-Ethernet1/2] mpls l2vc 192.3.3.3 101
[PE1-Ethernet1/2] quit
# Configure the L2PT destination multicast MAC address as 0110-cd10-10ac.
[PE1] l2protocol-tunnel mac-address 0110-cd10-10ac
# Enable L2PT for STP, CDP, and GVRP on Ethernet 1/1 (the interface connected to CE 1).
[PE1]interface ethernet 1/1
[PE1-Ethernet1/1] l2protocol-tunnel stp tunnel
[PE1-Ethernet1/1] l2protocol-tunnel cdp experimental 3
[PE1-Ethernet1/1] l2protocol-tunnel gvrp drop
[PE1-Ethernet1/1] quit
3. Configure the P device:
# Configure an LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname P
[P] interface loopback 0
[P-LoopBack0] ip address 192.4.4.4 32
[P-LoopBack0] quit
[P] mpls lsr-id 192.4.4.4
[P] mpls
[P-mpls] quit
# Enable LDP globally.
[P] mpls ldp
[P-mpls-ldp] quit
# Configure Ethernet 1/1 (the interface connected to PE 1), and enable LDP on the interface.










