Port-based vlan configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual
Page 24

11
Step Command
Remarks
5.
Configure the PVID of the
hybrid port.
port hybrid pvid vlan vlan-id
Optional.
By default, the PVID of a hybrid
port is the ID of the VLAN to which
the port belongs when its link type
is access.
After configuring the PVID for a
hybrid port, you must use the port
hybrid vlan command to configure
the hybrid port to allow packets
from the PVID to pass through, so
that the egress port can forward
packets from the PVID.
Port-based VLAN configuration example
Network requirements
As shown in
, Host A and Host C belong to Department A, and access the enterprise network
through different switches. Host B and Host D belong to Department B. They also access the enterprise
network through different switches.
To ensure communication security and prevent broadcast storms, VLANs are configured in the enterprise
network to isolate Layer 2 traffic of different departments. VLAN 100 is assigned to Department A, and
VLAN 200 is assigned to Department B.
Make sure hosts within the same VLAN can communicate with each other, in other words, Host A can
communicate with Host C, and Host B can communicate with Host D.
Figure 6 Network diagram
Configuration procedure
1.
Configure Device A:
# Create VLAN 100, and assign port GigabitEthernet 3/0/1 to VLAN 100.
[DeviceA] vlan 100
[DeviceA-vlan100] port GigabitEthernet 3/0/1
[DeviceA-vlan100] quit
# Create VLAN 200, and assign port GigabitEthernet 3/0/2 to VLAN 200.
[DeviceA] vlan 200
[DeviceA-vlan200] port GigabitEthernet 3/0/2
[DeviceA-vlan200] quit