3Com S7902E Command Reference Manual - page 1530
1-26
Parameters
vpn-target
&: Adds the VPN target extended community attribute to the import or export VPN
target extended community list and specify the VPN target in the format nn:nn or IP-address:nn. &
means that you can specify this argument for up to 8 times.
A VPN target attribute can be of 3 to 21 characters and in either of these two formats:
z
16-bit AS number:32-bit user-defined number. For example, 101:3.
z
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
both
: Specifies both the export routing information to the destination VPN extended community and the
import routing information from the destination VPN extended community. This is the default.
export-extcommunity
: Specifies the export routing information to the destination VPN extended
community.
import-extcommunity
: Specifies the import routing information from the destination VPN extended
community.
all
: Specifies all export routing information to the destination VPN extended community and import
routing information from the destination VPN extended community.
Description
Use the
vpn-target
command to associate the current VPN instance with one or more VPN targets.
Use the
undo vpn-target
command to remove the association of the current VPN instance with VPN
targets.
VPN target has no default. You must configure it when creating a VPN instance.
Examples
# Associate the current VPN instance with VPN targets.
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 100:1
[Sysname-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity
EVT Assignment result:
VPN-Target assignment is successful
[Sysname-vpn-instance-vpn1] vpn-target 4:4 import-extcommunity
IVT Assignment result:
VPN-Target assignment is successful
[Sysname-vpn-instance-vpn1] vpn-target 5:5 both
IVT Assignment result:
VPN-Target assignment is successful
EVT Assignment result:
VPN-Target assignment is successful