Configuration procedure, Configuring static mac-based vlan assignment, Configuring dynamic mac-based vlan assignment – H3C Technologies H3C WX5500E Series Access Controllers User Manual

Page 134

Advertising
background image

123

The MAC-based VLAN feature is mainly configured on downlink ports of user access devices. Do

not enable this function together with link aggregation.

With MSTP enabled, if a port is blocked in the MST instance (MSTI) of the target MAC-based VLAN,
the port drops received packets instead of delivering them to the CPU. As a result, the receiving port

will not be dynamically assigned to the corresponding VLAN. Do not configure dynamic

MAC-based VLAN assignment together with MSTP, because the former is mainly configured on the

access side.

With PVST enabled, if the target MAC-based VLAN is not permitted on a port, the port is placed in

the blocked state and drops received packets instead of delivering them to the CPU. As a result, the
receiving port will not be dynamically assigned to the corresponding VLAN. Do not configure

dynamic MAC-based VLAN assignment together with PVST, because the former is mainly

configured on the access side.

Configuration procedure

This section describes the MAC-based VLAN configuration procedure.

Configuring static MAC-based VLAN assignment

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Associate a specific MAC
address with a VLAN.

mac-vlan mac-address mac-address
[ mask mac-mask ] vlan vlan-id

[ priority priority ]

N/A

3.

Enter interface view or
port group view.

Enter interface view:
interface interface-type

interface-number

Enter port group view:

port-group manual

port-group-name

Use one of the commands.

The configuration made in

Ethernet interface view applies

only to the port.

The configuration made in port

group view applies to all ports in

the port group.

4.

Configure the link type of
the ports as hybrid.

port link-type hybrid

By default, all ports are access ports.

5.

Configure the hybrid

ports to permit packets
from specific MAC-based

VLANs to pass through.

port hybrid vlan vlan-list { tagged |
untagged }

By default, a hybrid port only permits
packets from VLAN 1 to pass

through.

6.

Enable the MAC-based

VLAN feature.

mac-vlan enable

By default, MAC-based VLAN is
disabled.

7.

Configure VLAN

matching precedence.

vlan precedence { mac-vlan |
ip-subnet-vlan }

Optional.
By default, VLANs are preferably
matched based on MAC addresses.

Configuring dynamic MAC-based VLAN assignment

Step Command

Remarks

1.

Enter system view.

system-view

N/A

Advertising