506
<RouterB> system-view
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure Router C.
<RouterC> system-view
[RouterC] ospf
[RouterC-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[RouterC-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
3.
Enable MPLS and LDP:
# Configure Router A.
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls ldp
[RouterA-ldp] quit
[RouterA] interface gigabitethernet 1/1/1
[RouterA-GigabitEthernet1/1/1] mpls enable
[RouterA-GigabitEthernet1/1/1] mpls ldp enable
[RouterA-GigabitEthernet1/1/1] quit
# Configure Router B.
[RouterB] mpls lsr-id 2.2.2.9
[RouterB] mpls ldp
[RouterB-ldp] quit
[RouterB] interface gigabitethernet 1/1/1
[RouterB-GigabitEthernet1/1/1] mpls enable
[RouterB-GigabitEthernet1/1/1] mpls ldp enable
[RouterB-GigabitEthernet1/1/1] quit
[RouterB] interface gigabitethernet 1/1/2
[RouterB-GigabitEthernet1/1/2] mpls enable
[RouterB-GigabitEthernet1/1/2] mpls ldp enable
[RouterB-GigabitEthernet1/1/2] quit
# Configure Router C.
[RouterC] mpls lsr-id 3.3.3.9
[RouterC] mpls ldp
[RouterC-ldp] quit
[RouterC] interface gigabitethernet 1/1/2
[RouterC-GigabitEthernet1/1/2] mpls enable
[RouterC-GigabitEthernet1/1/2] mpls ldp enable
[RouterC-GigabitEthernet1/1/2] quit
4.
Enable BFD for MPLS, and configure BFD to verify LSP connectivity:
# Configure Router A.
[RouterA] mpls bfd enable