Floating static routing and routing bfd linkage to achieve automatic update

Floating static routing and routing bfd linkage to achieve automatic update

1. What is the floating static route

Static route is a route information configured by the user or network administrator. When the state of the network topology or link changes, the network administrator needs to manually modify the static routing table associated with the routing information. Static routing information by default is private and will not be passed to other routers. Of course, the network administrator can also set the router to become shared. Static routing is generally applicable to simple network environment, in this environment, network administrators easy clear understanding of the network topology, easy to set the correct routing information. In a network of support DDR (Dial-on-Demand Routing), a dial-up link called only when needed, and therefore we can not offer to change the routing information for dynamic routing information table. In this case, the network is also suitable for use floating static routes.

two. What is bfd

Bidirectional Forwarding Detection BFD i.e., a mechanism for network reliability is achieved, the link conditions may be used for rapid detection of network, IP, reachability. Which can be linked with a variety of protocols or mechanisms, such as the linkage and static routes, OSPF, IS-IS, BGP, VRRP, PIM MPLS LSP and the like.

III. Experimental Procedure                                             

(1) Experimental network topology

 

(2) Experimental Configuration

PC1 ip address:192.168.1.3 255.255.255.0

SW1 ip address:192.168.1.2.255.255.255.0

PC2 ip address:10.0.0.2 255.255.255.0

 

AR1

Interface G0/0/0

Ip address 1.1.1.1 24

Quit

Interface vlan 1

Ip add 192.168.1.1

Quit

Bfd

quit

bfd a bind peer-ip 1.1.1.2

discriminator local 10

discriminator remote 20

commit

Quit

 

 

AR2

Interface g0/0/0

Ip address 1.1.1.2 24

Quit

Interface vlan 1

Ip add 10.0.0.1 24

Quit

Bfd

quit

bfd b bind peer-ip 1.1.1.1

discriminator local 20

discriminator remote 10

commit

quit

 

绑定bfd

ip route-static 0.0.0.0 0.0.0.0 1.1.1.2 track bfd-session a

ip route-static 192.168.1.0 24 1.1.1.1

完成上述配置后,AR1与AR2便会进行BFD报文的交互。可在AR2查看BFD状态

四.实验测试

可以通过display ip routing-table 命令查看路由状态。浮动静态路由和bfd联动实现路由自动更新实验完成。

 

Guess you like

Origin www.cnblogs.com/xph111/p/11877333.html