R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
103
• MAC-based VLAN is usually configured on downlink ports of access layer devices, and cannot be
configured together with the link aggregation function.
Configuring protocol-based VLANs
Introduction to protocol-based VLAN
The protocol-based VLAN feature assigns inbound packets to different VLANs based on their protocol
type and encapsulation format. The protocols available for VLAN assignment include IP, IPX, and AT. The
encapsulation formats include Ethernet II, 802.3 raw, 802.2 LLC, and 802.2 SNAP.
A protocol template defines a protocol type and an encapsulation format. A protocol-based VLAN ID
and a protocol index combined uniquely identify a protocol template. You can assign multiple protocol
templates to a protocol-based VLAN.
Protocol-based VLAN assignment is available only on hybrid ports, and a protocol template applies only
to untagged packets.
When an untagged packet arrives, a protocol-based VLAN assignment enabled hybrid port processes
the packet by using the following workflow:
• If the protocol type and encapsulation format in the packet matches a protocol template, the packet
is tagged with the VLAN tag specific to the protocol template.
• If no protocol template is matched, the packet is tagged with the PVID of the port.
The port processes a tagged packet as it processes tagged packets of a port-based VLAN.
• If the port is in the same VLAN as the packet, it forwards the packet.
• If not, the port drops the packet.
Configuration procedure
Do not configure a VLAN as both a protocol-based VLAN and a voice VLAN. To configure a
protocol-based VLAN on a port, make sure the port is a hybrid port and the port has been assigned to
the protocol-based VLAN. When automatic voice VLAN assignment mode is configured on a port, the
received voice traffic triggers assigning the port to the voice VLAN. For more information, see
"Configuring a voice VLAN."
To configure a protocol-based VLAN:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter VLAN view.
vlan vlan-id
If the specified VLAN does not exist, this
command creates the VLAN first.
3. Create a protocol template
for the VLAN.
protocol-vlan [ protocol-index ]
{ at | ipv4 | ipv6 | ipx
{ ethernetii | llc | raw | snap }
| mode { ethernetii etype
etype-id | llc { dsap dsap-id
[ ssap ssap-id ] | ssap ssap-id }
| snap etype etype-id } }
By default, no protocol template is
configured for a VLAN.