How ports of different link types handle frames, Assigning an access port to a vlan – H3C Technologies H3C S5560 Series Switches User Manual
Page 158
124
How ports of different link types handle frames
Actions Access
Trunk
Hybrid
In the
inbound
direction for
an untagged
frame
Tags the frame with the
PVID tag.
•
If the PVID is permitted on the port, tags the frame with the PVID
tag.
•
If not, drops the frame.
In the
inbound
direction for
a tagged
frame
•
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.
•
Receives the frame if its VLAN is permitted on the port.
•
Drops the frame if its VLAN is not permitted on the port.
In the
outbound
direction
Removes the VLAN tag
and sends the frame.
•
Removes the tag and sends
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.
Sends the frame if its VLAN is
permitted on the port. The
tagging status of the frame
depends on the port hybrid vlan
command configuration.
In a VLAN-aware network, the default processing order for untagged packets is as follows, in
descending order of priority:
•
MAC-based VLANs.
•
IP subnet-based VLANs.
•
Protocol-based VLANs.
•
Port-based VLANs.
Assigning an access port to a VLAN
You can assign an access port to a VLAN in VLAN view or interface view.
Make sure the VLAN has been created.
Assigning one or multiple access ports to a VLAN in VLAN view
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VLAN view.
vlan vlan-id N/A
3.
Assign one or a group of
access ports to the VLAN.
port interface-list
By default, all ports belong to
VLAN 1.
Assigning an access port to a VLAN in interface view
Step Command
Remarks
1.
Enter system view.
system-view
N/A
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module