API Guide

1. ROUTER-BGP 模式下输入邻居 IP 地址。
neighbor ip-address
2. ROUTER-NEIGHBOR 模式下禁用快速故障切换。
no fall-over
3. ROUTER-BGP 模式下输入邻居 IP 地址。
neighbor ip-address
4. ROUTER-NEIGHBOR 模式下启用 BGP 快速故障切换。
fall-over
配置邻居故障切换
OS10(config)# router bgp 100
OS10(config-router-bgp-100)# neighbor 3.1.1.1
OS10(config-router-neighbor)# remote-as 100
OS10(config-router-neighbor)# fall-over
OS10(config-router-neighbor)# no shutdown
验证邻居上的邻居故障切换
OS10(config-router-neighbor)# do show ip bgp neighbors 3.1.1.1
BGP neighbor is 3.1.1.1, remote AS 100, local AS 100 internal link
BGP version 4, remote router ID 3.3.3.33
BGP state ESTABLISHED, in this state for 00:17:17
Last read 00:27:54 seconds
Hold time is 180, keepalive interval is 60 seconds
Configured hold time is 180, keepalive interval is 60 seconds
Fall-over enabled
Received 23 messages
1 opens, 0 notifications, 1 updates
21 keepalives, 0 route refresh requests
Sent 21 messages
1 opens, 0 notifications, 0 updates
20 keepalives, 0 route refresh requests
Minimum time between advertisement runs is 30 seconds
Minimum time before advertisements start is 0 seconds
Capabilities received from neighbor for IPv4 Unicast:
MULTIPROTO_EXT(1)
ROUTE_REFRESH(2)
CISCO_ROUTE_REFRESH(128)
4_OCTET_AS(65)
Capabilities advertised to neighbor for IPv4 Unicast:
MULTIPROTO_EXT(1)
ROUTE_REFRESH(2)
CISCO_ROUTE_REFRESH(128)
4_OCTET_AS(65)
Prefixes accepted 3, Prefixes advertised 0
Connections established 1; dropped 0
Last reset never
For address family: IPv4 Unicast
Allow local AS number 0 times in AS-PATH attribute
Prefixes ignored due to:
Martian address 0, Our own AS in AS-PATH 0
Invalid Nexthop 0, Invalid AS-PATH length 0
Wellknown community 0, Locally originated 0
For address family: IPv6 Unicast
Allow local AS number 0 times in AS-PATH attribute
Local host: 3.1.1.3, Local port: 58633
Foreign host: 3.1.1.1, Foreign port: 179
3 549