R0106-HP MSR Router Series MPLS Command Reference(V7)

298
Usage guidelines
A local PE sets the route targets as export targets in BGP update messages when it advertises L2VPN
information through the update messages to a remote 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 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
Parameters
group-name: Specifies the name of the cross-connect group, a case-sensitive string of 1 to 31 characters
excluding hyphens.
Usage guidelines
L2VPN can create multiple LDP, BGP, and static PWs for a cross-connect group.
Examples
# Create a cross-connect group named vpn1 and enter cross-connect group view.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1]
Related commands
display l2vpn xconnect-group