Configuring 1:1 VLAN Mapping
Context
When receiving a tagged packet, an interface maps the VLAN ID in the packet to an S-VLAN ID.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The interface view is displayed.
- Run:
port link-type { hybrid | trunk }
The port link-type is set.
- Run:
port vlan-mapping vlan vlan-id1 [ to vlan-id2 ] map-vlan vlan-id3 [ remark-8021p 8021p-value ]
Single-tagged VLAN mapping is configured on the interface.
When N:1 VLAN mapping is configured (VLAN IDs can be non-contiguous before mapping), the interface needs to be added to these VLANs in tagged mode, and the VLAN specified by map-vlan cannot be a VLAN corresponding to a VLANIF interface.
N:1 VLAN mapping takes effect only when the packets with original VLANs are sent first. In this case, if packets are sent from the S-VLAN first, the C-VLAN to be mapped cannot be determined because no ACL entry is generated. As a result, the packets are discarded.
SA boards of S series, and X series cards do not support N:1 VLAN mapping.
N:1 VLAN mapping is not supported on the Eth-Trunk interface.