The protocol-vlan command associates a protocol with a VLAN.
The undo protocol-vlan command disassociates a protocol from a VLAN.
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 ] }
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.
|
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.
|
protocol-index2 |
Specifies the end protocol index. |
The value range varies according to the device type.
The value of protocol-index2 must be greater than or equal to the value of protocol-index1. |
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.