【Usage】
The precondition to use this command is the current port cannot be trunk port and
the specified vlan must exist.
【Example】
!Add Ethernet 0/0/1 to VLAN 2. VLAN 2 exists, and Ethernet 0/0/1 is not trunk
port.
QTECH(config-if-ethernet-0/0/1)#switchport access vlan 2
2.1.16 switchport mode
Use switchport mode command to configure port type. Use no switchport mode
command to restore default port type, that is, access port.
switchport mode { access | trunk }
no switchport mode
【Parameter】
access:Configure port to be non-trunk port.
trunk:Configure port to be trunk port.
2-20