Operation Manual – VLAN
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2
VLAN Configuration
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 in Ethernet port view. For the configuration procedure,
refer to the section "Port Basic Configuration – Operation" in
H3C S3600 Series
Ethernet Switches Operation Manual
.
2.2.2 Protocol-Based VLAN Configuration Example
I. Network 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.