Reference Guide
Border Gateway Protocol | 229
clear ip bgp
s z
Reset BGP sessions. The soft parameter (BGP Soft Reconfiguration) clears the policies without
resetting the TCP connection.
Syntax
clear ip bgp * | as-number | ip-address [flap-statistics | soft [in | out]]
Parameters
Command Modes
EXEC Privilege
Related
Commands
Command
History
Version 7.8.1.0 Introduced support on S-Series
Version 7.5.1.0 Introduced
S6000
* Enter an asterisk ( * ) to reset all BGP sessions.
as-number
Enter the AS number to reset all neighbors belonging to that AS.
Range: 0-65535 (2-Byte)
or
1-4294967295 (4-Byte)
or
0.1-65535.65535 (Dotted format)
ip-address
Enter an IP address in dotted decimal format to reset all prefixes from that
neighbor.
flap-statistics (OPTIONAL) Enter the keyword flap-statistics to reset the flap statistics
on all prefixes from that neighbor.
soft (OPTIONAL) Enter the keyword soft to configure and activate policies
without resetting the BGP TCP session, that is, BGP Soft Reconfiguration.
Note: If you enter
clear ip bgp ip-address soft, both inbound and
outbound policies are reset.
in (OPTIONAL) Enter the keyword in to activate only inbound policies.
out (OPTIONAL) Enter the keyword out to activate only outbound policies.
<1-4294967295> Enter <1-4294967295> to clear peers with the AS number.
<0.1-65535.65535> Enter <0.1-65535.65535> to clear peers with the AS number in dot
format.
A.B.C.D Enter the BGP neighbor address in the A.B.C.D format to clear.
X:X:X:X::X Enter the BGP neighbor address in the X:X:X:X::X format to clear.
dampening Enter the keyword dampening to clear the flap dampening information.
flap-statistics Enter the keyword flap-statistics to clear the flap statistics information.
ipv4 Enter the ipv4 address family to clear.
ipv6 Enter the ipv6 address family to clear.
peer-group Enter the peer-group to clear all members of the peer-group.
bgp recursive-bgp-next-hop Disable next-hop resolution through other routes learned by BGP
bgp soft-reconfig-backup Turn on BGP Soft Reconfiguration
Version 9.0.2.0 Introduced on the S6000.
Version 8.3.11.1 Introduced on the Z9000.
Version 7.8.1.0 Introduced support on S-Series










