1-10The command applies to access ports only. For information about how to assign to or remove from aVLAN trunk or hybrid ports, refer to the port hybrid vlan command and the port trunk permit vlancommand. For port type configuration, refer to the port link-type command.Related commands: display vlan.Examples# Assign Ethernet1/0/2 through Ethernet1/0/4 to VLAN 2. system-viewSystem View: return to User View with Ctrl+Z.[Sysname] vlan 2[Sysname-vlan2] port Ethernet 1/0/2 to Ethernet 1/0/4port access vlanSyntaxport access vlan vlan-idundo port access vlanViewEthernet port viewParametersvlan-id: Specifies the ID of the VLAN to which you want to assign the current port, in the range of 1 to4094. The specified VLAN must already exist.By default, all access ports belong to VLAN 1. You cannot assign an access port to or remove anaccess port from VLAN 1 with the port access vlan command or its undo form. To assign an accessport that has been assigned to a VLAN other than VLAN 1, you can use the undo port access vlancommand.DescriptionUse the port access vlan command to assign the current access port to the specified VLAN.Use the undo port access vlan command to remove the access port from the specified VLAN. Afterthat, the access port joins VLAN 1 automatically.Examples# Assign Ethernet 1/0/1 to VLAN 3. system-viewSystem View: return to User View with Ctrl+Z.[Sysname] interface ethernet 1/0/1[Sysname-Ethernet1/0/1] port access vlan 3