Netgear M5300-28G-POE+ (GSM7228PSv1h2) - 12-Port Managed Gigabit Switch Ratgeber Für Administratoren

Seite von 542
  Chapter 2.  VLANs
 
   
|
     
25
ProSafe Managed Switch 
Create a MAC-Based VLAN
The MAC-based VLAN feature allows incoming untagged packets to be assigned to a VLAN 
and thus classify traffic based on the source MAC address of the packet.
You define a MAC to VLAN mapping by configuring an entry in the MAC to VLAN table. An 
entry is specified using a source MAC address and the appropriate VLAN ID. The MAC to 
VLAN configurations are shared across all ports of the device (i.e., there is a system-wide 
table that has MAC address to VLAN ID mappings).
When untagged or priority tagged packets arrive at the switch and entries exist in the MAC to 
VLAN table, the source MAC address of the packet is looked up. If an entry is found, the 
corresponding VLAN ID is assigned to the packet. If the packet is already priority tagged it 
will maintain this value; otherwise, the priority will be set to 0 (zero). The assigned VLAN ID is 
verified against the VLAN table. If the VLAN is valid, ingress processing on the packet 
continues; otherwise, the packet is dropped. This implies that you can configure a MAC 
address mapping to a VLAN that has not been created on the system.
CLI: Create a MAC-Based VLAN
1. 
Create VLAN3.
2. 
Add port 1/0/23 to VLAN3.
(Netgear Switch)#vlan database
(Netgear Switch)(Vlan)#vlan 3
(Netgear Switch)(Vlan)#exit
(Netgear Switch)#config
(Netgear Switch)(Config)#interface 1/0/23
(Netgear Switch)(Interface 1/0/23)#vlan participation include 3
(Netgear Switch)(Interface 1/0/23)#vlan pvid 3
(Netgear Switch)(Interface 1/0/23)#exit