144
CAUTION:
•
Do not configure both the
dsap-id and ssap-id arguments in the
protocol-vlan
command as 0xe0 or
0xff when configuring the user-defined template for
llc
encapsulation. Otherwise, the encapsulation
format of the matching packets will be the same as that of the
ipx llc
or
ipx raw
packets, respectively.
When either of the
dsap-id and ssap-id arguments is configured, the system assigns
aa
to the other
argument.
•
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.
Description
Use the
protocol-vlan
command to configure the VLAN as a protocol based VLAN and configure the
protocol template for the VLAN.
Use the
undo protocol-vlan
command to remove the configured protocol template.
By default, no VLAN is bound to any protocol template.
Related commands:
display protocol-vlan vlan
.
NOTE:
Do not configure a VLAN as both a protocol-based VLAN and a voice VLAN.
Examples
# Configure VLAN 3 as an IPv4 based VLAN.
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] protocol-vlan ipv4
CAUTION:
IP uses ARP for address resolution in Ethernet. To prevent communication failure, configure the IP and ARP
templates in the same VLAN and associate them with the same port.
# Create an ARP protocol template for VLAN 3 (ARP code is 0x0806) to make VLAN 3 transmit ARP
packets.
•
To use Ethernet encapsulation, use the command:
[Sysname-vlan3] protocol-vlan mode ethernetii etype 0806
•
To use 802.3 encapsulation, use the command:
[Sysname-vlan3] protocol-vlan mode snap etype 0806