R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

422
The number of routes received from the peer or peer group reaches the prefix-number.
You can use the reset bgp command to reestablish 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.
discard: If the number of routes received from the peer or peer group reaches the prefix-number, the
router retains the session to the peer or peer group. However, it discards excess routes and generates a
log message. After the number of routes received from the peer or peer group falls below the
prefix-number, the router can continue to receive routes from the peer or peer group. To restore the
discarded routes, use the refresh bgp import command to request the peer or peer group to resend the
routes.
reconnect reconnect-time: Specifies a reconnect time. After the time is reached, the router reestablishes
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. 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. 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
# In BGP IPv6 unicast address family view, specify the maximum number of routes that can be received
from peer 1::1 to 10000. 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 ipv6 unicast
[Sysname-bgp-ipv6] peer 1::1 route-limit 10000
peer route-policy
Use peer route-policy to apply a routing policy to routes incoming from or outgoing to a peer or peer
group.
Use undo peer route-policy to remove the configuration.