< Home

protocol-vlan

Function

The protocol-vlan command associates a protocol with a VLAN.

The undo protocol-vlan command disassociates a protocol from a VLAN.

Format

protocol-vlan [ protocol-index ] { at | ipv4 | ipv6 | ipx { ethernetii | llc | raw | snap } | mode { ethernetii-etype etype-id1 | llc dsap dsap-id ssap ssap-id | snap-etype etype-id2 } }

undo protocol-vlan { all | protocol-index1 [ to protocol-index2 ] }

Parameters

Parameter

Description

Value

protocol-index

Specifies the index of a protocol. If no protocol index is set, the switch generates an index based on the order in which protocols were associated with a VLAN.

The value range varies according to the device type.
  • S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI: 0 to 11
  • S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: 0 to 7
  • other models: 0 to 15

at

Associates the AppleTalk protocol with a VLAN.

-

ipv4

Associates the IPv4 protocol with a VLAN.

-

ipv6

Associates the IPv6 protocol with a VLAN.

-

ipx

Associates the Internetwork Packet Exchange (IPX) protocol with a VLAN. The encapsulation type of IPX packets can be Ethernet II, Logical Link Control (LLC), raw, or Subnetwork Access Protocol (SNAP).

-

ethernetii

Indicates that the encapsulation format of Ethernet frames is Ethernet II.

-

llc

Indicates that the encapsulation format of Ethernet frames is LLC.

-

raw

Indicates that the encapsulation format of Ethernet packets is raw.

-

snap

Indicates that the encapsulation format of Ethernet packets is SNAP.

-

mode

Indicates a user-defined protocol.

-

ethernetii-etype etype-id1

Specifies the protocol type ID that matches the Ethernet II encapsulation format.

The value ranges from 0x600 to ffff, excluding 800, 809b, 8137, and 86dd.

dsap dsap-id

Specifies the destination service access point.

The value ranges from 0x0 to ff.

ssap ssap-id

Specifies the source service access point.

The value ranges from 0x0 to ff.

snap-etype etype-id2

Specifies the protocol type ID that matches the SNAP encapsulation format.

The value ranges from 0x600 to ffff, excluding 800, 809b, 8137, and 86dd.

all

Disassociates all protocols from a VLAN.

-

protocol-index1

Specifies the start protocol index.

The value range varies according to the device type.
  • S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI: 0 to 11
  • S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: 0 to 7
  • other models: 0 to 15

protocol-index2

Specifies the end protocol index.

The value range varies according to the device type.
  • S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI: 0 to 11
  • S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: 0 to 7
  • other models: 0 to 15

The value of protocol-index2 must be greater than or equal to the value of protocol-index1.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Protocol-based VLAN assignment is a method to associate protocols with VLANs. After a protocol is associated with a VLAN, packets of this protocol are transmitted in the associated VLAN. This function allows different protocol packets to be transmitted on different paths.

Follow-up Procedure

Add interfaces to the VLAN associated with protocols, and then associate the interfaces with the VLAN.

Precautions

The control VLAN of an RRPPor ERPS ring cannot be associated with protocols.

The AppleTalk, IPv4, and IPv6 protocols can be associated with VLANs directly. When associating other protocols with a VLAN, set the encapsulation format.

When specifying the source and destination service access points, pay attention to the following points:

  • The dsap-id and ssap-id parameters cannot be set to 0xaa (indicating the SNAP encapsulation format) simultaneously.

  • The dsap-id and ssap-id parameters cannot be set to 0xe0 (indicating the LLC encapsulation format) simultaneously.

  • The dsap-id and ssap-id parameters cannot be set to 0xff (indicating the raw encapsulation format) simultaneously.

If you run the protocol-vlan command multiple times in the same VLAN view, all the specified protocols are associated with the VLAN.

Example

# Associate IPv4 with VLAN 3.

<HUAWEI> system-view
[HUAWEI] vlan 3
[HUAWEI-vlan3] protocol-vlan ipv4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >