R3303-HP HSR6800 Routers MPLS Configuration Guide
193
<Sysname> system-view
[Sysname] sysname PE3
[PE3] interface loopback 0
[PE3-LoopBack0] ip address 3.3.3.3 32
[PE3-LoopBack0] quit
[PE3] mpls lsr-id 3.3.3.3
[PE3] mpls
[PE3-mpls] quit
# Enable MPLS LDP globally.
[PE3] mpls ldp
[PE3-mpls-ldp] quit
# Configure interface serial 2/1/0, so that PE 3 can establish an LDP session with PE 1.
[PE3] interface serial 2/1/0
[PE3-Serial2/1/0] ip address 13.1.1.3 24
[PE3-Serial2/1/0] mpls
[PE3-Serial2/1/0] mpls ldp
[PE3-Serial2/1/0] quit
# Configure OSPF on PE 3.
[PE3] ospf
[PE3-ospf-1] area 0
[PE3-ospf-1-area-0.0.0.0] network 13.1.1.0 0.0.0.255
[PE3-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[PE3-ospf-1-area-0.0.0.0] quit
[PE3-ospf-1] quit
# Enable L2VPN and MPLS L2VPN.
[PE3] l2vpn
[PE3-l2vpn] mpls l2vpn
[PE3-l2vpn] quit
# Create a VC on the interface connected to CE 2. This interface needs no IP address.
[PE3] interface serial 2/1/1
[PE3-Serial2/1/1] mpls l2vc 1.1.1.1 30
[PE3-Serial2/1/1] quit
5. Configure CE 2:
# Assign IP addresses to interfaces.
<Sysname> system-view
[Sysname] sysname CE2
[CE2] interface serial 2/1/0
[CE2-Serial2/1/0] link-protocol ppp
[CE2-Serial2/1/0] ip address 100.1.1.2 24
[CE2-Serial2/1/0] quit
[CE2] interface serial 2/1/1
[CE2-Serial2/1/1] link-protocol ppp
[CE2-Serial2/1/1] ip address 100.2.1.2 24
# Configure IS-IS.
[CE2] isis 1
[CE2-isis-1] network-entity 10.0000.0000.0002.00
[CE2-isis-1] quit