Standard IP ACL sample configuration
The following example shows how to create a standard IPv4 ACL that prevents any IP traffic from the finance department from being sent on ports 2, 3, and 4, which are associated with other departments. Traffic from the finance department is identified by each packet’s network IP address.
In this example, you do the following:
- Create a standard IPv4 ACL with number 1.
- Create a first rule for the ACL with the number 1 with the following criteria:
- Sequence Number: 1
- Action: Deny
- Assign Queue ID: 4
- Match Every: No
- EtherType: IPv4
- Source IP address: 192.168.187.0
- Source IP Mask: 255.255.0.0
- Create a second rule for the ACL with the number 1 with the following criteria:
- Sequence Number: 2
- Action: Permit
- Match Every: Yes
- EtherType: IPv4
- Source IP address: 192.168.187.0
- Source IP Mask: 255.255.0.0
- Bind the ACL with the number 1 to ports 2, 3, and 4.
To configure the standard IP ACL example:
The IP ACL looks for traffic that matches all packets with the source IP address and subnet mask of the finance department’s network and denies it on interfaces 2, 3, and 4 of the switch. The second rule permits all non-finance traffic on the ports. The second rule is required because an explicit deny all rule exists as the lowest priority rule.