Configuring MAC VLAN
Switch_3(config-if)#switchport general allowed vlan 10 untagged
Switch_3(config-if)#exit
Switch_3(config)#interface gigabitEthernet 1/0/5
Switch_3(config-if)#switchport general allowed vlan 20 untagged
Switch_3(config-if)#end
Switch_3#copy running-config startup-config
Verify the Configurations
Switch 1
Switch_1#show mac-vlan all
MAC Address
----------------------
00:19:56:8A:4C:71
00:19:56:82:3B:70
---------------------------------------------------------------------
Switch 2
Switch_2#show mac-vlan all
MAC Address
----------------------
00:19:56:8A:4C:71
00:19:56:82:3B:70
-------------------------------------------------------------------------
Switch 3
Switch_3#show vlan
VLAN
--------
1
10
20
Description
-----------------
PCA
PCB
Description
---------------------
PCA
PCB
Name
Status
---------------
-------------
Default VLAN
active
DeptA
active
DeptB
active
VLAN
----------
10
20
VLAN
-----------
10
20
Ports
-------------------------------------
Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4,
Gi1/0/5, Gi1/0/6, Gi1/0/7, Gi1/0/8
......
Gi1/0/2, Gi1/0/3, Gi1/0/4
Gi1/0/2, Gi1/0/3, Gi1/0/5
Configuration Example
Configuration Guide
178