303
[RouterD-bgp-ipv4] network 4.4.4.4 32
4.
Configure preferred values so Link B is used to forward traffic between Router A and Router D:
# Configure Router A to set the preferred value to 100 for routes received from Router B.
[RouterA-bgp-ipv4] peer 10.1.1.2 preferred-value 100
[RouterA-bgp-ipv4] quit
[RouterA-bgp] quit
# Configure Router D to set the preferred value to 100 for routes received from Router B.
[RouterD-bgp-ipv4] peer 2.2.2.2 preferred-value 100
[RouterD-bgp-ipv4] quit
[RouterD-bgp] quit
5.
Configure BGP FRR:
# On Router A, configure the source address of BFD echo packets as 11.1.1.1.
[RouterA] bfd echo-source-ip 11.1.1.1
# Create routing policy
frr
to set a backup next hop 30.1.1.3 (Router C) for the route destined for
4.4.4.4/32.
[RouterA] ip prefix-list abc index 10 permit 4.4.4.4 32
[RouterA] route-policy frr permit node 10
[RouterA-route-policy] if-match ip address prefix-list abc
[RouterA-route-policy] apply fast-reroute backup-nexthop 30.1.1.3
[RouterA-route-policy] quit
# Use echo-mode BFD to detect the connectivity to Router D.
[RouterA] bgp 100
[RouterA-bgp] primary-path-detect bfd echo
# Apply the routing policy to BGP FRR for BGP IPv4 unicast address family.
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] fast-reroute route-policy frr
[RouterA-bgp-ipv4] quit
[RouterA-bgp] quit
# On Router D, configure the source address of BFD echo packets as 44.1.1.1.
[RouterD] bfd echo-source-ip 44.1.1.1
# Create routing policy
frr
to set a backup next hop 3.3.3.3 (Router C) for the route destined for
1.1.1.1/32.
[RouterD] ip prefix-list abc index 10 permit 1.1.1.1 32
[RouterD] route-policy frr permit node 10
[RouterD-route-policy] if-match ip address prefix-list abc
[RouterD-route-policy] apply fast-reroute backup-nexthop 3.3.3.3
[RouterD-route-policy] quit
# Use echo-mode BFD to detect the connectivity to Router A.
[RouterD] bgp 200
[RouterD-bgp] primary-path-detect bfd echo
# Apply the routing policy to BGP FRR for BGP IPv4 unicast address family.
[RouterD-bgp] address-family ipv4 unicast
[RouterD-bgp-ipv4] fast-reroute route-policy frr
[RouterD-bgp-ipv4] quit
[RouterD-bgp] quit