
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.
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...