Operation Manual – VLAN
Quidway S3100 Series Ethernet Switches
Chapter 1 VLAN Configuration
Huawei Technologies Proprietary
1-3
1.2.2 Creating VLANs in Batches
Table 1-2
Create VLANs in batches
Operation
Command
Description
Enter system view
system-view
—
Create multiple
specified VLANs
vlan
{
vlan-id1 to vlan-id2 |
all
}
Optional
1.2.3 Configuring a Port-Based VLAN
I. Configuration prerequisites
Before configuring a port-based VLAN, you need to create it first.
II. Configuration procedure
Table 1-3
Configure a port-based VLAN
Operation
Command
Description
Enter system view
system-view
—
Create a VLAN
and enter VLAN
view
vlan
vlan-id
Required
The
vlan-id
argument ranges
from 1 to 4,094.
Add specified
Ethernet ports to
the VLAN
port interface-list
Required
By default, all the ports belong
to the default VLAN.
Caution:
The configuration listed in Table 1-3 is only applicable to access ports. To add trunk
ports and hybrid ports to a VLAN, you can use the
port trunk permit vlan
and
port
hybrid vlan
commands in Ethernet port view. Refer to the Port Operation section in
Quidway S3100 Series Ethernet Switch Operation Manual
for more.
1.3 Displaying a VLAN
After the above configuration, you can execute the
display
command in any view to
view the running of the VLAN configuration, and to verify the effect of the configuration.