*The switch supports two types of ACLs:*
1) IP ACLs filter IP traffic, including TCP, User Datagram Protocol(UDP), Internet Group Management Protocol(IGMP), and Internet Control Message Protocol(ICMP).
2) Ethernet or MAC ACLs filter non-IP traffic.
The switch supports three applications of ACLs to filter traffic:
1) Router ACLs access-control routed traffic between VLANs and are applied to Layer 3 interfaces. You can apply one router ACL in each direction on an interface.
2) Port ACLs access-control traffic entering a Layer 2 interface. The switch does not support port ACLs in the outbound direction. You can apply only one IP access and one MAC access list to a Layer 2 interface.
3) VLAN ACLs or VLAN maps access-control all packets(bridged and routed). You can use VLAN maps to filter traffic between devices in the same VLAN. VLAN maps are configured to provide access-control based on Layer 3 addresses for IP. Unsupported protocols are access-controlled through MAC addresses by using Ethernet ACLs. After a VLAN map is applied to a VLAN, all packets(routed or bridged) entering the VLAN are checked against the VLAN map. Packets can either enter the VLAN through a switch port or through a routed port after being routed.
You can use both router acls and vlan maps on the same switch. However, you can not use port ACLs on a switch that contains input router ACLs or VLAN maps.
1) When a switch has a layer 2 interface with an applied IP access list or MAC access list, you can create IP access lists and VLAN maps, but you can not apply an IP access list to an input layer 3 interface on that switch , and you can not apply a VLAN map to any of the switch VLANs. An error message is generated if you attempt to do so. You can still apply an IP access list to an outbound layer 3 interface on a switch with port ACLs.
2) When a switch has an input layer 3 acl or a vlan map applied to it, you can not apply an ip access list or mac access list to a layer 2 interface on that switch. An error message is generated if you attempt to do so. You can apply a port ACL if the switch has an ACL applied to an output layer 3 interface.
3) 在dot1Q的端口上不支持IP acl, vlan maps, port acl.只能應用mac acl.是因為不能識別dot1Q的包頭.
You can also apply acls to layer 2 interfaces on a switch, port acls are supported on physical interfaces only and not on EtherChannel interfaces. Port ACLs are applied on interfaces for inbound traffic only. These access lists are supported on layer 2 interfaces:
When you apply a port ACL to a trunk port, the ACL filters traffic on all VLANs present on the trunk port. When you apply a port ACL to a port with voice VLAN, the ACL filters traffic on both data and voice VLANs.
Note an output ACL cannot log multicast packets. logging is not supported for acls applied to layer 2 interfaces.
ACL apply rules.
After you create an IP acl, you can apply it to one or more interfaces or terminal lines. ACLs can be applied on either outbound or inbound layer 3 interfaces, but only to inbound layer 2 interfaces. This section describes how to accomplish this task for both terminal lines and network interfaces. Note these guidelines: