6-63
[Sysname] bgp 100
[Sysname-bgp] peer test reflect-client
peer route-limit (BGP/BGP-VPN instance view)
Syntax
peer
{
group-name
|
ip-address
}
route-limit prefix-number
[ {
alert-only
|
reconnect
reconnect-time
}
|
percentage-value
] *
undo peer
{
group-name
|
ip-address
}
route-limit
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name
: Name of a peer group, a string of 1 to 47 characters.
ip-address
: IP address of a peer.
prefix-number
: Number of prefixes that can be received from the peer or peer group. The number
ranges from 1 to 16384. If the number of prefixes received from the peer/peer group reaches the
prefix-number
, the router will tear down the connection to the peer/peer group.
alert-only
: If the number of prefixes received from the peer/peer group reaches the
prefix-number
, the
router will not tear down the connection to the peer/peer group but display an alarm message.
reconnect reconnect-time:
Specifies a reconnect time, after which, the router will re-establish a
connection to the peer/peer group. It has no default value and is in the range 1 to 65535 seconds.
percentage-value
: Threshold value for the router to display an alarm message (that is, the router
displays an alarm message when the ratio of the number of received prefixes to the
prefix-number
reaches the
percentage
). It is in the range 1 to 100 and defaults to 75.
Description
Use the
peer route-limit
command to set the number of route prefixes that can be received from a
peer/peer group.
Use the
undo peer route-limit
command to restore the default.
The number is not limited by default.
Examples
# In BGP view, set the number of route prefixes that can be received from peer 129.140.6.6 to 10000.
<Sysname> system-view
[Sysname] bgp 109
[Sysname-bgp] peer 129.140.6.6 as-number 110
[Sysname-bgp] peer 129.140.6.6 route-limit 10000
# In BGP-VPN instance view, set the number of route prefixes that can be received from peer
129.140.6.6 to 10000 (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 109
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 129.140.6.6 as-number 110