The peer route-limit command sets the maximum number of routes that can be received from a peer group.
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 |
---|---|---|
peerGroupName |
Specifies the name of an MBGP peer group. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
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 ratio of the number of received routes to the maximum number of routes allowed (limit) when the router starts to generate alarms. |
The value is an integer ranging from 1 to 100. The default value is 75. |
alert-only |
Indicates that if the number of received routes exceeds the limit, an alarm will be generated and no additional routes will be accepted. |
- |
idle-forever |
Indicates that after the number of routes exceeds the limit, no connection is established automatically. |
- |
idle-timeout times |
Specifies the value of the timeout timer. The connection, which is closed because the number of routes exceeds the threshold, is automatically re-established in the period specified by the timeout timer. |
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 an MBGP device is allowed to receive from its peer. This adds a mechanism for controlling the routes received from peers in addition to distribution lists, filtering lists, and route mappings.
If the peer relationship between two peers is in the Established state, the following situations occur:<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer test as-number 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer test enable [*HUAWEI-bgp-af-multicast] peer test route-limit 10000