
231
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, such as 101:3.
•
32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
•
32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than
65,536. For example, 65536:1.
both
: Uses the specified VPN targets as both import targets and export targets. The
both
keyword also is
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.
Examples
# Configure VPN targets for the VPLS instance
aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] pwsignal bgp
[Sysname-vsi-aaa-bgp] vpn-target 100:1
[Sysname-vsi-aaa-bgp] vpn-target export-extcommunity 1:1 2:2
[Sysname-vsi-aaa-bgp] vpn-target import-extcommunity 1.2.3.4:11 12:12
vsi
Description
Use the
vsi
command to create a VSI and enter VSI view. If the specified VSI already exits, you enter the
VSI view directly.
Use the
undo
vsi
command to remove a VSI.
•
To enter the view of an existing VSI, use the
vsi
vsi-name
command without specifying any other
parameters.
•
To create a VSI, specify a globally unique name for it.
•
Before creating a VSI that supports VPLS, enable L2VPN and MPLS L2VPN by using the
l2vpn
command and the
mpls l2vpn
command.
Related commands:
display vsi
,
mpls
l2vpn
and
l2vpn
.
Syntax
vsi
vsi-name
[
auto
|
static
]
undo
vsi
vsi-name
View
System view
Default level
2: System level
Parameters
vsi-name
: Specifies the name of the VSI instance, which is a case-insensitive string of 1 to 31 characters.
Hyphens (-) are not allowed.