
266
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.
Syntax
route-distinguisher
route-distinguisher
View
MPLS L2VPN view
Default level
2: System level
Parameters
route-distinguisher
: Specifies the 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 any of the following formats:
•
16-bit AS number: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
65,536. For example, 65536:1.
Examples
# Configure the RD of a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
trans-mode
Description
Use the
trans-mode
command to specify the PW transport mode.
Use the
undo trans-mode
command to restore the default.
By default, the PW transport mode is VLAN.
The packet encapsulation type on an Ethernet PW can be either Ethernet or VLAN.
•
In Ethernet mode, P-Tag is not transferred on the PW. If a packet from a CE contains the service
delimiter, the PE removes the service delimiter and adds a PW label and a tunnel label into the
packet before sending the packet out. If a packet from a CE contains no delimiter, the PE directly
adds a PW label and a tunnel label into the packet, and then sends the packet out. For a packet to
be sent downstream, you can configure the PE to add or not add the service delimiter into the
packet. You cannot rewrite and remove existing tags.
•
In VLAN mode, packets transmitted over the PW must carry a P-Tag. For a packet from a CE, if it
contains the service delimiter, the PE keeps the P-TAG unchanged or changes the P-tag to the VLAN
tag expected by the peer PE or to a null tag (the tag value is 0), and then adds a PW label and a
tunnel label into the packet before sending the packet out. If the packet contains no service delimiter,
the PE adds the VLAN tag expected by the peer PE or a null tag, and then a PW label and a tunnel