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 |
Specifies the maximum number of routes that can be received from a peer. |
The value is an integer ranging from 1 to 4294967295. |
percentage |
Specifies the proportion threshold of the number of received routes to the limit value. |
The value is an integer ranging from 1 to 100. The default value is 75. |
alert-only |
Enables the device to send a threshold or threshold-crossing alarm and not to receive excess alarms if the percentage of the number of received routes to the maximum number of routes that can be received reaches the specified percentage or 100%. In this case, the peer relationship is not disconnected. |
- |
idle-forever |
Enables the device to send a threshold alarm if the percentage of the number of received routes to the maximum number of routes that can be received exceeds the specified percentage. When the threshold is exceeded, the peer relationship is disconnected and will not be automatically re-established. |
- |
idle-timeout times |
Enables the device to send a threshold alarm if the percentage of the number of received routes to the maximum number of routes that can be received reaches the specified percentage. When the threshold is exceeded, the peer relationship is disconnected and the connection timeout timer is automatically started. Before the timer expires, the device does not re-establish the connection. |
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: If the number of routes received by the device exceeds the maximum limit after you run the peer route-limit command for the first time or run the command to reduce the maximum limit: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.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpna [*HUAWEI-bgp-instance-vpna] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp-instance-vpna] quit [*HUAWEI-bgp] ipv4-flow vpn-instance vpna [*HUAWEI-bgp-flow-vpna] peer 1.1.1.1 enable [*HUAWEI-bgp-flow-vpna] peer 1.1.1.1 route-limit 10000