1-3z The Ethernet II encapsulation format is used here. Besides the Ethernet II encapsulation format,other encapsulation formats, including 802.2 LLC, 802.2 SNAP, and 802.3 raw, are also supportedby Ethernet. The VLAN tag fields are also added to frames encapsulated in these formats for VLANidentification.z For a frame with multiple VLAN tags, the device handles it according to its outer VLAN tag, whiletransmits its inner VLAN tags as payload.Types of VLANYou can implement VLAN based on:z Portz MAC addressz Protocolz IP subnetz Policyz Other criteriaThis chapter covers port-based VLAN, MAC-based VLAN, protocol-based VLAN, and IP-based VLAN.You can configure the four types of VLANs on a port at the same time. When determining to whichVLAN a packet passing through the port should be assigned, the device looks up the VLANs in thedefault order of MAC-based VLANs, IP-based VLANs, protocol-based VLANs, and port-based VLANs.Configuring Basic VLAN SettingsFollow these steps to configure basic VLAN settings:To do… Use the command… RemarksEnter system view system-view —Create VLANs vlan { vlan-id1 [ to vlan-id2 ] |all }OptionalUsing this command can create multipleVLANs in bulk.Enter VLAN view vlan vlan-idRequiredIf the specified VLAN does not exist, thiscommand creates the VLAN first.By default, only the default VLAN (that is,VLAN 1) exists in the system.Configure a name forthe current VLAN name textOptionalBy default, the name of a VLAN is itsVLAN ID, VLAN 0001 for example.Configure thedescription of thecurrent VLANdescription textOptionalVLAN ID is used by default, for example,VLAN 0001.