136
•
When you use the
mode
keyword to configure a user-defined protocol template, do not set
etype-id
in
ethernetii etype
etype-id
to 0x0800, 0x8137, 0x809b, or 0x86dd. Otherwise, the encapsulation
format of the matching packets will be the same as that of the IPv4, IPX, AppleTalk, and IPv6 packets,
respectively.
•
A protocol-based VLAN processes only untagged inbound packets, whereas the voice VLAN in
automatic mode processes only tagged voice traffic. Do not configure a VLAN as both a
protocol-based VLAN and a voice VLAN. For more information, see "
Configuration procedure
To configure 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 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
} }
Not configured by default.
4.
Exit VLAN view.
quit
N/A
5.
Enter interface
view or port group
view.
•
Enter Layer 2 Ethernet interface
view:
interface
interface-type
interface-number
•
Enter Layer 2 aggregate
interface view:
interface bridge-aggregation
interface-number
•
Enter port group view:
port-group manual
port-group-name
Use any command.
•
The configuration made in Ethernet
interface view applies only to the port.
•
The configuration made in port group
view applies to all ports in the port group.
•
The configuration made in Layer 2
aggregate interface view applies to the
aggregate interface and its aggregation
member ports. If the system fails to apply
the configuration to the aggregate
interface, it stops applying the
configuration to aggregation member
ports. If the system fails to apply the
configuration to an aggregation member
port, it skips the port and moves to the
next member port.
6.
Configure the port
link type as hybrid.
port link-type
hybrid
By default, all ports are access ports.
7.
Assign the hybrid
port to the
specified
protocol-based
VLANs.
port hybrid
vlan
vlan-list
{
tagged
|
untagged
}
By default, a hybrid port is only in VLAN 1.
8.
Assign the protocol
template you have
created to the
hybrid port.
port hybrid protocol-vlan
vlan
vlan-id
{
protocol-index
[
to
protocol-end
] |
all
}
N/A