4.1 Configuration Information:
On PE1:
#
Interface GigabitEthernet2/0/16
Undo portswitch
Mpls l2vc 111.111.111.111 90 tagged
#
On PE2:
#
Interface GigabitEthernet4/0/16
Undo portswitch
Mpls l2vc 90.90.90.90 90 tagged
#
4.2 Packets Entering the Tunnel:
1. If the packet sent by CE1 carries a layer of VLAN, as shown in Figure 1:
PE1 forwards the VLAN information in the original packet to the peer PE2. The packets received by PE2 are:
The processing of each version is the same.
2. If the packet sent by CE1 has two layers of VLANs:
PE1 encapsulates the two VLANs in the packets and forwards the packets to PE2. The packets received by PE2 are:
The processing of each version is the same.
3. If the packet sent by CE1 does not carry a VLAN, the packet encapsulates the MPLS header on the original packet and then forwards it to PE2.
4.3 Packet Outbound Tunnel:
When a packet is sent out of the tunnel, regardless of whether the packet received from the peer PE carries the VLAN information of the original packet, the version of the version does not process any of the packets. The MPLS header is directly stripped and then transparently transmitted. When the local CE, that is, the PE2 receives the packets from the PE1, the VLAN value of the original packet is forwarded to CE2.
4.4 Supplementary notes:
NA
The summary of Handling of VLANs in Packets in Various Versions of L2VPN Configurations .http://forum.huawei.com/enterprise/en/forum.php?mod=viewthread&tid=453137