R211x-HP Flexfabric 11900 MPLS Command Reference

242
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 (label block 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,
and for the BGP cross-connect group bbb.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] vpn-target 10:1 100:1 1000:1 import-extcommunity
[Sysname-xcg-bbb-auto] vpn-target 20:1 200:1 2000:1 export-extcommunity
xconnect-group
Use xconnect-group to create a cross-connect group and enter cross-connect group view. If the specified
group has been created, the command opens cross-connect group view.
Use undo xconnect-group to delete a cross-connect group.
Syntax
xconnect-group group-name
undo xconnect-group group-name
Default
No cross-connect group is created.
Views
System view
Predefined user roles
network-admin
mdc-admin