Examples
# Reset all IPv6 BGP connections in VPN instance
vpn1
.
<Sysname> reset bgp ipv6 vpn-instance vpn1 all
routing-table limit
Syntax
routing-table
limit
number
{
warn-threshold
|
simply-alert
}
undo routing-table limit
View
VPN instance view, IPv6 VPN view
Default level
2: System level
Parameters
number
: Specifies the maximum number of routes supported. The value ranges from 1 to 6144.
warn-threshold
: Specifies a threshold for warning, in the range of 1 to 100, in percentages. When the
percentage of the number of existing routes to the maximum number of routes supported exceeds
the specified threshold, the system gives an alarm message but still allows new routes. If the number
of routes in the VPN instance reaches the maximum supported, no more routes are added.
simply-alert
: Specifies that when the number of routes exceeds the maximum number of routes
supported, the system still accepts routes but generates a system log (Syslog) message.
Description
Use
routing-table
limit
to limit the maximum number of routes in a VPN instance, an IPv4 VPN, or
an IPv6 VPN, preventing too many routes from being accepted by a PE.
Use
undo routing-table limit
to restore the default.
By default, no limit is configured.
A limit configured in VPN instance view applies to both the IPv4 VPN and the IPv6 VPN.
A limit configured in IPv6 VPN view applies to only the IPv6 VPN.
A limit configured in IPv6 VPN view takes precedence over that configured in VPN instance view. If
you configure a limit in both IPv6 VPN view and VPN instance view, IPv6 VPN uses the limit
configured in IPv6 VPN view.
Examples
# Configure VPN instance
vpn1
to support up to 1000 routes, and receive new routes after the
number of existing routes exceeds the limit.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 100:1
[Sysname-vpn-instance-vpn1] routing-table limit 1000 simply-alert
# Specify that the IPv6 VPN of VPN instance
vpn3
supports up to 1000 routes, and can receive new
routes after the number of existing routes exceeds the limit.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] route-distinguisher 100:3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv4-vpn3] routing-table limit 1000 simply-alert
485