Configuring a port-based vlan, Configuration prerequisites, Configuration procedure – H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 84: Protocol-based vlan configuration example, Network requirements, 3 protocol-based vlan configuration example -3
11-3
Configuring a Port-Based VLAN
Configuring a Port-Based VLAN
Configuration prerequisites
Create a VLAN before configuring a port-based VLAN.
Configuration procedure
Follow these steps to configure a port-based VLAN:
To do…
Use the command…
Remarks
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 (VLAN 1).
The commands above are effective for access ports only. If you want to add trunk ports or hybrid ports
to a VLAN, you need to 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 of configuring Ethernet ports in
Port Basic Configuration
in H3C WX3000 Series Unified Switches Switching Engine Configuration
Guide
.
Protocol-Based VLAN Configuration Example
Network requirements
z
As shown in
, Switch A and Switch B each connect to a server and a workstation (PC).
z
For data security concerns, the two servers are assigned to VLAN 101 with the descriptive string
being “DMZ”, and the PCs are assigned to VLAN 201.
z
The devices within each VLAN can communicate with each other but that in different VLANs
cannot communicate with each other directly.