Leaflet
5-78
思科 ASA 系列命令参考,A 至 H 命令
第 5 章 cache 至 clear compression 命令
clear bgp
使用指南 clear bgp 命令可用于启动硬重置或软重新配置。硬重置会断开并重建指定的对等会话并重建 BGP
路由表。软重新配置使用存储的前缀信息来重新配置并激活 BGP 路由表,无需断开现有对等会
话。软重新配置使用存储的更新信息(以使用额外内存存储更新为代价),允许您应用新 BGP
策略而无需中断网络。软重新配置可针对入站或出站会话进行配置。
1. 多模式 - 系统情景:
ciscoasa(config)# clear bgp *
This command will reset BGP in all contexts.
Are you sure you want to continue ?[no]:
2. 单模式 / 多模式 - 用户情景:
ciscoasa/c1(config)# clear bgp ?
exec 模式命令 / 选项:
* Clear all peers
<1-4294967295> Clear peers with the AS number
<1.0-XX.YY> Clear peers with the AS number
A.B.C.D BGP neighbor address to clear
external Clear all external peers
ipv4 Address family
table-map Update BGP table-map configuration
示例 1. 在以下示例中,在系统情景中给定 clear bgp 命令时,所有情景中的所有 bgp 会话都将重置。
由于此命令将重置所有 bgp 会话,因此将发出一个警告来确认操作:
ciscoasa# clear bgp ?
* Clear all peers
ciscoasa# clear bgp *
This command will reset BGP in ALL contexts.
Are you sure you want to continue?[no]:
2. 在以下示例中,所有 bgp 会话均在单模式或多模式用户情景中重置。不应发出警告来确认单
模式 / 用户情景中的操作。
ciscoasa# clear bgp * (Single mode)
ciscoasa/c1(config)# clear bgp * (Multiple mode user context)
3. 在以下示例中,针对邻居为 10.100.0.1 的入站会话启动软重新配置,出站会话不受影响:
ciscoasa(config)# clear bgp 10.100.0.1 soft in (Single mode)
ciscoasa/c1(config)# clear bgp 10.100.0.1 soft in (Multiple mode user context)
4. 在以下示例中,在 BGP 邻居路由器上启用路由刷新功能,并针对邻居为 172.16.10.2 的入站
会话启动软重新配置,出站会话不受影响:
ciscoasa(config)# clear bgp 172.16.10.2 in (Single mode)
ciscoasa/c1(config)# clear bgp 172.16.10.2 in (Multiple mode user context)
5. 在以下示例中,针对编号 35700 的自主系统中的所有路由器的会话启动硬重置:
ciscoasa(config)# clear bgp 35700 (Single mode)
ciscoasa/c1(config)# clear bgp 35700 (Multiple mode user context)