Configuring 2:2 VLAN Mapping
Context
QinQ is used to send double-tagged packets, which prevents the conflict between C-VLAN IDs and S-VLAN IDs and differentiates services and users. However, the interface will discard the packets because C-VLAN IDs are different from S-VLAN IDs. To ensure communication continuity, configure 2:2 VLAN mapping on the PE and replace double C-VLAN tags with double S-VLAN tags.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The Ethernet interface view is displayed.
- Run:
port link-type { hybrid | trunk }
The port link-type is set.
- Run:
port vlan-mapping vlan vlan-id1 inner-vlan vlan-id2 map-vlan vlan-id3 map-inner-vlan vlan-id4 [ remark-8021p 8021p-value ]
The outer and inner VLAN tags are replaced.