Reference Guide
Version 7.8.1.0 Introduced on the S-Series.
Version 7.7.1.0 Introduced on the C-Series.
Usage 
Information
Peering sessions are reset when you change the router ID of a BGP router.
This command automatically restarts the BGP instance for the configuration to 
take effect.
clear ip bgp
Reset BGP sessions. The soft parameter (BGP Soft Reconfiguration) clears the policies without resetting 
the TCP connection.
S4820T
Syntax
clear ip bgp [vrf vrf-name] * | as-number | ip-address [flap-
statistics | soft [in | out]] 
Parameters
vrf vrf-name Enter the keyword vrf and then the name of the VRF to 
clear all BGP sessions corresponding to that VRF.
NOTE: Use this attribute to clear a BGP instance 
corresponding to either a specific address family in a 
default VRF or an IPv4 address family in a a non-default 
VRF.
* Enter an asterisk ( * ) to reset all BGP sessions.
as-number Enter the AS number to reset all neighbors belonging to that 
AS. The range is from 0 to 65535 (2 byte), from 1 to 
4294967295 (4 byte), or from 0.1 to 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 the clear ip bgp ip-address 
soft command, 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.
400
Border Gateway Protocol










