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 |
---|---|---|
ipv6-address |
Specifies an IPv6 peer address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X |
accept-prefix |
Specifies the number of routes that match a policy.
|
- |
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.
|
The value is an integer ranging from 1 to 100. The default value is 75. |
alert-only |
Enables the device to send a threshold-reaching or threshold-crossing alarm and stops receiving excess routes if the proportion of the number of received routes to the limit reaches the percentage or 100%. In this situation, the peer relationship is not disconnected. |
- |
idle-forever |
Enables the device to send an alarm if the proportion of the number of received routes to the limit reaches the percentage. After the number of received routes exceeds the limit, the connection is interrupted and will not be automatically re-established. |
- |
idle-timeout times |
Enables the device to send an alarm if the proportion of the number of received routes to the limit reaches the percentage. After the number of received routes exceeds the limit, the connection is interrupted, and the device does not automatically re-establish the connection until the timer expires. |
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.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv6-family [*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv6] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vpna [*HUAWEI-bgp-6-vpna] peer 2001:DB8:1::1 as-number 100 [*HUAWEI-bgp-6-vpna] peer 2001:DB8:1::1 route-limit 10000