R2511-HP MSR Router Series MPLS Configuration Guide(V5)

87
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 192.3.3.3
[PE2] mpls
[PE2-mpls] quit
# Enable MPLS LDP globally.
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure PE 2 to establish a remote LDP session with PE 1.
[PE2] mpls ldp remote-peer 2
[PE2-mpls-ldp-remote-2] remote-ip 192.2.2.2
[PE2-mpls-ldp-remote-2] quit
# Configure serial 2/1, the interface connected to the P device. Enable LDP on the interface.
[PE2] interface serial 2/1
[PE2-Serial2/1] link-protocol ppp
[PE2-Serial2/1] ip address 10.2.2.1 24
[PE2-Serial2/1] mpls
[PE2-Serial2/1] mpls ldp
[PE2-Serial2/1] quit
# Configure OSPF on PE 2.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 10.2.2.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
# Create a VC supporting interworking on interface Ethernet 1/1 (the interface connected to CE 2),
and specify the default next hop address as 100.1.1.2. Interface Ethernet 1/1 needs no IP
address.
[PE2] interface ethernet 1/1
[PE2-Ethernet1/1] mpls l2vc 192.2.2.2 101 ip-interworking
[PE2-Ethernet1/1] default-nexthop ip 100.1.1.2
[PE2-Ethernet1/1] quit
5. On CE 2, configure an IP address for Serial 2/0, the interface connected to the PE 2.
<Sysname> system-view
[Sysname] sysname CE2
[CE2] interface Ethernet 1/1
[CE2-Ethernet1/1] ip address 100.1.1.2 24