09-15-2011 10:29 AM - edited 03-07-2019 02:14 AM
Hi,
I want to block a particular PC (MAC address) from accessing a Router (Network) in a simple network as follows-
So, I applied MAC ACL to fa2/1 interface of switch as-
Switch(config)#mac access-lists extended test1
#deny host <mac of PC> any
#permit any any
#exit
#int fa2/1
#mac access-group test1 in
But, still PC is able to ping Router. It seems that MAC ACL is not working here.
Pls, let me know what's wrong here.
Thanks,
Subrata
Solved! Go to Solution.
09-16-2011 01:38 PM
Hello Subrata,
My suspicion is confirmed... From the IOS Configuration Guide for 12.2SXF at
Each type of ACL (IP, IPX, and MAC) filters only traffic of the corresponding type. A Cisco IOS MAC ACL never matches IP or IPX traffic.
Filtering IP traffic using MAC ACLs will therefore not be possible. Perhaps using the IP Source Guard with source MAC verification could solve your needs.
Best regards,
Peter
09-15-2011 10:31 AM
Subrata,
On 2960 and 3560 Catalyst switches, the MAC ACL applies only to non-IP traffic. If a frame contains an IP packet, the MAC ACL will not have an effect on it. You would need to use IP ACL to filter out your PC on these switches.
What switch and IOS version are you using, anyway?
Best regards,
Peter
09-16-2011 12:00 PM
Hello Peter,
We are using 6509 Switch with IOS Version 12.2(18)SXF13.
Thanks and regards,
Subrata
09-16-2011 01:38 PM
Hello Subrata,
My suspicion is confirmed... From the IOS Configuration Guide for 12.2SXF at
Each type of ACL (IP, IPX, and MAC) filters only traffic of the corresponding type. A Cisco IOS MAC ACL never matches IP or IPX traffic.
Filtering IP traffic using MAC ACLs will therefore not be possible. Perhaps using the IP Source Guard with source MAC verification could solve your needs.
Best regards,
Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide