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
Содержание 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...