125
Step Command
Remarks
5.
Enable the MAC-based
VLAN feature.
mac-vlan enable
By default, MAC-based VLAN is
disabled.
6.
Enable dynamic
MAC-based VLAN
assignment.
mac-vlan trigger enable
By default, dynamic MAC-based
VLAN assignment is disabled.
The VLAN assignment for a port is
triggered only when the source MAC
address of its receiving packet
exactly matches the MAC address in
a MAC-to-VLAN entry.
7.
(Optional.) Configure the
system to assign VLANs
based on the MAC address
preferentially.
vlan precedence mac-vlan
By default, the system assigns
VLANs based on the MAC address
preferentially when both the
MAC-based VLAN and IP
subnet-based VLAN are configured
on a port.
8.
(Optional.) Disable the port
from forwarding packets
that fail the exact MAC
address match in its PVID.
port pvid forbidden
By default, when a port receives
packets whose source MAC
addresses fail the exact match, the
port forwards them in its PVID.
Configuring server-assigned MAC-based VLAN
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view.
interface
interface-type
interface-number
N/A
3.
Configure the link type of the
ports as hybrid.
port link-type
hybrid
By default, all ports are access
ports.
4.
Assign the hybrid port to the
MAC-based VLANs.
port hybrid
vlan
vlan-id-list
{
tagged
|
untagged
}
By default, a hybrid port is an
untagged member of the VLAN
to which the port belongs when
its link type is
access
.
5.
Enable the MAC-based
VLAN feature.
mac-vlan enable
By default, MAC-based VLAN is
disabled.
6.
Configure 802.1X or MAC
authentication.
For more information, see
Security
Command Reference
.
N/A
Configuring IP subnet-based VLANs
In this method, untagged packets are assigned to VLANs based on their source IP addresses and
subnet masks. A port configured with IP subnet-based VLANs assigns a received untagged packet
to a VLAN based on the source address of the packet.
Summary of Contents for H3C S7500E-X
Page 70: ...57 ...