The peer route-limit command sets the maximum number of routes that can be received from a peer.
The undo peer route-limit command cancels the configuration.
By default, there is no limit on the number of routes that can be received from a peer.
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
It is in dotted decimal notation. |
limit |
Route limit value. |
The value is an integer ranging from 1 to 4294967295. |
percentage |
Start to generate warning messages if it reaches maximum percentage value. |
The value is a string of 1 to 100 case-sensitive characters. |
alert-only |
Allows the router to generate log message without terminating session when the maximum is exceeded. |
- |
idle-forever |
Indicates that, when the threshold for the maximum number of routes is exceeded, the device does not automatically re-set up connections until the reset bgp command is run. |
- |
idle-timeout times |
Value of idle-timeout timer(minutes). Auto-connect-retry after timeout when the maximum is exceeded and then terminating session. |
The value is an integer ranging from 1 to 1200, in minutes. |
Usage Scenario
The peer route-limit command is used to set the maximum number of routes that a BGP device is allowed to receive from its peer. This provides a mechanism for controlling the routes received from peers in addition to distribution lists, filtering lists, and route mappings.
Configuration Impact
If the peer route-limit command is run for a peer group, the peers of the peer group inherit the configuration.
If a peer relationship between two devices is in the Established state, the following situations occur:Precautions
If the specified peer has the capability and the peer relationship is interrupted when the number of routes exceeds the threshold, the same peer in all address families will be affected, and the peer relationship will be re-established.