protocol-vlan
Use protocol-vlan to configure a VLAN as a protocol-based VLAN and configure the protocol template for the VLAN.
Use undo protocol-vlan to remove the protocol templates configured for the VLAN.
Syntax
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 } }
undo protocol-vlan { protocol-index [ to protocol-end ] | all }
Default
A VLAN is not associated with any protocol templates.
Views
VLAN view
Predefined user roles
network-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, 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 0x0600 to 0xFFFF, excluding 0x0800, 0x809B, 0x8137, and 0x86DD.
llc: Matches the LLC encapsulation format.
dsap dsap-id: Specifies the destination service access point in the range of 0x00 to 0xFF.
ssap ssap-id: Specifies the source service access point in the range of 0x00 to 0xFF.
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 0x0600 to 0xFFFF, excluding 0x8137.
protocol-index: Specifies a protocol template index in the range of 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 of the protocol-end argument must be greater than or equal to the value of protocol-index argument.
all: Removes all the 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 configure the following values for the etype-id argument in the ethernetii etype etype-id option:
0x0800—Specifies the IPv4 protocol in Ethernet II encapsulation.
0x809B—Specifies the AppleTalk protocol in Ethernet II encapsulation.
0x8137—Specifies the IPX protocol in Ethernet II encapsulation.
0x86DD—Specifies the IPv6 protocol in Ethernet II encapsulation.
These values conflict with the ipv4, at, ipx, and ipv6 keywords of the command, respectively.
Do not configure any of the following values for both the dsap-id and ssap-id arguments when you specify the llc keyword:
0xE0—Specifies the 802.2 LLC encapsulation format for IPX packets.
0xFF—Specifies the 802.3 raw encapsulation format for IPX packets.
0xAA—Specifies the 802.2 SNAP encapsulation format.
When either of the dsap-id and ssap-id arguments is configured, the system assigns 0xAA to the other argument.
Do not set the etype-id argument in the snap etype etype-id option to 0x8137. You can set the etype-id argument to 0x0800, 0x809B, or 0x86DD, which are corresponding 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 0x0806.)
<Sysname> system-view [Sysname] vlan 3 [Sysname-vlan3] protocol-vlan 2 mode ethernetii etype 0806 [Sysname-vlan3] protocol-vlan 1 ipv4
Related commands
display protocol-vlan interface
display protocol-vlan vlan
port protocol-vlan