378
undo peer
{
group-name
|
ip-address
|
ipv6-address
}
route-limit
Default
The number of routes that can be received from a peer or peer group is not limited.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address
family view, BGP IPv6 unicast address family view, BGP VPNv6 address family view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.
ipv6-address
: Specifies a peer by its IPv6 address. The peer must have been created.
prefix-number
: Specifies the number of routes that can be received from the peer or peer group. The value
range is 1 to 4294967295. If the
alert-only
, and
reconnect
keywords are not specified, and the number
of routes received from the peer or peer group reaches the
prefix-number
, the router will tear down the
session to the peer or peer group and will not attempt to re-establish the session. You can use the
reset
bgp
command to re-establish the session.
alert-only
: If the number of routes received from the peer or peer group reaches the
prefix-number
, the
router generates a log message instead of tearing down the session to the peer or peer group. The router
can continue to receive routes from the peer or peer group.
reconnect
reconnect-time:
Specifies a reconnect time, after which, the router re-establishes a session to
the peer or peer group when the number of routes received from the peer or peer group reaches the
prefix-number
. The value range for the
reconnect-time
argument is 1 to 65535 seconds.
percentage-value
: Specifies the threshold value for the router to generate a log message (the router
generates a log message when the ratio of the number of received routes to the
prefix-number
exceeds
the percentage value). The value range of this argument is 1 to 100, and the default is 75.
Examples
# In BGP IPv4 unicast address family view, specify the maximum number of routes that can be received
from peer 1.1.1.1 to 10000, and configure the router to tear down the session to the peer if the number is
exceeded.
<Sysname> system-view
[Sysname] bgp 109
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] peer 1.1.1.1 route-limit 10000
# In BGP-VPN IPv4 unicast address family view, specify the maximum number of routes that can be
received from peer 1.1.1.1 to 10000, and configure the router to tear down the session to the peer if the
number is exceeded.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1] peer 1.1.1.1 route-limit 10000