Clearing bgp4 routes to neighbors – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 230

Advertising
background image

216

Brocade Virtual ADX Switch and Router Guide

53-1003246-01

Four-byte Autonomous System Numbers (AS4)

8

NOTE

If the AS path for a route map has prepended ASNs and you want to use the no form of the command
to delete the configuration, you must include the prepended ASNs in the no set as-path entry. For
example, if 70000 and 70001 have been prepended to a route map, enter no set as-path prepend
70000 70001. As a shortcut, in the configuration context of a particular route map, you can also
copy and paste ASNs from the output of show commands, such as show route-map or show ip bgp
route.

Use the prepend keyword to prepend one or more ASNs. The maximum number of ASNs that you
can prepend is 16. The range for each ASN is 1 – 4294967295.

Entering the tag keyword sets the tag as an AS-path attribute.

Clearing BGP4 routes to neighbors

You can clear BGP4 connections using the AS4 as an argument with the clear ip bgp neighbor
command in the configuration context level of the CLI. as shown.

Virtual ADX(config)# clear ip bgp neighbor 80000

Syntax: clear ip bgp neighbor all | ip-addr | as-num

[ last-packet-with-error | notification-errors | [soft [in | out ] | soft-outbound ]

The neighbor specification is either all, ip-addr or as-num. The all parameter specifies all
neighbors. 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. After choosing one mandatory
parameter, you can choose an optional parameter.

The soft [in | out] parameter determines whether to refresh the routes received from the neighbor
or the routes sent to the neighbor. If you do not specify in or out, the device performs a soft refresh
in both options:

soft in performs one of the following actions on inbound routes, according to other
configuration settings:

-

If you enabled soft reconfiguration for the neighbor, soft in updates the routes by
comparing the route policies against the route updates that the device has stored. Soft
reconfiguration does not request additional updates from the neighbor or otherwise affect
the session with the neighbor.

-

If you did not enable soft reconfiguration, soft in requests the entire BGP4 route table on
the neighbor (Adj-RIB-Out), then applies the filters to add, change, or exclude routes.

-

If a neighbor does not support dynamic refresh, soft in resets the neighbor session.

soft out updates all outbound routes and then sends the entire BGP4 route table for the device
(Adj-RIB-Out) to the neighbor after the device changes or excludes the routes affected by the
filters.

The soft-outbound parameter updates all outbound routes by applying the new or changed
filters, but sends only the existing routes affected by the new or changed filters to the neighbor.

Advertising