How to configure a MAC-Based VLAN?
What is MAC-Based VLAN?
MAC-based VLAN is a feature that allows the assignment of incoming untagged packets to specific VLANs based on the source MAC address of the packet. This classification of traffic enables efficient network segmentation and management.
How does MAC-Based VLAN work?
When untagged packets reach the switch, the switch references a MAC-to-VLAN mapping table. If the source MAC address of the packet matches an entry in this table, the corresponding VLAN ID is assigned to the packet. The VLAN ID is then verified against the VLAN table. If valid, ingress processing on the packet proceeds; otherwise, the packet is dropped.
Scenario:
Consider a network setup where a smart managed switch interfaces with an unmanaged switch, which in turn connects to end devices.
Router — Smart managed switch — Unmanaged switch — End devices
The end devices require segmentation into different VLANs, but lack support for VLAN recognition. In such a scenario, deploying MAC-based VLANs proves advantageous.
Example:
In this scenario, there are two end devices PC_A and PC_B connected to the unmanaged switch, and this unmanaged switch is connect to a smart managed switch. To ensure the PC_A has a VLAN10 IP , PC_B has a VLAN 20 IP, we may configure the MAC-based VLAN to achieve this.
Below are the step-by-step instructions to configure the MAC-based VLAN:
- At the Static VLAN interface set the VLAN 10 and VLAN 20 as following:
- VLAN10:
- Fixed: Port 1 and Port 2
- Tagged: Port 1
- VLAN20:
- Fixed Port 1 and Port 2
- Tagged: Port 1
- VLAN10:
- Configure the MAC-based VLAN, please navigate to SWITCHING > VLAN > MAC Based VLAN Setup, Add an entry for your device. In this interface configure your device name, MAC address and the VLAN ID for this device.
Kay
Share your feedback through our survey, make your voice heard, and win a WiFi 7 AP!
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 144 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 237 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 246 Service & License
- 383 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight