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