R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

280
Default
The number of routes that can be received from a peer or peer group is not limited.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ip-address: Specifies the IP address of a peer.
prefix-number: Specifies the number of prefixes that can be received from the peer or peer group. 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. The value range for the prefix-number argument is 1 to
4000000.
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 re-establishes a connection
to the peer/peer group. It has no default value and is in the range of 1 to 65535 seconds.
percentage-value: Specifies the threshold value for the router to display an alarm message (the router
displays an alarm message when the ratio of the number of received prefixes to the prefix-number
exceeds the percentage). It is in the range of 1 to 100 and defaults to 75.
Examples
# In BGP view, specify the maximum number of routes that can be received from peer 129.140.6.6 to
10000, and configure the router to tear down the connection to the peer if the number is exceeded.
<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, specify the maximum number of routes that can be received from peer
129.140.6.6 to 10000, and configure the router to tear down the connection to the peer if the number is
exceeded. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 109
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer 129.140.6.6 as-number 110
[Sysname-bgp-ipv4-vpn1] peer 129.140.6.6 route-limit 10000
peer route-policy (BGP/BGP-VPN instance view)
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.
Syntax
peer { group-name | ip-address } route-policy route-policy-name { export | import }