Configuring ACL
ACL Configurations
Configuration Guide
529
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to bind ACL 1 to port 3 and ACL 2 to VLAN 4:
Switch#configure
Switch(config)#interface gigabitEthernet
1/0/3
Switch(config-if)#access-list bind acl
1
Switch(config-if)#exit
Switch(config)#interface vlan
4
Switch(config-if)#access-list bind acl
2
Switch(config-if)#show access-list bind
Index
Policy
Name
Interface/VID
Direction
Type
-----
-----------
-------------
--------
----
Index
ACL
ID
Interface/VID
Direction
Type
-----
-----------
-------------
--------
----
1
1 Gi1/0/3 Ingress Port
2
2 4 Ingress Vlan
Switch(config-if)#end
Switch#copy running-config startup-config
Policy Binding
You can bind the Policy to a port or a VLAN, then the received packets will be matched and
operated based on the Policy.
Step 1
configure
Enter global configuration mode