Command Reference VLAN Commands
will not be deleted. You can run the
switchport trunk allowed
command to add the port to or remove
the port from a specified VLAN.
If a switch port is a hybrid port, the port is added to all VLANs by default. Different from a trunk port, a
hybrid port can be added to a VLAN in tag or untag mode by running the
switchport hybrid allowed
command.
Configuration
Examples
The following example configures port 1 as an access port.
Ruijie(config)#int g 0/1
Ruijie(config-if-GigabitEthernet 0/1)#switchport mode access
The following example configures port 1 as a trunk port.
Ruijie(config)#int g 0/1
Ruijie(config-if-GigabitEthernet 0/1)# switchport mode trunk
The following example configures port 1 as an uplink port.
Ruijie(config)#int g 0/1
Ruijie(config-if-GigabitEthernet 0/1)# switchport mode uplink
The following example configures port 1 as a hybrid port.
Ruijie(config)#int g 0/1
Ruijie(config-if-GigabitEthernet 0/1)# switchport mode hybrid
Related
Commands
Command
Description
switchport access
Configures an interface as a statics access port
and assigns it to a VLAN.
switchport trunk
Specifies a native VLAN and the allowed-VLAN
list for the trunkport.
Platform
Description
N/A
4.8 switchport trunk allowed vlan
Use this command to add the trunk/uplink port to the VLAN or remove a trunk/uplink port from the
VLAN. Use the
no
or
default
form of the command to restore the default setting.
switchport trunk
allowed vlan
{
all
| {
add
vlan-list
|
remove
vlan-list
|
except
vlan-list
|
only
vlan-list
} }
no switchport trunk
allowed vlan
default switchport trunk
allowed vlan
Parameter
Description
Parameter
Description
all
Adds the trunk/uplink port to all VLANs.
add
Adds the trunk/uplink port to the VLAN.
Summary of Contents for RG-S29 Series
Page 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Page 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Page 93: ...Command Reference Line Commands Description...
Page 248: ...Command Reference PKG_MGMT Commands...
Page 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Page 350: ...Command Reference Voice VLAN Commands Description...
Page 430: ...Command Reference LLDP Commands Description...
Page 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Page 541: ...Command Reference IPv6 Commands Platform Description N A...
Page 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Page 1092: ...Configuration Guide SCC Commands Platforms N A...
Page 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Page 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...