122
{
If the frame is tagged, the port gets the source MAC address of the frame.
{
If the frame is untagged, the port selects a VLAN for the frame by using the following
matching order:
−
MAC-based VLAN (fuzzy and exact MAC address match).
−
IP subnet-based VLAN.
−
Protocol-based
VLAN.
−
Port-based
VLAN.
After tagging the frame with the selected VLAN, the port gets the source MAC address of the
frame.
5.
The port uses the source address and VLAN of the frame to match the MAC-to VLAN entries.
{
If the source MAC address of the frame exactly matches the MAC address in a
MAC-to-VLAN entry, the port checks whether the VLAN ID of the frame matches the VLAN
in the entry.
−
If the two VLAN IDs match, the port joins the VLAN and forwards the frame.
−
If the two VLAN IDs do not match, the port drops the frame.
{
If the source MAC address of the frame does not exactly match any MAC addresses in
MAC-to-VLAN entries, the port checks whether the VLAN ID of the frame is its PVID.
−
If the VLAN ID of the frame is the PVID of the port, the port determines whether it allows
the PVID.
If the PVID is allowed, the port forwards the frame within the PVID. If the PVID is not
allowed, the port drops the frame.
−
If the VLAN ID of the frame is not the PVID of the port, the port determines whether the
VLAN ID is the primary VLAN ID and the port PVID is a secondary VLAN ID.
If yes, the port forwards the frame. Otherwise, the port drops the frame.
Figure 38 Flowchart for processing a frame in dynamic MAC-based VLAN assignment
No
Yes
No
Yes
No
No
Yes
Yes
No
Yes
Yes
No
Match source MAC
against the MAC in
MAC-to-VLAN entries
MAC addresses
match?
VLAN IDs
match?
Drops the frame
Joins the VLAN
Forwards the frame in
the VLAN
The port receives a
frame
Drops the frame
VLAN ID match the
port PVID?
PVID allowed?
Tagged frame ?
Selects a VLAN for the
frame
Gets the source MAC
Is the VLAN ID the primary VLAN ID and the
port PVID a secondary VLAN ID?
Содержание H3C S7500E-X
Страница 70: ...57 ...