149Switch(Config-ethernet1/8)#switchport mode accessSwitch(Config-ethernet1/8)#switchport access vlan 100Switch(Config-ethernet1/8)#exit5.2.2.3 switchport interfaceCommand: switchport interface <interface-list>no switchport interface <interface-list>Function: Specify Ethernet port to VLAN; the “no switchport interface <interface-list>”command deletes one or one set of ports from the specified VLAN.Parameter: <interface-list> is the port list to be added or deleted, “;” and “-“ aresupported, for example: ethernet 1/1;2;5 or ethernet 1/1-6;8.Command mode: VLAN ModeDefault: A newly created VLAN contains no port by default.Usage Guide: Access ports are normal ports and can join a VLAN, but a port can only joinone VLAN for a time.Example: Assign Ethernet port 1, 3, 4-7, 8 of slot 1 to VLAN100.Switch(Config-Vlan100)#switchport interface ethernet 1/1;3;4-7;85.2.2.4 switchport modeCommand: switchport mode {trunk|access}Function: Set the port in access mode or trunk mode.Parameter: trunk means the port allows traffic of multiple VLAN; access indicates theport belongs to one VLAN only.Command mode: Interface ModeDefault: The port is in Access mode by default.Usage Guide: Ports in trunk mode is called Trunk ports. Trunk ports can allow traffic ofmultiple VLANs to pass through, VLAN in different switches can be interconnected withthe Trunk ports interconnections. Ports under access mode is called Access ports. Anaccess port can be assigned to one and only one VLAN at a time.Example: Set port 1/5 to trunk mode and port 1/8 to access mode.Switch(Config)#interface ethernet 1/5Switch(Config-ethernet1/5)#switchport mode trunkSwitch(Config-ethernet1/5)#exitSwitch(Config)#interface ethernet 1/8