53
[RouterD] bfd echo-source-ip 11.11.11.11
[RouterD] ospf 1
[RouterD-ospf-1] fast-reroute lfa
[RouterD-ospf-1] quit
{
(Method 2.) Enable OSPF FRR to specify a backup next hop by using a routing policy:
# Configure Router S.
<RouterS> system-view
[RouterS] bfd echo-source-ip 10.10.10.10
[RouterS] ip prefix-list abc index 10 permit 21.1.1.0 24
[RouterS] route-policy frr permit node 10
[RouterS-route-policy] if-match ip address prefix-list abc
[RouterS-route-policy] apply fast-reroute backup-interface gigabitethernet 1/1/1
backup-nexthop 12.12.12.2
[RouterS-route-policy] quit
[RouterS] ospf 1
[RouterS-ospf-1] fast-reroute route-policy frr
[RouterS-ospf-1] quit
# Configure Router D.
<RouterD> system-view
[RouterD] bfd echo-source-ip 10.10.10.10
[RouterD] ip prefix-list abc index 10 permit 11.1.1.0 24
[RouterD] route-policy frr permit node 10
[RouterD-route-policy] if-match ip address prefix-list abc
[RouterD-route-policy] apply fast-reroute backup-interface gigabitethernet 1/1/1
backup-nexthop 24.24.24.2
[RouterD-route-policy] quit
[RouterD] ospf 1
[RouterD-ospf-1] fast-reroute route-policy frr
[RouterD-ospf-1] quit
4.
Enable MPLS and IPv4 LDP:
# Configure Router S.
[RouterS] mpls lsr-id 1.1.1.1
[RouterS] mpls ldp
[RouterS-mpls-ldp] quit
[RouterS] interface gigabitethernet 1/1/1
[RouterS-GigabitEthernet1/1/1] mpls enable
[RouterS-GigabitEthernet1/1/1] mpls ldp enable
[RouterS-GigabitEthernet1/1/1] quit
[RouterS] interface gigabitethernet 1/1/2
[RouterS-GigabitEthernet1/1/2] mpls enable
[RouterS-GigabitEthernet1/1/2] mpls ldp enable
[RouterS-GigabitEthernet1/1/2] quit
# Configure Router D.
[RouterD] mpls lsr-id 3.3.3.3
[RouterD] mpls ldp
[RouterD-mpls-ldp] quit
[RouterD] interface gigabitethernet 1/1/1
[RouterD-GigabitEthernet1/1/1] mpls enable