Command Reference Interface Commands
The ports that are set as the protected ports cannot switch on L2, but can route on L3. A protected
port can communicate with an unprotected port. Use the show interfaces command to display
configuration.
The following example configures interface gigabitethernet 1/1 as a protected port.
Ruijie(config)#interface gigabitethernet 1/1
Ruijie(config-if)# switchport protected
Displays the interface information.
Use this command to specify a native VLAN and the allowed-VLAN list for the trunk port. Use the no
form of this command to restore the default setting.
switchport trunk { allowed vlan { all | [ add | remove | except ] vlan-list } | native vlan vlan-id }
no switchport trunk { allowed vlan | native vlan }
Configures the list of VLANs allowed on the trunk port. vlan-list can
be a VLAN or a range of VLANs starting with the smaller VLAN ID
and ending with the larger VLAN ID and being separated by hyphen,
for example, 10 to 20. The segments can be separated with a comma
(,), for example, 1 to 10, 20 to 25, 30, 33.
all means that the allowed VLAN list contains all the supported
VLANs;
add means to add the specified VLAN list to the allowed VLAN list;
remove means to remove the specified VLAN list from the allowed
VLAN list;
except means to add all the VLANs other than those in the specified
VLAN list to the allowed VLAN list;
Configures the native VLAN.
The allowed VLAN list is all, the Native VLAN is VLAN1.
Interface configuration mode.