Vpn-Target - HP FlexNetwork 3600 v2 Series Command Reference Manual

Hide thumbs Also See for FlexNetwork 3600 v2 Series:
Table of Contents

Advertisement

vpn-target

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
Default level
2: System level
Parameters
vpn-target&<1-8>: Adds VPN target extended community attributes to the import VPN target
extended community attribute list (Import Target) or export VPN target extended community attribute
list (Export Target). &<1-8> means that you can add up to eight VPN targets.
A VPN target attribute can be a string of 3 to 21 characters in one the following formats:
16-bit AS number:32-bit user-defined number. For example, 101:3.
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
32-bit AS number:16-bit user-defined number, where the AS number must not be less than
65536. For example, 65536:1.
both: Uses the specified VPN targets as both import targets and export targets. The both keyword is
also used when you do not specify any of both, export-extcommunity, and import-extcommunity.
export-extcommunity: Uses the specified VPN targets as export targets.
import-extcommunity: Uses the specified VPN targets as import targets.
all: Removes all VPN targets.
Description
Use vpn-target to configure VPN targets for a VPN instance, an IPv4 VPN, or an IPv6 VPN.
Use undo vpn-target 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 VPN instance view are applicable to both the IPv4 VPN and the IPv6 VPN.
VPN targets configured in IPv6 VPN view are applicable to only the IPv6 VPN.
VPN targets configured in IPv6 VPN view take precedence over those configured in VPN instance
view. If you configure VPN targets in both IPv6 VPN view and VPN instance view, the IPv6 VPN uses
the VPN targets configured in IPv6 VPN view.
Examples
# Configure VPN targets for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity
[Sysname-vpn-instance-vpn1] vpn-target 4:4 import-extcommunity
[Sysname-vpn-instance-vpn1] vpn-target 5:5 both
# Configure VPN targets for the IPv6 VPN of VPN instance vpn3.
<Sysname> system-view
486

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents