R3303-HP 6600/HSR6600 Routers MPLS Configuration Guide

192
[CE1-Serial2/1/0] quit
[CE1] interface serial 2/1/1
[CE1-Serial2/1/1] isis enable 1
[CE1-Serial2/1/1] quit
2. Configure PE 1:
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE1
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.1 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls
[PE1-mpls] quit
# Enable MPLS LDP globally.
[PE1] mpls ldp
[PE1-mpls-ldp] quit
# Configure interface Serial 2/1/1 and Serial 2/1/2, so that PE 1 can establish an LDP session
with PE 2 and PE 3, respectively.
[PE1] interface serial 2/1/1
[PE1-Serial2/1/1] link-protocol ppp
[PE1-Serial2/1/1] ip address 12.1.1.1 24
[PE1-Serial2/1/1] mpls
[PE1-Serial2/1/1] mpls ldp
[PE1-Serial2/1/1] quit
[PE1] interface serial 2/1/2
[PE1-Serial2/1/2] link-protocol ppp
[PE1-Serial2/1/2] ip address 13.1.1.1 24
[PE1-Serial2/1/2] mpls
[PE1-Serial2/1/2] mpls ldp
[PE1-Serial2/1/2] quit
# Configure OSPF on PE 1.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 13.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Enable L2VPN and MPLS L2VPN.
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
# Create a primary VC and a backup VC on the interface connected to CE 1. The interface
requires no IP address.
[PE1] interface serial 2/1/0
[PE1-Serial2/1/0] link-protocol ppp