如上图,两个中心为双活数据中心,两中心通过DWDM环连接,正常情况下主中心的出口路由器为HSRP主,当路由器下联交换机的出现故障后,HSRP网关可以切换到备中心。
通过在接口上启用BFD,可以快速检测到接口故障,通过三层信息检测两个路由器接口之间的通信,可确保在任何一种情况下的链路故障,HSRP网关都可以快速切换到备中心,当然这种情况用IP SLA也可以,只是切换速度慢些,如果要求比较高则使用BFD快速检测。 BFD与路由协议联动的基础配置
l 路由器接口上的BFD配置
interface type number
bfd interval milliseconds min_rx milliseconds multiplier interval-multiplier
举例
Router(config)#interface f0/0
Router(config-if)# bfd interval 50 min_rx 50 multiplier 5 1. BFD与BGP协议联动
l enable
l configure terminal
l router bgp as-tag
l neighbor ip-address fall-over bfd
l end
l show bfd neighbors
l show ip bgp neighbor 2. BFD与EIGRP协议联动
l enable
l configure terminal
l router eigrp as-number
l bfd all-interfaces 或bfd interface type number
l end
l show bfd neighbors 3. BFD与ISIS协议联动
l enable
l configure terminal
l router isis area-tag
l bfd all-interfaces
或者接口下开启
l interface type number
l isis bfd
l show bfd neighbors
l show clns interface 4. BFD与OSPF协议联动
l enable
l configure terminal
l router ospf process-id
l bfd all-interfaces
或者接口下开启
l interface name number
l ip ospf bfd
l show bfd neighbors
l show ip ospf 5 BFD与HSRP协议联动
l enable
l configure terminal
l interface type number
l ip address ip-address mask
l standby [group-number] ip [ip-address [secondary]]
l standby bfd
l show standby [neighbors]
启用BFD功能需要路由器使用比较新的IOS,需要ipservices功能,Cat6500,Nexus交换机同样支持BFD。具体
版本可以在Cisco Feature Navigator查询。