protocol-vlan
Use protocol-vlan to associate a VLAN with the specified protocol template.
Use undo protocol-vlan to disassociate a VLAN from the specified protocol template.
Syntax
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 } }
undo protocol-vlan { protocol-index [ to protocol-end ] | all }
Default
A VLAN is not associated with a protocol template.
Views
VLAN view
Predefined user roles
network-admin
mdc-admin
Parameters
at: Specifies the AppleTalk-based VLAN.
ipv4: Specifies the IPv4-based VLAN.
ipv6: Specifies the IPv6-based VLAN.
ipx: Specifies the IPX-based VLAN. The keywords ethernetii, llc, raw, and snap specify IPX encapsulation formats.
mode: Configures a user-defined protocol template for the VLAN. The keywords ethernetii, llc, and snap specify the available encapsulation formats.
ethernetii etype etype-id: Matches the Ethernet II encapsulation format and the specified protocol type ID. The etype-id argument specifies the protocol type ID of inbound packets, in the range of 600 to ffff in hexadecimal notation, excluding 800, 86dd, 809b, and 8137.
llc: Matches the LLC encapsulation format.
dsap dsap-id: Specifies the destination service access point in hexadecimal notation, in the range of 0 to ff.
ssap ssap-id: Specifies the source service access point in hexadecimal notation, in the range of 0 to ff.
snap etype etype-id: Matches the SNAP encapsulation format and the specified protocol type value. The etype-id argument specifies the Ethernet type of inbound packets, in the range of 600 to ffff in hexadecimal notation, excluding 8137.
protocol-index: Specifies a protocol template index that is associated with the VLAN. The value range for this argument is 0 to 65535. The system will automatically assign an index if you do not specify this argument.
to protocol-end: Specifies an end protocol template index of a protocol template range, in the range of 0 to 65535. The value for the protocol-end argument must be greater than or equal to the value for the protocol-index argument.
all: Specifies all protocols associated with the VLAN.
Usage guidelines
CAUTION: IP uses ARP for address resolution in Ethernet. To prevent communication failures, configure the IP and ARP templates in the same VLAN and associate them with the same port. | ||
When you use the mode keyword to configure a protocol template, follow these restrictions and guidelines:
Do not set the etype-id argument in the ethernetii etype etype-id option to the following hexadecimal values:
800—Specifies the IPv4 protocol in Ethernet II encapsulation.
809b—Specifies the AppleTalk protocol in Ethernet II encapsulation.
8137—Specifies the IPX protocol in Ethernet II encapsulation.
86dd—Specifies the IPv6 protocol in Ethernet II encapsulation.
Do not set both the dsap-id and ssap-id arguments to any of the following hexadecimal values:
e0—Specifies the 802.2 LLC encapsulation format for IPX packets.
ff—Specifies the 802.3 raw encapsulation format for IPX packets.
aa—Specifies the 802.2 SNAP encapsulation format.
When either of the dsap-id and ssap-id arguments is configured, the system assigns the hexadecimal value aa to the other argument.
Do not set the etype-id argument in the snap etype etype-id option to the hexadecimal value 8137. Otherwise, the template format will be the same as that of the IPX protocol. You can set the etype-id argument to the hexadecimal value 800, 809b, or 86dd. The hexadecimal values 800, 809b, and 86dd correspond to IPv4, AppleTalk, and IPv6, respectively.
Examples
# Assign ARP packets in Ethernet II encapsulation and IPv4 packets to VLAN 3 for transmission. (The protocol type ID for ARP is 0806 in hexadecimal notation.)
<Sysname> system-view [Sysname] vlan 3 [Sysname-vlan3] protocol-vlan 1 ipv4 [Sysname-vlan3] protocol-vlan 2 mode ethernetii etype 0806
Related commands
display protocol-vlan interface
display protocol-vlan vlan
port protocol-vlan