Command Reference Interface Commands
Configures the switch port as a trunk port.
Interface configuration mode.
If a switch port mode is access port, it can be the member port of only one VLAN. Use switchport
access vlan to specify the member of the VLAN.
A trunk port can be the member port of various VLANs defined by the allowed-VLAN list. The
allowed VLAN list of the interface determines the VLANs to which the interface may belong. The
trunk port is the member of all the VLANs in the allowed VLAN list. Use switchport trunk to define
the allowed-VLANs list.
The following example specifies a L2 interface (switch port) mode.
Ruijie(config-if)# switchport mode trunk
Configures an interface as a statics access
port and assigns it to a VLAN.
Configures a native VLAN and the
allowed-VLAN list for the trunk port.
1.36 switchport protected
Use this command to configure the interface as the protected port. Use the no form of this command
to restore the default setting.
This function is disabled by default.
Interface configuration mode.