147
Configuring protocol-based VLANs
Introduction
The protocol-based VLAN feature assigns inbound packets to different VLANs based on their protocol
types and encapsulation formats. 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.
This feature is available only on hybrid ports, and it processes only 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 in the same way 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 the port is not in the same VLAN as the packet, it drops the packet.
Configuring a protocol-based VLAN
Step 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 first creates the VLAN and
enters VLAN view of this VLAN.
3.
Create a protocol template
for the VLAN.
protocol-vlan
[
protocol-index
]
{
at
|
ipv4
|
ipv6
|
ipx
{
ethernetii
|
llc
|
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.
4.
Exit VLAN view.
quit
N/A