Command Reference VLAN Commands
remove
Removes the trunk/uplink port from the VLAN port.
except
Removes the trunk/uplink port from the VLAN and adds the port to all
the other VLANs.
only
Adds the trunk/uplink port to the specified VLAN and removes the
port from the VLANs not on the VLAN list.
vlan-list
Specifies the VLAN.
Defaults
The trunk/unlink port is in all VLANs by default.
Command
mode
Interface configuration mode.
Usage Guide
A trunk/uplink port transmits all VLAN (1-4094) data by default. You can block some VLAN data by
configuring
this command. Use the
show interfaces
command to display configuration.
Configuration
Examples
The following example removes trunk port GigabitEthernet 0/10 from VLAN 2.
Ruijie(config)# interface gigabitEthernet 0/10
Ruijie(config-if-GigabitEthernet 0/10)# switchport mode trunk
Ruijie(config-if-GigabitEthernet 0/10)# switchport trunk allowed vlan remove
2
The following example removes trunk port GigabitEthernet 0/10 from VLAN 2.
Ruijie(config)# interface gigabitEthernet 0/10
Ruijie(config-if-GigabitEthernet 0/10)# switchport trunk allowed vlan except
10
The following example removes uplink port GigabitEthernet 0/10 from VLAN 10.
Ruijie(config)# interface gigabitEthernet 0/10
Ruijie(config-if-GigabitEthernet 0/10)# switchport mode uplink
Ruijie(config-if-GigabitEthernet 0/10)# switchport trunk allowed vlan remove
10
The following example adds uplink port GigabitEthernet 0/10 to all VLANs except VLAN10.
Ruijie(config)# interface gigabitEthernet 0/10
Ruijie(config-if-GigabitEthernet 0/10)# switchport trunk allowed
vlan except 10
Related
Commands
Command
Description
N/A
N/A
Platform
Description
N/A
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...