beautypg.com

Mac-based vlan configuration example, Network requirements – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 107

background image

98

To do...

Use the command...

Remarks

Disable the PVID of the port
from forwarding packets with

unknown source MAC

addresses that do not match
any MAC address-to-VLAN

entry

port pvid disable

Optional
By default, when a port receives a

packet with an unknown source MAC
address that does not match to any

MAC address-to-VLAN entry, it

forwards the packet in its PVID.

Follow these steps to configure dynamic MAC-based VLAN:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter
interface
view or port

group view

Enter Ethernet
interface view

interface interface-type
interface-number

Use either command.

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.

Enter port group
view

port-group manual
port-group-name

Configure the link type of the ports
as hybrid

port link-type hybrid

Required
By default, all ports are access
ports.

Enable the MAC-based VLAN
feature

mac-vlan enable

Required
Disabled by default.

MAC-based VLAN configuration example

Network requirements

As shown in

Figure 29

,

GigabitEthernet 1/0/1 of Device A and Device C are each connected to a meeting room. Laptop
1 and Laptop 2 are used for meeting and may be used in any of the two meeting rooms.

Laptop 1 and Laptop 2 are owned by different departments. The two departments use VLAN 100
and VLAN 200 respectively. Each laptop can access only its own department server no matter

which meeting room it is used in.

The MAC address of Laptop 1 is 000D-88F8-4E71, and that of Laptop 2 is 0014-222C-AA69.