Command:

clear ip bgp


Mode:

Router#


Syntax:

clear ip bgp {* | address | peer-group-name } [soft [in | out ]]


Syntax Description:

*

Resets all current BGP sessions

neighbor-address

Resets only the identified BGP neighbor.

peer-group-name

Resets the specified BGP peer group.

out

(Optional) Triggers outbound soft reconfiguration. If the in or out option is not specified, both inbound and outbound soft reset are triggered.

in 

(Optional) Triggers inbound soft reconfiguration. If the in or out option is not specified, both inbound and outbound soft reset are triggered.

soft

(Optional) Soft reset. Does not reset the session.

 


Command Description:

 

To force BGP to clear its table and reset all BGP sessions or to reset individual BGP connections, use the clear ip bgp privileged EXEC command.

Usage Guidelines

If BGP soft reconfiguration is specified, by including the soft keyword, the sessions are not reset and the router sends all routing updates again. To generate new inbound updates without resetting the BGP session, the local BGP speaker should store all received updates without modification regardless of whether it is accepted by the inbound policy, using the neighbor soft-reconfiguration command. This process is memory intensive and should be avoided if possible. Outbound BGP soft configuration does not have any memory overhead. An outbound reconfiguration can be triggered on the other side of the BGP session to make the new inbound policy take effect.

Use this command whenever any of the following changes occur:


Example:

 

The following example resets all current BGP sessions:

Router#clear ip bgp *

The following example resets a specific BGP session: 

Router#clear ip bgp 10.0.0.0


Misconceptions:

 

None


Related Commands:

 

show ip bgp

 

neighbor soft-reconfiguration

 

 


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)