6-12Protocol-Based VLAN ConfigurationIntroduction to Protocol-Based VLANProtocol-based VLANs are only applicable on hybrid ports.In this approach, inbound packets are assigned to different VLANs based on their protocol types andencapsulation formats. The protocols that can be used for VLAN assignment include IP, IPX, andAppleTalk (AT). The encapsulation formats include Ethernet II, 802.3 raw, 802.2 LLC, and 802.2 SNAP.A protocol-based VLAN is defined by a protocol template comprised of encapsulation format andprotocol type. A port can be associated with multiple protocol templates. An untagged packet reachinga port associated with protocol-based VLANs will be processed as follows.z If the packet matches a protocol template, the packet will be tagged with the VLAN tagcorresponding to the protocol template.z If the packet matches no protocol template, the packet will be tagged with the default VLAN ID ofthe port.The port processes a tagged packet as it processes tagged packets of a port-based VLAN.z If the port permits the VLAN ID of the packet to pass through, the port forwards the packet.z If the port does not permit the VLAN ID of the packet to pass through, the port drops the packet.This feature is mainly used to assign packets of the specific service type to a specific VLAN.Configuring a Protocol-Based VLANFollow these steps to configure a protocol-based VLAN:To do… Use the command… RemarksEnter system view system-view —Enter VLAN view vlan vlan-idRequiredIf the specified VLAN doesnot exist, this commandcreates the VLAN first.Create a protocol template for theVLANprotocol-vlan[ protocol-index ] { at | ipv4 |ipv6 | ipx { ethernetii | llc |raw | snap } | mode{ ethernetii etype etype-id |llc { dsap dsap-id [ ssapssap-id ] | ssap ssap-id } |snap etype etype-id } }RequiredExit VLAN view quit Required