Clearing traffic counters – Brocade Communications Systems Layer 3 Routing Configuration ICX 6650 User Manual
Page 415

Brocade ICX 6650 Layer 3 Routing Configuration Guide
397
53-1002603-01
Clearing traffic counters
neighbor as needed. This ensures that the neighbor receives only the routes you want it to
contain. Even if the neighbor already contains a route learned from the Layer 3 switch that you
later decided to filter out, using the soft-outbound option removes that route from the
neighbor.
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.
Brocade#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 option 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.
Brocade#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.
Brocade#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.
Brocade#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.
Brocade#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.
Brocade#clear ip bgp neighbor PeerGroup1 traffic