Networking requirements: two pairs of Huawei NE40E routers between two systems are directly connected through optical fiber cables, and the interconnected routers between the two systems run static routers. When a fiber link is interrupted, the link will be single-pass, and Static Routing cannot automatically converge, so the service is diverted to the other side. It is necessary to solve the problem that the network cannot be recovered due to single-pass.
Solution: Enable the BFD Session on the interconnected routers of the two systems, and bind the static route to the BFD session.
Specific configuration: Both vrouters of the BFD session must implement the following configuration
Bfd vro enables the bfd Function
#
Bfd 1 bind peer-ip 10.201.1.202 configure bfd session, session name is 1, peer IP is 10.201.1.201
Discriminator local 201 configure the local ID number as 201, and the remote ID number of the Peer router must also be 201
In discriminator remote 202, the remote ID number is 202, and the local ID of the Peer router must also be 202.
Commit confirms the session. This command cannot be omitted; otherwise, the session does not take effect.
#
Ip route-static 0.0.0.0 0.0.0.0 10.201.1.202 track bfd-session 1 BFD session bound to a static route
Run the displaybfd session all command to view the BFD session status.
& Lt; MB-NMS-XDS-RT5A-NE40E & gt; display bfdsession all
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
201 202 10.201.1.202 Up S_IP_PEER-
--------------------------------------------------------------------------------
Total UP/DOWN Session Number: 1/0
This article is from the "QiRui" blog, please be sure to keep this source http://qirui.blog.51cto.com/845978/1272596