Clearing traffic counters, Clearing route flap dampening statistics – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual
Page 287
Brocade Virtual ADX Switch and Router Guide
273
53-1003246-01
Filtering
8
To close a neighbor session and thus flush all the routes exchanged by the device and the neighbor,
enter the following command.
Virtual ADX# clear ip bgp neighbor all
Syntax: clear ip bgp neighbor all | ip-addr | as-num [soft-outbound | soft [in | out]]
The all | ip-addr | as-num parameters specify the neighbor. The ip-addr parameter specifies a
neighbor by its IP interface with the device. The as-num parameter specifies all neighbors within an
AS and has a range of 1 – 4294967295. The all keyword specifies all neighbors.
To resend routes to a neighbor without closing the neighbor session, enter a command such as the
following.
Virtual ADX# 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.
Virtual ADX# clear ip bgp routes
Syntax: clear ip bgp routes [ip-addr/prefix-length]
Clearing traffic counters
You can clear the counters (reset them to 0) for BGP4 messages.
To clear the BGP4 message counter for all neighbors, enter the following command.
Virtual ADX# 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.
Virtual ADX# clear ip bgp neighbor 10.0.0.1 traffic
Syntax: clear ip bgp neighbor all | ip-addr | as-num traffic
The all | ip-addr | as-num parameters specify the neighbor. The ip-addr parameter specifies a
neighbor by its IP interface with the device. The as-num parameter specifies all neighbors within
the specified AS. The all parameter specifies all neighbors.
Clearing route flap dampening statistics
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.
Virtual ADX# clear ip bgp flap-statistics
Syntax: clear ip bgp flap-statistics [regular-expression regular-expression | address mask |
neighbor ip-addr]