Configuring BGP4
December 2000 19 - 15
The neighbor command has some additional parameters, as shown in the following syntax:
Syntax: [no] neighbor <ip-addr> | <peer-group-name>
[advertisement-interval <num>] [default-originate [route-map <map-name>]]
[description <string>]
[distribute-list in | out <num,num,...> | <acl-num> in | out]
[ebgp-multihop [<num>]]
[filter-list in | out <num,num,...> | <acl-num> in | out | weight]
[maximum-prefix <num>] [next-hop-self]
[password [0 | 1] <string>] [prefix-list <string>]
[remote-as <as-number>] [remove-private-as]
[route-map in | out <map-name>] [route-reflector-client]
[send-community] [shutdown] [timers keep-alive <num> hold-time <num>]
[update-source loopback <num>] [weight <num>]
The <ip-addr> | <peer-group-name> parameter indicates whether you are configuring an individual neighbor or a
peer group. If you specify a neighbor’s IP address, you are configuring that individual neighbor. If you specify a
peer group name, you are configuring a peer group. See “Adding a BGP4 Peer Group” on page 19-21.
advertisement-interval <num> specifies the minimum delay (in seconds) between messages to the specified
neighbor. The default is 30 for EBGP neighbors (neighbors in other ASs). The default is 5 for IBGP neighbors
(neighbors in the same AS). The range is 0 – 600.
NOTE: The Layer 3 Switch applies the advertisement interval only under certain conditions. The Layer 3 Switch
does not apply the advertisement interval when sending initial updates to a BGP4 neighbor. As a result, the Layer
3 Switch sends the updates one immediately after another, without waiting for the advertisement interval.
default-originate [route-map <map-name>] configures the Layer 3 Switch to send the default route 0.0.0.0 to the
neighbor. If you use the route-map <map-name> parameter, the route map injects the default route conditionally,
based on the match conditions in the route map.
description <string> specifies a name for the neighbor. You can enter an alphanumeric text string up to 80
characters long.
distribute-list in | out <num,num,...> specifies a distribute list to be applied to updates to or from the specified
neighbor. The in | out keyword specifies whether the list is applied on updates received from the neighbor or sent
to the neighbor. The <num,num,...> parameter specifies the list of address-list filters. The router applies the filters
in the order in which you list them and stops applying the filters in the distribute list when a match is found.
Alternatively, you can specify distribute-list <acl-num> in | out to use an IP ACL instead of a distribute list. In
this case, <acl-num> is an IP ACL.
NOTE: By default, if a route does not match any of the filters, the Layer 3 Switch denies the route. To change
the default behavior, configure the last filter as “permit any any”.
NOTE: The address filter must already be configured. See “Filtering Specific IP Addresses” on page 19-48.
ebgp-multihop [<num>] specifies that the neighbor is more than one hop away and that the session type with the
neighbor is thus EBGP-multihop. This option is disabled by default. The <num> parameter specifies the TTL you
are adding for the neighbor. You can specify a number from 0 – 255. The default is 0. If you leave the EBGP TTL
value set to 0, the software uses the IP TTL value.
filter-list in | out <num,num,...> specifies an AS-path filter list or a list of AS-path Access Control Lists (ACLs).
The in | out keyword specifies whether the list is applied on updates received from the neighbor or sent to the
neighbor. If you specify in or out, The <num,num,...> parameter specifies the list of AS-path filters. The router
applies the filters in the order in which you list them and stops applying the filters in the AS-path filter list when a
match is found. The weight <num> parameter specifies a weight that the Layer 3 Switch applies to routes
received from the neighbor that match the AS-path filter or ACL. You can specify a number from 0 – 65535.
Alternatively, you can specify filter-list <acl-num> in | out | weight to use an AS-path ACL instead of an AS-path
filter list. In this case, <acl-num> is an AS-path ACL.