258
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
maximum-prefix (BGP)
maximum-prefix (BGP)
To control how many prefixes can be received from a neighbor, use the maximum-prefix command. To
disable this function, use the no form of this command.
maximum-prefix maximum [threshold] [restart restart-interval] [warning-only]
no maximum-prefix
Syntax Description
Command Default This command is disabled by default. Peering sessions are disabled when the maximum number of
prefixes is exceeded. If you do not configure the restart interval, a disabled session stays down after the
maximum-prefix limit is exceeded.
Command Modes Peer template configuration mode
BGP router configuration mode
BGP neighbor address-family configuration mode
Command History
Usage Guidelines The number of prefixes that can be configured is limited only by the available system resources on a
router.
The maximum-prefix command allows you to configure a maximum number of prefixes that a Border
Gateway Protocol (BGP) routing process accepts from the specified peer. This feature provides a
mechanism (in addition to distribute lists, filter lists, and route maps) to control prefixes received from
a peer.
When the number of received prefixes exceeds the maximum number configured, BGP disables the
peering session (by default). If you configure the restart interval, BGP automatically reestablishes the
peering session at the configured time interval. If you do not configure the restart interval and a peering
maximum Maximum number of prefixes allowed from the specified neighbor.
The number of prefixes that can be configured is limited only by the
available system resources on a router. The range is from 1 to 300000.
threshold (Optional) Specifies the percentage of the maximum-prefix limit at
which the router starts to generate a warning message. The range is
from 1 to 100. The default is 75.
restart restart-interval (Optional) Specifies the time interval (in minutes) that a peering
session is reestablished. The range is from 1 to 65535.
warning-only (Optional) Allows the router to generate a syslog message when the
maximum-prefix limit is exceeded, instead of terminating the peering
session.
Release Modification
5.0(3)A1(1) This command was introduced.