API Guide

OS10(conf)# router bgp 1
OS10(config-router-bgp-1)# neighbor 150.150.1.1
OS10(config-router-neighbor)# bfd
OS10(config-router-neighbor)# no shutdown
BFD for BGP 模板配置
OS10(config)# router bgp 300
OS10(config-router-bgp-300)# template ebgppg
OS10(config-router-template)# bfd
OS10(config-router-template)# exit
OS10(config-router-bgp-300)# neighbor 3.1.1.1
OS10(config-router-neighbor)# inherit template ebgppg
OS10(config-router-neighbor)# no shutdown
显示 BFD 操作
OS10# show bfd neighbors
* - Active session role
----------------------------------------------------------------------------
LocalAddr RemoteAddr Interface State Rx-int Tx-int Mult VRF Clients
----------------------------------------------------------------------------
* 150.150.1.2 150.150.1.1 vlan10 up 1000 1000 5 default bgp
OS10# show bfd neighbors detail
Session Discriminator: 1
Neighbor Discriminator: 2
Local Addr: 150.150.1.2
Local MAC Addr: 90:b1:1c:f4:ab:fd
Remote Addr: 150.150.1.1
Remote MAC Addr: 90:b1:1c:f4:a4:d4
Interface: vlan10
State: up
Configured parameters:
TX: 1000ms, RX: 1000ms, Multiplier: 5
Actual parameters:
TX: 1000ms, RX: 1000ms, Multiplier: 5
Neighbor parameters:
TX: 200ms, RX: 200ms, Multiplier: 49
Role: active
VRF: default
Client Registered: bgp
Uptime: 01:58:09
Statistics:
Number of packets received from neighbor: 7138
Number of packets sent to neighbor: 7138
验证 BFD for BGP
OS10(config-router-bgp-101)# show ip bgp summary
BGP router identifier 30.1.1.2 local AS number 101
Global BFD is enabled
Neighbor AS MsgRcvd MsgSent Up/Down State/Pfx
20.1.1.1 101 781 777 11:16:13 0
30.1.1.1 101 787 779 11:15:35 0
OS10(config-router-bgp-101)# show ip bgp neighbors
BGP neighbor is 20.1.1.1, remote AS 101, local AS 101 internal link
BGP version 4, remote router ID 30.1.1.1
BGP state ESTABLISHED, in this state for 11:19:01
Last read 00:24:31 seconds
Hold time is 180, keepalive interval is 60 seconds
Configured hold time is 180, keepalive interval is 60 seconds
Fall-over disabled
Neighbor is using Global level BFD Configuration
Received 784 messages
1 opens, 0 notifications, 0 updates
3 519