Configuring VLANs 607Configuring a Port in Access ModeBeginning in Privileged EXEC mode, use the following commands toconfigure an untagged layer 2 VLAN interface and assign the interface to aVLAN. When a port is in access mode, it can only be a member of oneuntagged VLAN. When you configure the interface as a VLAN member, theinterface is automatically removed from its previous VLAN membership. Youcan configure each interface separately, or you can configure a range ofinterfaces with the same settings.Command Purposeconfigure Enter global configuration mode.interfaceinterface Enter interface configuration mode for the specifiedinterface. Theinterface variable includes the interface typeand number, for example gigabitethernet 1/0/3.You can also specify a range of interfaces with the interfacerange command, for example, interface rangegigabitethernet 1/0/8-12 configures interfaces 8, 9, 10, 11,and 12.switchport mode access Configure the interface as an untagged layer 2 VLANinterface.switchport access vlanvlan-idConfigure the interface as a member of the specifiedVLAN.vlan-id — A valid VLAN ID of the VLAN to which the portis configured. (Range: 1–4093)CTRL + Z Exit to Privileged EXEC mode.show interfacesswitchportinterfaceDisplay information about the VLAN settings configuredfor the specified interface.