R2511-HP MSR Router Series MPLS Configuration Guide(V5)
86
# Enable L2VPN and MPLS L2VPN.
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
# Create a VC supporting interworking on Serial 2/0 (the interface connected to CE 1), and
configure PPP to support IPCP negotiation without IP address. Interface serial 2/0 needs no IP
address.
[PE1] interface serial 2/0
[PE1-Serial2/0] mpls l2vc 192.3.3.3 101 ip-interworking
[PE1-Serial2/0] ppp ipcp ignore local-ip
[PE1-Serial2/0] quit
3. Configure the P device:
# Configure the 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 serial 2/0, the interface connected to PE 1. Enable LDP on the interface.
[P] interface serial 2/0
[P-Serial2/0] link-protocol ppp
[P-Serial2/0] ip address 10.1.1.2 24
[P-Serial2/0] mpls
[P-Serial2/0] mpls ldp
[P-Serial2/0] quit
# Configure serial 2/1, the interface connected to PE 2. Enable LDP on the interface.
[P] interface serial 2/1
[P-Serial2/1] link-protocol ppp
[P-Serial2/1] ip address 10.2.2.2 24
[P-Serial2/1] mpls
[P-Serial2/1] mpls ldp
[P-Serial2/1] quit
# Configure OSPF on the P device.
[P] ospf
[P-ospf-1] area 0
[P-ospf-1-area-0.0.0.0] network 10.1.1.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 10.2.2.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
4. Configure PE 2:










