CLI ReferenceInterface Configuration Commands
VLAN Configuration Commands
VLAN Configuration Commands
add
Use this command to add one or a group Access interface into current VLAN. Use the
no
form of the
command to remove the Access interface.
add interface
{
interface-id
|
range
interface-range
}
no 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 into the 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 into the VLAN200.
Ruijie# configure terminal
SwitchA(config)#vlan 200
SwitchA(config-vlan)#add interface range GigabitEthernet 0/1-10
Ruijie# show vlan
SwitchA#show vlan
Содержание RG-S2600G-I Series
Страница 1: ...1 CLI Reference Guide RG S2600G I Series Switches RGOS 10 4 3b16...
Страница 5: ...5...
Страница 192: ...CLI ReferenceInterface Configuration Commands Interface Configuration Commands Platform Description...
Страница 452: ...CLI Reference DHCP Configuration Commands commands clear ip dhcp server statistics Delete the DHCP server statistics...
Страница 505: ...CLI Reference TCP Configuration Commands Related commands Command Description...
Страница 513: ...CLI Reference IPv4 REF Configuration Commands Platform description N A Command history Version Description...
Страница 514: ...IP Routing Configuration Commands 1 IP Routing Configuration Commands...
Страница 527: ...Multicast Configuration Commands 1 IGMP Snooping Configuration Commands 2 MLD Snooping Configuration Commands...
Страница 642: ...CLI Reference TACACS Configuration Commands host...
Страница 652: ...CLI Reference 802 1X Configuration Commands Ruijie config if end...
Страница 744: ...CLI Reference CPU Protection Configuration Commands Caution This command is not supported on S3760 series...
Страница 773: ...CLI Reference IPSource Guard Configuration Commands Platform description This command is supported on all switches...
Страница 776: ...CLI Reference ND Snooping Configuration Commands...
Страница 901: ...CLI Reference NFPP Configuration Commands...
Страница 902: ...ACL QOS Configuration Commands 1 ACL Configuration Commands 2 QoS Configuration Commands...
Страница 999: ...CLI Reference RLDP Configuration Command Command mode Privileged EXEC mode...
Страница 1004: ...CLI Reference DLDP Configuration Commands Ruijie config if FastEthernet 0 0 clear dldp 20 1 1 1 10 1 1 1...
Страница 1005: ...CLI Reference DLDP Configuration Commands...
Страница 1146: ...CLI Reference VSU Configuration Commands Examples Ruijie vsu conver to stack Related Commands Command Description N A N A...
Страница 1191: ...CLI Reference Guide RSPAN Configuration Commands Platform Description N A...
Страница 1192: ...CLI Reference Guide...