Command Reference VLAN Commands
4 VLAN Commands
4.1 add
Use this command to add one or a group Access interface into current VLAN. Use the
no
or
default
form of the command to remove the Access interface.
add interface
{
interface-id
|
range
interface-range
}
no add interface
{
interface-id
|
range
interface-range
}
default add interface
{
interface-id
|
range
interface-range
}
Parameter
Description
Parameter
Description
interface-id
Layer-2 Ethernet interface or layer-2 AP port.
range
interface-range
Range of the Layer-2 Ethernet interface or layer-2 AP port.
Defaults
All layer-2 Ethernet interfaces are in the VLAN1.
Command
mode
VLAN configuration mode.
Usage Guide
This command is only valid for the access port.
The configuration of this command is the same as specifying the VLAN to which interface belongs in
the interface configuration mode (that is the
switchport access vlan
vlan-id
command). For the two
commands of adding the interface to the VLAN, the command configured later will overwrite the one
configured before and take effect.
The configuration of adding the layer-2 AP into current VLAN through this command will only take
effect for the layer-2 AP port, but not for the member port of the layer-2 AP port.
Configuration
Examples
The following example adds the interface GigabitEthernet 0/10 to VLAN20.
Ruijie# configure terminal
SwitchA(config)#vlan 20
SwitchA(config-vlan)#add interface GigabitEthernet 0/10
Ruijie# show interface GigabitEthernet 0/10 switchport
Interface Switchport Mode Access Native Protected VLAN lists
---------- -------- ----- ----- ---- ---------- -------
GigabitEthernet 0/10 enabled ACCESS 20 1 Disabled ALL
The following example adds the interface range GigabitEthernet 0/1-10 to VLAN200.
Ruijie# configure terminal
SwitchA(config)#vlan 200
SwitchA(config-vlan)#add interface range GigabitEthernet 0/1-10
Ruijie# show 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...