51
Enable BFD for RIP on GigabitEthernet 2/0 of Router A, and specify GigabitEthernet 1/0 of Router B as
the destination. When a unidirectional link occurs (packets from Router A can reach Router B, but packets
from Router B cannot reach Router A), BFD can quickly detect the link failure and notify RIP. RIP then
deletes the neighbor relationship and the route information learned on GigabitEthernet 2/0, and does
not receive or send any packets on GigabitEthernet 2/0. When the route learned from Router A ages out,
Router B uses the route destined for 100.1.1.0/24 through GigabitEthernet 2/0.
Figure 12
Network diagram
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Configure basic RIP and enable BFD on the interfaces:
# Configure Router A.
<RouterA> system-view
[RouterA] rip 1
[RouterA-rip-1] network 192.168.2.0
[RouterA-rip-1] import-route static
[RouterA-rip-1] quit
[RouterA] interface gigabitethernet 2/0
[RouterA-GigabitEthernet2/0] rip bfd enable destination 192.168.2.2
[RouterA-GigabitEthernet2/0] quit
# Configure Router B.
<RouterB> system-view
[RouterB] rip 1
[RouterB-rip-1] network 192.168.2.0
[RouterB-rip-1] network 192.168.3.0
[RouterB-rip-1] quit
# Configure Router C.
<RouterC> system-view
[RouterC] rip 1
[RouterC-rip-1] network 192.168.3.0
[RouterC-rip-1] import-route static cost 3
[RouterC-rip-1] quit
3.
Configure BFD parameters on GigabitEthernet 2/0 of Router A.
[RouterA] bfd echo-source-ip 11.11.11.11