R3303-HP HSR6800 Routers MPLS Configuration Guide
191
[CE1-Serial2/1/1] ip address 100.3.1.1 24
[CE1-Serial2/1/1] quit
# Configure IS-IS.
[CE1] isis 1
[CE1-isis-1] network-entity 10.0000.0000.0001.00
[CE1-isis-1] quit
[CE1] interface serial 2/1/0
[CE1-Serial2/1/0] isis enable 1
[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