R211x-HP Flexfabric 11900 MPLS Command Reference
301
Syntax
vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]
undo vpn-target { vpn-target&<1-8> | all } [ both | export-extcommunity | import-extcommunity ]
Default
No route targets are configured for an auto-discovery VSI.
Views
Auto-discovery VSI
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-target&<1-8>: Configures route targets. &<1-8> means that you can configure up to 8 route targets
in one command line.
A route target is a string of 3 to 21 characters in one of these formats:
• 16 - bit AS numbe r :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, such as 65536:1. In this format, the minimum value of
the AS number is 65536.
both: Uses the specified route 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 route targets as export targets.
import-extcommunity: Uses the specified route targets as import targets.
all: Removes all route targets.
Usage guidelines
A PE adds the export targets into BGP L2VPN information advertised to a peer. The peer uses its import
targets to match the received export targets. If a match is found, the peer accepts the L2VPN information.
Examples
# Configure import route targets as 10:1 100:1 1000:1 and export route targets as 20:1 200:1 2000:1,
for the auto-discovery VSI aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] vpn-target 10:1 100:1 1000:1 import-extcommunity
[Sysname-vsi-aaa-auto] vpn-target 20:1 200:1 2000:1 export-extcommunity
vsi
Use vsi to create a VSI or enter VSI view. If the VSI has been created, the command opens VSI view
directly.
Use undo vsi to delete a VSI.










