Operation Manual -- VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 VLAN Configuration
Huawei Technologies Proprietary
2-3
2.2 Configuring a Port-Based VLAN
2.2.1 Configuring a Port-Based VLAN
I. Configuration prerequisites
Create a VLAN before configuring a port-based VLAN.
II. Configuration procedure
Table 2-4 Configure a port-based VLAN
Operation Command Description
Enter system view
system-view
—
Enter VLAN view
vlan vlan-id
—
Add Ethernet ports
to the specific
VLAN
port interface-list
Required
By default, all the ports belong
to the default VLAN
Caution:
The commands above are effective for access ports only. If you want to add trunk ports
or hybrid ports to a VLAN, you can use the port trunk permit vlan command or the
port hybrid vlan command only in Ethernet port view. For the configuration procedure,
refer to the section "Port Basic Configuration – Operation" in Quidway S3900 Series
Ethernet Switches – Operation Manual.
2.2.2 Protocol-based VLAN Configuration Example
I. Configuration requirements
z Create VLAN 2 and VLAN 3 and specify the description string of VLAN 2 as home;
z Add Ethernet1/0/1 and Ethernet1/0/2 to VLAN 2 and add Ethernet1/0/3 and
Ethernet1/0/4 to VLAN 3.