3com S7906E Guide De Référence
1-26
route-distinguisher (MPLS L2VPN view)
Syntax
route-distinguisher route-distinguisher
View
MPLS L2VPN view
Default Level
2: System level
Parameters
route-distinguisher: Specifies the route distinguisher (RD) in the format of nn:nn or IP-address:nn. It can
be a string of 3 to 21 characters.
An RD can be in either of the following formats:
z
16-bit AS number:32-bit user-defined number. For example, 101:3.
z
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
Description
Use the route-distinguisher command to configure an RD for the VPN.
Different VPNs on a PE must have different RDs, while a VPN can have the same or different RDs on
different PEs.
z
You cannot change an RD directly; you can only delete the VPN and then re-create the VPN using
the new RD.
z
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.
z
Once you configure an RD for a VPN, you cannot remove the association between the RD and the
VPN.
Examples
# Configure the RD of a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
vpn-target (MPLS L2VPN view)
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 ] }