3com 4210 PWR 9-Port 3CR17341-91-ME User Manual

Product codes
3CR17341-91-ME
Page of 567
Configuring a Port-Based VLAN
79
Configuring a 
Port-Based VLAN
Configuring a 
Port-Based VLAN
Configuration prerequisites
Create a VLAN before configuring a port-based VLAN.
Configuration procedure
CAUTION: 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 “Ethernet Port Configuration” on page  96
.
Port-Based VLAN 
Configuration Example
Network requirements
As shown in Figure 32, Switch A and Switch B each connect to a server and a 
workstation (PC).
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.
The devices within each VLAN can communicate with each other but that in 
different VLANs cannot communicate with each other directly.
Network diagram
Figure 32   Network diagram for VLAN configuration
Table 45   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 (VLAN 1).
Switch A
VLAN 101
VLAN 201
Switch B
Server
Server
PC
PC
Eth1/0/1
Eth1/0/2
Eth1/0/10
Eth1/0/3
Eth1/0/12
Eth1/0/11