User's Manual

219
table:
Command Purpose
switchport dot1q-translating-tunnel mode
{flat | qinq} translate {
oldvlanid
|
oldvlanlist
}
newvlan
[
priority
]
Configures the VLAN translation mode and
translation item.
31.4.9 Setting MAC-Based VLAN
The MAC-based VLAN is a VLAN planning mode based on the source MAC address of the packet.
When a port of a device receives an untagged packet, the device will take the source MAC address
of the packet as the matchup keyword and know the home VLAN by looking for the MAC VLAN entry.
The settings of the MAC-based VLAN includes adding/deleting MAC VLAN entry and
enabling/disabling the MAC VLAN function on the port.
In global configuration mode run the following commands to add or delete the MAC VLAN entry.
Command Purpose
mac-vlan mac-address mac-addr vlan vlan-id
priority
Adds a MAC VLAN entry.
no mac-vlan mac-address mac-addr
Deletes a MAC VLAN entry.
The MAC-based VLAN function takes effect only on a port on which this function is enabled. In port
configuration mode, run the following commands respectively to enable or disable the MAC VLAN function
on a port.
Command Purpose
[no] switchport mac-vlan
To enable or disable the MAC-based
VLAN function, run the above-mentioned
commands respectively.
Note: In port access mode, an incoming packet will be dropped if its VLAN, which is obtained through the
matchup of MAC VLAN entry, is not the PVID of the port. Hence, if not necessary, do not set the port
mode, which is to enable MAC VLAN, to access.
31.4.10 Setting IP Subnet-Based VLAN
IP subnet-based VLAN is a VLAN planning mode based on the source IP address and configured subnet
mask of a packet. When a device receives an untagged packet on one of its ports, the device will locate
the VLAN of this packet according to the source IP address of the packet and the configured subnet mask.
The settings of the IP-subnet VLAN includes adding/deleting the subnet VLAN entry and
enabling/disabling the subnet VLAN function on the port.
In global configuration mode run the following commands to add or delete the subnet VLAN
entry.