3
Configuring the Switch
CLI – This example maps all traffic from the IP subnet of 192.168.2.0 to VLAN 2.
Console(config)#subnet-vlan subnet 192.168.1.0 255.255.255.0 vlan 2
Console(config)#
Configuring MAC-based VLANs
The MAC-based VLAN feature assigns VLAN IDs to ingress untagged frames
according to source MAC addresses.
When MAC-based VLAN classification is enabled, untagged frames received by a
port are assigned to the VLAN which is mapped to the frame's source MAC address.
When no MAC address is matched, untagged frames are assigned to the receiving
port's native VLAN ID (PVID).
Command Usage
• The MAC-to-VLAN mapping applies to all ports on the switch.
• Source MAC addresses can be mapped to only one VLAN ID.
• Configured MAC addresses cannot be broadcast or multicast addresses.
• When MAC-based, IP subnet-based, and protocol-based VLANs are supported
concurrently, priority is applied in this sequence, and then port-based VLANs last.
Command Attributes
• MAC Address – A source MAC address which is to be mapped to a specific VLAN.
The MAC address must be specified in the format xx-xx-xx-xx-xx-xx.
• VLAN ID – VLAN to which ingress traffic matching the specified source MAC
address is forwarded. (Range: 1-4094)
Web – Click VLAN, MAC-based VLAN, Configuration. Enter the MAC address, the
VLAN to which matching frames will be forwarded, and then click Apply.
3-248
Figure 3-144 MAC-based VLAN Configuration
4-331