250
[Spoke-PE1] interface pos 1/1/0
[Spoke-PE1-Pos1/1/0] ip address 172.1.1.1 24
[Spoke-PE1-Pos1/1/0] quit
[Spoke-PE1] ospf
[Spoke-PE1-ospf-1] area 0
[Spoke-PE1-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[Spoke-PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[Spoke-PE1-ospf-1-area-0.0.0.0] quit
[Spoke-PE1-ospf-1] quit
# Configure Spoke-PE 2.
<Spoke-PE2> system-view
[Spoke-PE2] interface loopback 0
[Spoke-PE2-LoopBack0] ip address 3.3.3.9 32
[Spoke-PE2-LoopBack0] quit
[Spoke-PE2] interface pos 1/1/0
[Spoke-PE2-Pos1/1/0] ip address 172.2.1.1 24
[Spoke-PE2-Pos1/1/0] quit
[Spoke-PE2] ospf
[Spoke-PE2-ospf-1] area 0
[Spoke-PE2-ospf-1-area-0.0.0.0] network 172.2.1.0 0.0.0.255
[Spoke-PE2-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[Spoke-PE2-ospf-1-area-0.0.0.0] quit
[Spoke-PE2-ospf-1] quit
# Configure Hub-PE.
<Hub-PE> system-view
[Hub-PE] interface loopback 0
[Hub-PE-LoopBack0] ip address 2.2.2.9 32
[Hub-PE-LoopBack0] quit
[Hub-PE] interface pos 1/1/0
[Hub-PE-Pos1/1/0] ip address 172.1.1.2 24
[Hub-PE-Pos1/1/0] quit
[Hub-PE] interface pos 1/1/1
[Hub-PE-Pos1/1/1] ip address 172.2.1.2 24
[Hub-PE-Pos1/1/1] quit
[Hub-PE] ospf
[Hub-PE-ospf-1] area 0
[Hub-PE-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[Hub-PE-ospf-1-area-0.0.0.0] network 172.2.1.0 0.0.0.255
[Hub-PE-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[Hub-PE-ospf-1-area-0.0.0.0] quit
[Hub-PE-ospf-1] quit
# Execute the
display ospf peer
command on the devices to verify that OSPF adjacencies in
Full state have been established between Spoke-PE 1, Spoke-PE 2, and Hub-PE. Execute the
display ip routing-table
command on the devices to verify that the PEs have learned the
routes to the loopback interfaces of each other. (Details not shown.)
2.
Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs:
# Configure Spoke-PE 1.
[Spoke-PE1] mpls lsr-id 1.1.1.9