
Operation Manual – VLAN
H3C S5500-EI Series Ethernet Switches
Chapter 1 VLAN Configuration
1-13
To do...
Use the command...
Remarks
Configure VLAN
matching precedence
vlan precedence
{
mac-vlan
|
ip-subnet-vlan
}
Optional
By default, VLANs are
preferentially matched
based on MAC
addresses.
1.6 Protocol-Based VLAN Configuration
1.6.1 Introduction to Protocol-Based VLAN
Note:
Protocol-based VLANs are only applicable to Hybrid ports.
In this approach, inbound packets are assigned with different VLAN IDs based on their
protocol type and encapsulation format. The protocols that can be used to categorize
VLANs include: IP, IPX, and AppleTalk (AT). The encapsulation formats include:
Ethernet II, 802.3 raw, 802.2 LLC, and 802.2 SNAP.
A protocol-based VLAN can be defined by a protocol template, which is determined by
encapsulation format and protocol type. A port can be associated to multiple protocol
templates. An untagged packet (that is, packet carrying no VLAN tag) reaching a port
associated with a protocol-based VLAN will be processed as follows.
z
If the packet matches a protocol template, the packet will be tagged with the VLAN
ID of the protocol-based VLAN defined by the protocol template.
z
If the packet matches no protocol template, the packet will be tagged with the
default VLAN ID of the port.
The port processes a tagged packet (that is, a packet carrying a VLAN tag) in the same
way as it processes packets of a port-based VLAN.
z
If the port is configured to permit the VLAN identified by this VLAN tag, the port
forwards the packet.
z
If the port is configured to deny the VLAN identified by this VLAN tag, the port
discards the packet.
This feature is mainly used to bind the service type with VLAN for ease of management
and maintenance.
1.6.2 Configuring a Protocol-Based VLAN
Follow these steps to configure a protocol-based VLAN: