Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure the 1:1 VLAN Mapping Function

For a port, 1:1 VLAN mapping entry is a one-to-one mapping, that is, the 1:1 VLAN mapping entry maps a private network VLAN to a public network VLAN.

After a port is configured with 1:1 VLAN mapping, if the outmost VLAN tag of a packet matches a 1:1 VLAN mapping entry, the port replaces the VLAN ID of the outmost VLAN tag with the specified VLAN ID. If the outmost VLAN tag of a packet does not match a 1:1 VLAN mapping entry, the port add a layer of VLAN tag to the packet, and the VLAN ID of the VLAN tag is the PVID of the port.

Configuration Condition

Before configuring the 1:1 VLAN mapping function, ensure that:

  • The port link type is configured to the Trunk type or the Hybrid type.
  • A PVID has been configured for the port.
  • The VLAN of the new outer VLAN tag used for replacing the existing VLAN tag has been configured for the port, and the packets for which the outer VLAN tags have been replaced can pass the VLAN.

Configure the 1:1 VLAN Mapping Function

Table 4-4 Configuring the 1:1 VLAN Mapping Function

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Enter the L2 Ethernet interface configuration mode.

interface interface-name

Either

After you enter the L2 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current port. After you enter the aggregation group configuration mode, the subsequent configuration takes effect only within the aggregation group.

Enter the aggregation group configuration mode.

link-aggregation link-aggregation-id

Configure 1:1 VLAN mapping function entries. vlan dot1q-tunnel mapping former-vlan-id mapping-vlan-id

Mandatory.

By default, 1:1 VLAN mapping entries are not configured.

note


  • On one port, the 1:1 VLAN mapping function cannot coexist with the following functions: QinQ Evc, basic QINQ, flexible QINQ, N:1 VLAN mapping.
  • If the configured 1:1 VLAN mapping entry conflicts with an existing port-based 1:1 VLAN mapping entry, the conflict will be prompted.