User's Manual

220
Command Purpose
[no] subnet { any | ip-addr mask }
Adds or deletes a subnet VLAN entry.
The IP-subnet 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 vlan-subnet enable
To enable or disable the IP-subnet VLAN
function on the ports, 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 subnet VLAN, to access.
31.4.11 Setting Protocol-Based VLAN
The protocol-based VLAN is a VLAN planning mode which is based on the protocol to which the received
packet belongs. When a switch receives an untagged packet on one of its ports, the switch will determine
the VLAN of the packet according to the protocol of this packet.
The way the switch determines the type of the protocol that the packet belongs to is based on the
encapsulation type and the value of the special field.
Adding/deleting a protocol template globally and adding/deleting the association of a protocol
template on a port
Adding/deleting a protocol template globally and adding/deleting the association of a protocol
template on a port
In global configuration mode, run the following commands to add or delete a protocol template.
Command Purpose
protocol-vlan protocol_index frame-type
{ ETHERII | SNAP | LLC } ether-type etype-id
Adds a protocol template.
no protocol-vlan protocol_index
Deletes a protocol template.
Note: When the frame-type parameter is LLC, the high and low bytes in the Ether-Type field correspond
to DSAP and SSAP in a packet respectively.
A protocol template only takes effect on a port where the protocol template is applied. The same
protocol template can correspond to different VLANs on different ports.
In port configuration mode,
run the following commands to add or delete the association of a protocol template.
Command Purpose
switchport protocol-vlan
protocol_index
vlan
vlan-id
Adds the association of a protocol
template.