And dynamic routing protocols, static routes do not have a detection mechanism, when the network fails, the need for administrator intervention. BFD for static routing static route can be bound to a BFD session, the BFD session to detect the state of use of a static route link, the specific process is as follows:
-
When the BFD session on a static route link failure is detected, the fault reporting system will BFD, failure cause the route so that the route is not visible in the IP routing table.
-
When the BFD session on a static route detects the failure of a successful re-establish the link, BFD reports the system will activate the route so that the route to re-appear in the IP routing table.
AR1 configuration:
[Huawei]vlan 10
[Huawei-vlan10]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.0.1 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 172.16.2.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.0.1 24
AR2
<Huawei> sys
[Huawei] IINT g 0/0/0
[Huawei] int g0 / 0/0
[Huawei-GigabitEthernet0 / 0/0] ip add 172.16.0.2 24
[Huawei-GigabitEthernet0 / 0/0] q
[Huawei] int g0 / 0/1
[Huawei GigabitEthernet0 / 0/1] ip add 172.16.1.1 24
[Huawei GigabitEthernet0 / 0/1] q
[Huawei]
AR3
<Huawei>sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.1.2 24
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 172.16.2.2 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.1 24
[Huawei-GigabitEthernet0/0/2]q
[Huawei]
[AR1]bfd
[AR1] quit
[AR1] bfd tobeijing peer-ip 172.16.2.2
[AR1-bfd-session-tobeijing] discriminator local 10
[AR1-bfd-session-tobeijing] discriminator remote 20
[AR1-bfd-session-tobeijing]commit
[AR1-bfd-session-tobeijing]quit
[AR1]undo ip route-static 192.168.1.0 24 172.16.2.2
[AR1]ip route-static 192.168.1.0 24 172.16.2.2 track bfd-session tobeijing
[AR3]bfd
[AR3] quit
[Ahri3] bfd toshanghai peer-ip 172.16.2.1
[AR3-bfd-session-toshanghai] discriminator local 20
[AR3-bfd-session-toshanghai] discriminator remote 10
[AR3-bfd-session-toshanghai]commit
[AR3-bfd-session-toshanghai]quit
[AR3]undo ip route-static 192.168.0.0 24 172.16.2.1
[AR3]ip route-static 192.168.0.0 24 172.16.2.1 track bfd-session toshangha