routeprotocol.com

Clearing BGP Sessions

When a BGP filtering method has been changed, the BGP session may need to be cleared for the new filtering method to take effect.

Typically when a BGP policy changes, the BGP table must be processed by the router for the filtering changes to take effect.

There are two methods of clearing a BGP session, a hard reset, or a soft reset.

If the neighbouring router has a route refresh capability, a soft reset may be all that is needed.

Hard Reset

A hard reset is carried out with the command clear ip bgp x.x.x.x where x is your neighbours IP address. Alternatively all BGP sessions can be cleared with the command clear ip bgp *

! Clear session with neighbour 1.2.3.4
clear ip bgp 1.2.3.4

A hard reset will tear down the entire BGP session with the neighbour, and require it to renegotiate with its neighbour to bring the session back online from the beginning.

Soft Reset

To soft reset a session with a BGP neighbour, use the command clear ip bgp x.x.x.x soft

! Softly clear session with neighbour 1.2.3.4
clear ip bgp 1.2.3.4 soft

Performing a soft reset only carries out a route refresh with the neighbouring router.

Resetting a specific address family

Without specifying a specific address family, all address families with that neighbour will be refreshed with a soft reset. You can reset only a specific address family with this example command clear bgp ipv4 1.2.3.4 soft


Posted

in

, ,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.