R2511-HP MSR Router Series MPLS Command Reference(V5)
112
No RD is configured by default. You must configure an RD for each VPN. A VPN takes effect only when
it is configured with an RD.
Once you configure an RD for a VPN, you cannot remove the association between the RD and the VPN.
You cannot change an RD directly. You can only delete the VPN and then re-create the VPN by using the
new RD.
Examples
# Configure the RD of a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
vpn-target (MPLS L2VPN view)
Use vpn-target to configure route targets for the MPLS L2VPN.
Use undo vpn-target to remove the specified or all route targets of the MPLS L2VPN.
Syntax
vpn-target vpn-target&<1-16> [ both | export-extcommunity | import-extcommunity ]
undo vpn-target { all | { vpn-target&<1-16> [ both | export-extcommunity | import-extcommunity ] }
Views
MPLS L2VPN view
Default command level
2: System level
Parameters
vpn-target&<1-16>: Adds route target extended community attributes to the import route target extended
community attribute list (Import Target) or export route target extended community attribute list (Export
Target). &<1-16> means that you can add up to 16 route targets.
A route target attribute can be a string of 3 to 21 characters in one of these formats:
• 16 - bi t AS nu mb er :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.
Usage guidelines
By default, an MPLS L2VPN has no route targets. You must configure route targets when creating an MPLS
L2VPN.










