Assigning an access port to a vlan – H3C Technologies H3C S10500 Series Switches User Manual
Page 130

119
NOTE:
•
Do not set the voice VLAN as the PVID of a port in automatic voice VLAN assignment mode. For
information about voice VLAN, see the chapter “Voice VLAN configuration.”
•
H3C recommends that you set the same PVID ID for local and remote ports.
•
Make sure that a port is assigned to its PVID. Otherwise, when the port receives frames tagged with the
PVID or untagged frames (including protocol packets such as MSTP BPDUs), the port filters out these
frames.
The following table shows how ports of different link types handle frames:
Actions (in the inbound direction)
Port type
Untagged frame
Tagged frame
Actions (in the outbound
direction)
Access
Tags the frame with the
PVID tag.
•
Receives the frame if its
VLAN ID is the same as the
PVID.
•
Drops the frame if its VLAN
ID is different from the
PVID.
Removes the VLAN tag and
sends the frame.
Trunk
•
Removes the tag and send
the frame if the frame carries
the PVID tag and the port
belongs to the PVID.
•
Sends the frame without
removing the tag if its VLAN
is carried on the port but is
different from the PVID.
Hybrid
Checks whether the PVID
is permitted on the port:
•
If yes, tags the frame
with the PVID tag.
•
If not, drops the
frame.
•
Receives the frame if its
VLAN is carried on the
port.
•
Drops the frame if its VLAN
is not carried on the port.
Sends the frame if its VLAN is
carried on the port. The frame is
sent with the VLAN tag removed
or intact depending on your
configuration via the port hybrid
vlan command. This is true of the
PVID.
Assigning an access port to a VLAN
You can assign an access port to a VLAN in VLAN view, interface view (including Layer 2 Ethernet
interface view, and Layer 2 aggregate interface view), or port group view.
Follow these steps to assign one or multiple access ports to a VLAN in VLAN view:
To do…
Use the command… Remarks
Enter system view
system-view
—
Enter VLAN view
vlan vlan-id
Required
If the specified VLAN does not exist, this
command creates the VLAN first.
Assign one or a group of access
ports to the VLAN
port interface-list
Required
By default, all ports belong to VLAN 1.