![background image](http://html.mh-extra.com/html/huawei/quidway-s2000-series/quidway-s2000-series_command-manual_169808080.webp)
Command Manual - VLAN
Quidway S2000 Series Ethernet Switches
Chapter 1 VLAN Configuration Commands
1-3
name. For their meanings and value range, read Parameter of “Port” in this document.
The interface number after keyword
to
must be larger than or equal to the port number
before
to
. &<1-10>: Representing the repeatable times of parameters, 1 is the minimal
and 10 is the maximal.
Description
Using
port
command, you can add one port or one group of ports to VLAN. Using
undo port
command, you can cancel one port or one group of ports from VLAN.
Note that you can add/delete trunk port and hybrid port to/from VLAN by
port
and
undo port
commands in Ethernet port view, but not in VLAN view.
For the related command, see
display vlan
.
Example
# Add Ethernet0/4 through Ethernet0/7, Ethernet0/9 and Ethernet0/11 through
Ethernet0/15 to VLAN 2. The repeated time of command parameter is 3 times.
[Quidway-vlan2] port ethernet0/4 to ethernet0/7 ethernet0/9 ethernet0/11 to
ethernet0/15
1.1.4 vlan
Syntax
vlan
vlan
_
id
undo vlan
{
vlan
_
id
[
to vlan
_
id
]
| all
}
View
System view
Parameter
vlan
_
id
: Specifies the ID of a VLAN to be created and/or entered, ranging from 1 to
4094.
all
: Delete all VLANs.
Description
Using
vlan
command, you can enter VLAN view. If the specified VLAN is not created,
create it first. Using
undo vlan
command, you can cancel the specified VLAN.
VLAN 1 is default VLAN and cannot be deleted.
For the related commands, see
display vlan
.
Example
# Enter the view of VLAN 1.
Summary of Contents for Quidway S2000 Series
Page 8: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 1 Getting Started ...
Page 48: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 2 Port ...
Page 76: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 3 VLAN ...
Page 92: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 4 Multicast ...
Page 107: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 5 QoS ACL ...
Page 124: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 6 Integrated Management ...
Page 160: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 7 STP ...
Page 178: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 8 Security ...
Page 234: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 9 Network Protocol ...
Page 251: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 10 System Management ...
Page 400: ...HUAWEI Quidway S2000 Series Ethernet Switches Command Manual 11 Appendix ...