R0106-HP MSR Router Series MPLS Command Reference(V7)
297
Examples
# Reference the tunnel policy policy1 for the auto-discovery cross-connect in the cross-connect group bbb.
<Sysname> system-view
[Sysname] tunnel-policy policy1
[Sysname-tunnel-policy-policy1] quit
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] site 2 range 10 default-offset 0
[Sysname-xcg-bbb-auto-2] connection remote-site-id 3
[Sysname-xcg-bbb-auto-2-3] tunnel-policy policy1
Related commands
tunnel-policy
vpn-target
Use vpn-target to configure route targets for a cross-connect group.
Use undo vpn-target to remove the specified or all route targets for a cross-connect group.
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 a cross-connect group.
Views
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Parameters
vpn-target&<1-8>: Specifies a space-separated list of up to eight route target items. Each item specifies
a route target by its name.
A route target is a string of 3 to 21 characters in one of these formats:
• 16 - b i t AS n u m b e r :32-bit user-defined number. For example, 101:3.
• 32-bit IP address:16-bit user-defined number. For example, 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 65536. For example, 65536:1.
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.