Neighbor maximum-prefix – Enterasys Networks X-Pedition XSR CLI User Manual
Page 292
BGP Configuration Commands
6-96 Configuring the Border Gateway Protocol
Syntax of the “no” Form
The no form of this command removes the specified neighbor:
no neighbor {ip-address | peer-group-name} filter-list filter-list
Mode
Router configuration:
XSR(config-router)#
Example
This example applies filter list 1 to incoming advertisements from neighbor 192.168.1.1. Only
routes which start with AS path 200 and end with AS path 500 will be accepted from the neighbor.
XSR(config)#ip as-path access-list 1 permit “^200 .* 500$”
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 filter-list 1 in
neighbor maximum-prefix
This command controls the number of prefixes received from a particular neighbor. When the
maximum number of prefixes is exceeded, a CEASE message is sent and the connection is cleared.
To reactivate the session, enter
clear ip bgp
. If the number of prefixes is set to
zero, no prefixes will be accepted from the neighbor.
Syntax
neighbor {ip-address | peer-group-name} maximum-prefix value [threshold][warning-
only]
peer-group-name
BGP peer group by name. Range: 1 to 64 characters.
filter-list
Identifies the AS path access list. Range is 1‐199.
in
Filter list is applied to inbound routes.
out
Filter list is applied to outbound routes.
weight
Assigns a weight to all routes matching the filter list.
value
Weight range from 0 to 65535.
ip-address
Neighbor’s IP address.
peer-group-name
BGP peer group by name. Range: 1 to 64 characters.
value
Maximum number of prefixes that can be received from a neighbor,
ranging from 1 to 4,294,967,295.
threshold
The threshold value ‐ percentage of maximum ‐ at which a warning is
generated, ranging from 1 to 100 prefixes.
warning-only
When the maximum number of prefixes is reached the XSR generates a
warning message instead of terminating the peering session.