600 Configuring VLANsinterface is automatically removed from its previous VLAN membership. Youcan configure each interface separately, or you can configure a range ofinterfaces with the same settings.Configuring a Port in Trunk ModeBeginning in Privileged EXEC mode, use the following commands toconfigure an interface as a layer 2 trunking interface, which connects twoswitches. Trunk mode ports support traffic tagged with different VLAN IDs.Untagged received traffic is switched in the native VLAN.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.Command Purposeconfigure Enter global configuration mode.