
47
Default level
2: System level
Parameters
number
: Specifies the maximum number of routes supported. The value ranges from 1 to 8192.
warn-threshold
: Specifies a threshold for warning, ranging from 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 Syslog message.
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
vpn-target (VPN instance view/IPv6 VPN view)
Description
Use the
vpn-target
command to configure VPN targets for a VPN instance, an IPv4 VPN, or an IPv6 VPN.
Use the
undo vpn-target
command to remove the specified or all VPN targets of a VPN instance, an IPv4
VPN, or an IPv6 VPN.
By default, no VPN targets are configured, and you must configure VPN targets when creating a VPN
instance, an IPv4 VPN, or an IPv6 VPN.
•
VPN targets configured in IPv6 VPN view is applicable to only the IPv6 VPN.
•
VPN targets configured in IPv6 VPN view takes precedence over that configured in VPN instance
view. If you configure VPN targets in both IPv6 VPN view and VPN instance view, those configured
in IPv6 VPN view are applied to the IPv6 VPN.
Syntax
vpn-target
vpn-target
&<1-8> [
both
|
export-extcommunity
|
import-extcommunity
]
undo vpn-target
{
all
|
vpn-target
&<1-8> [
both
|
export-extcommunity
|
import-extcommunity
] }
View
VPN instance view, IPv6 VPN view