Operation Manual – VLAN
H3C S3100 Series Ethernet Switches
Chapter 2 VLAN Configuration
2-9
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter VLAN view
vlan
vlan-id
—
Configure the protocol
template for the VLAN
protocol-vlan
[
protocol-index
] {
at
|
ip
|
ipx
{
ethernetii
|
llc
|
raw
|
snap
} |
mode
{
ethernetii
etype
etype-id
|
llc dsap
dsap-id
ssap
ssap-id
|
snap
etype
etype-id
} }
Required
By default, no
protocol template
is configured for
the VLAN.
When configuring a protocol template for a protocol-based VLAN, use the
at
,
ip
or
ipx
keyword to configure a standard template to match AppleTalk, IP, and IPX packets
respectively, and use the
mode
keyword to configure a user-defined template.
Caution:
z
At present, the S3100 series support only the standard templates of AppleTalk and
IP, the standard template of IPX encapsulated in Ethernet II format, and the
user-defined templates matching the Ethernet II encapsulation format. Protocol
templates matching 802.2/802.3 encapsulation formats and their extended
encapsulation formats are not supported on the S3100 series currently.
z
Because the IP protocol is closely associated with the ARP protocol, you are
recommended to configure the ARP protocol type when configuring the IP protocol
type and associate the two protocol types with the same port to avoid that ARP
packets and IP packets are not assigned to the same VLAN, which will cause IP
address resolution failure.
z
When you use the
mode
keyword to configure a user-defined protocol template, if
you set the
etype-id
argument for
ethernetii
packets to 0x0800, 0x8137, or 0x809B,
the matching packets will take the same format as that of the IP, IPX, and AppleTalk
packets respectively. To prevent two commands from processing packets of the
same protocol type in different ways, the switch will prompt that you cannot set the
etype-id
argument for
Ethernet II
packets to 0x0800, 0x8137, or 0x809B.
2.3.3 Associating a Port with a Protocol-Based VLAN
I. Configuration prerequisites
z
The protocol template for the protocol-based VLAN is configured.
z
The port is configured as a hybrid port, and the port is configured to remove VLAN
tags when it forwards the packets of the protocol-based VLANs.