在IOS XR上配置BFD
BFD提供一种在两个接口之间的低负载、快速的链路检测方法。基本原理周期性并极短时间发送小包来检测链路是否连接正常。
BFD必须邻居之间都支持,默认echo包50ms,control包是250ms。
注意,BFD不能和uRPF一起使用,否则echo包被拒绝。因此关闭nRPF,No ipv4 verify unicast source reachable-via
BFD在ios中接口配置,在IOS XR上是协议配置。
BFD分为Echo mode和asynchronous mode,二者都发送udp的包来进行检测。
Echo mode 出去后回到原点,源和目的相同源目端口相同3785
Asynchronous mode 源不一致 源地址自己直连口或者route-id口,目的是remote地址,源目端口不同3785和49152
BFD支持的应用
BFD can be used with the following applications:
–BGP
–IS-IS
–OSPF
–MPLS traffic-engineering (MPLS-TE)
–Static
–Protocol Independent Multicast (PIM)
BFD is supported for connections over the following interface types:
–Packet-over-SONET/SDH (POS)
–Gigabit Ethernet (GigE)
–Ten Gigabit Ethernet (TenGigE)
–Virtual LAN (VLAN).
注意:TE/FRR 支持BFD要在pos口和以太链路上。
配置:
在bgp中配置BFD
1.configure
2.router bgp 100
3.bfd minimum-interval 50(milliseconds)【配置周期发送bfd时间】
4.bfd multiplier 3【配置死亡时间】
5.neighbor x.x.x.x
6.remote-as 200
7.bfd fast-detect【本端开启BFD】
8.end or commit
Eg:
configure
router bgp 65000
bfd multiplier 2
bfd minimum-interval 20
neighbor 192.168.70.24
remote-as 2
bfd fast-detect
在OSPF中配置BFD
1.configure
2.router ospf 100
3.bfd minimum-interval 50(milliseconds)【配置周期发送bfd时间】
4.bfd multiplier
6.interface type interface-path-id
7.bfd fast-detect 【本端开启BFD】
9.show run router ospf
Eg:
configure
router ospf 0
area 0
interface gigabitEthernet 0/3/0/1
bfd fast-detect
commit
在静态路由中配置BFD
1.configure
2.router static
3.address-family ipv4 unicast
address nexthop bfd
4.vrf vrf-name
5.address-family ipv4 unicast
address nexthop bfd
6.end or commit
Eg:
configure
router static
address-family ipv4 unicast 10.2.2.0/24 10.3.3.3 bfd fast-detect
end
在路由器上关闭echo mode
1.configure
2.bfd
3.echo disable【全局关闭】
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.bfd
3.interface type interface-path-id【eg. Interface g0/1】
4.echo disable【关闭具体一个接口echo mode】
Eg:
configure
bfd
echo disable
eg:disable echo mode on an interface:
configure
bfd
interface gigabitethernet 0/1/0/0
echo disable
BFD验证命令:
1.show bfd counters packet [interface type interface-path-id] location node-id
2.clear bfd counters packet [interface type interface-path-id] location node-id
Router 1 (Cisco IOS software)
interface G0/1
ip address 192.0.2.2 255.255.255.0
bfd interval 100 min_rx 100 multiplier 3
bfd neighbor 192.0.2.1
Router 2 (Cisco IOS XR Software)
interface G0/1
ipv4 address 192.0.2.1 255.255.255.0
router static
address-family ipv4 unicast
10.10.10.10/32 192.0.2.2 bfd fast-detect
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。