beautypg.com

Mac-based vlan configuration, Introduction to mac-based vlan – H3C Technologies H3C S7500E Series Switches User Manual

Page 221

background image

15-13

VLAN ID: 100

VLAN Type: static

Route Interface: not configured

Description: VLAN 0100

Name: VLAN 0100

Tagged Ports:

GigabitEthernet2/0/3

Untagged Ports:

GigabitEthernet2/0/1

[DeviceA] display vlan 200

VLAN ID: 200

VLAN Type: static

Route Interface: not configured

Description: VLAN 0200

Name: VLAN 0200

Tagged Ports:

GigabitEthernet2/0/3

Untagged Ports:

GigabitEthernet2/0/2

MAC-Based VLAN Configuration

Introduction to MAC-Based VLAN

The MAC-based VLAN feature assigns hosts to a VLAN based on their MAC addresses. The following
approaches are available for configuring MAC-based VLANs:

Approach 1: Manually configuring static MAC-based VLANs

This approach is suitable when VLANs in the network contain few members. In this approach, you
must manually create MAC-to-VLAN mappings, enable the MAC-based VLAN feature, and assign
ports to MAC-based VLANs. After static MAC-based VLANs are configured, the device handles
received packets as follows:

When EB, SC, SD or SRP2XBSLAVE, SRP12GBSLAVE cards receiving an untagged frame, the
device looks up the list of MAC-to-VLAN mappings based on the source MAC address of the
frame for a match. Two matching modes are available: fuzzy matching and exact matching. Fuzzy
matching is performed first. In fuzzy matching mode, the device searches the MAC-to-VLAN
mappings whose masks are not all-Fs and performs a logical AND operation on the search
keyword and each mask. If the result of an AND operation matches the corresponding MAC
address exactly, the device ends the search and adds a VLAN tag containing the corresponding
VLAN ID to the packet. If not, the device continues to perform exact matching, searching the
MAC-to-VLAN mappings whose masks are all-Fs. If the MAC address in a MAC-to-VLAN
mapping matches the source MAC address of the untagged frame exactly, the device ends the
search and adds a VLAN tag containing the corresponding VLAN ID to the packet. If no match is
found, the system looks up other types of VLANs to make the forwarding decision.

When EA or SA cards receiving an untagged frame, the device looks up the list of MAC-to-VLAN
mappings based on the source MAC address of the frame for a match. Two matching modes are
available: fuzzy matching and exact matching. Exact matching is performed first. In exact
matching mode, the device searching the MAC-to-VLAN mappings whose masks are all-Fs. If the