Foundry Configuration Guide for the FESX, FSX, and FWSX
21 - 106 © Foundry Networks, Inc. December 2005
You can specify a single neighbor or a peer group.
To close a neighbor session and thus flush all the routes exchanged by the Layer 3 Switch and the neighbor, enter
the following command:
FESX424 Router# clear ip bgp neighbor all
Syntax: clear ip bgp neighbor all | <ip-addr> | <peer-group-name> | <as-num> [soft-outbound | soft [in | out]]
The all | <ip-addr> | <peer-group-name> | <as-num> specifies the neighbor. The <ip-addr> parameter specifies a
neighbor by its IP interface with the Layer 3 Switch. The <peer-group-name> specifies all neighbors in a specific
peer group. The <as-num> parameter specifies all neighbors within the specified AS. The all parameter specifies
all neighbors.
To resend routes to a neighbor without closing the neighbor session, enter a command such as the following:
FESX424 Router# clear ip bgp neighbor 10.0.0.1 soft out
Clearing and Resetting BGP4 Routes in the IP Route Table
To clear BGP4 routes from the IP route table and reset the routes, enter a command such as the following:
FESX424 Router# clear ip bgp routes
Syntax: clear ip bgp routes [<ip-addr>/<prefix-length>]
NOTE: The clear ip bgp routes command has the same effect as the clear ip route command, but applies only
to routes that come from BGP4.
Clearing Traffic Counters
You can clear the counters (reset them to 0) for BGP4 messages. To do so, use one of the following methods.
To clear the BGP4 message counter for all neighbors, enter the following command:
FESX424 Router# clear ip bgp traffic
Syntax: clear ip bgp traffic
To clear the BGP4 message counter for a specific neighbor, enter a command such as the following:
FESX424 Router# clear ip bgp neighbor 10.0.0.1 traffic
To clear the BGP4 message counter for all neighbors within a peer group, enter a command such as the following:
FESX424 Router# clear ip bgp neighbor PeerGroup1 traffic
Syntax: clear ip bgp neighbor all | <ip-addr> | <peer-group-name> | <as-num> traffic
The all | <ip-addr> | <peer-group-name> | <as-num> specifies the neighbor. The <ip-addr> parameter specifies a
neighbor by its IP interface with the Layer 3 Switch. The <peer-group-name> specifies all neighbors in a specific
peer group. The <as-num> parameter specifies all neighbors within the specified AS. The all parameter specifies
all neighbors.
Clearing Route Flap Dampening Statistics
To clear route flap dampening statistics, use the following CLI method.
NOTE: Clearing the dampening statistics for a route does not change the dampening status of the route.
To clear all the route dampening statistics, enter the following command at any level of the CLI:
FESX424 Router# clear ip bgp flap-statistics