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: ]

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:

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