1.4.1 Configuration Information:
On PE1:
#
Vsi test static
Pwsignal ldp
Vsi-id 1
Peer 111.111.111.111
Encapsulation ethernet
#
Interface GigabitEthernet2/0/16
Undo portswitch
L2 binding vsi test
#
The configuration on PE2 is similar and is not enumerated.
1.4.2 Packets into the Tunnel:
1. If the packet sent by CE1 carries a VLAN, as shown in Figure 1, during the processing of the incoming tunnel, the version of V1R2 is processed as follows:
When the encapsulation mode is Ethernet, when a packet enters a tunnel, the VLAN in the original packet is stripped and then forwarded into the tunnel. The packet received by PE2 is:
The V1R3 version is different from V1R2 in that it does not strip the VLANs in the original packet when it enters the tunnel.
2. If the packet sent by CE1 carries two VLANs:
When a packet enters a tunnel, the V1R2 version strips the outer VLAN. The V1R3 version does not start:
In the V1R3 version, PE1 encapsulates both VLANs in MPLS packets and forwards them to the peer PE2.
3. If the packet sent by CE1 carries no VLAN, the packet is directly encapsulated in the original packet based on the original packet and then forwarded to PE2.
1.4.3 packets out of the tunnel:
When a packet comes out of a tunnel, regardless of whether the packet received from the peer PE carries the VLAN information of the original packet, each version does not process it. The MPLS header is stripped off and then transparently transmitted. The local CE, that is, the value of the VLAN carried in the original packet received by PE1 and sent by PE2 is forwarded to CE2.
1.4.4 Supplementary explanation:
When packets enter the tunnel, pay attention to the difference between versions V1R2 and V1R3. When a tunnel is used, the V1R3 version does not modify the VLAN information of packets at the beginning.
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
This is what I want to talk about/share with you today, thank you!