16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
ip access-list
186
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
Examples
The following example shows how to configure a standard ACL named Internetfilter1:
Switch(config)# ip access-list standard Internetfilter1
Switch(config-std-nacl)# permit 192.5.34.0 0.0.0.255
Switch(config-std-nacl)# permit 192.5.32.0 0.0.0.255
Switch(config-std-nacl)# exit
The following example shows how to configure an extended ACL named Internetfilter2:
Switch(config)# ip access-list extended Internetfilter2
Switch(config-ext-nacl)# permit any 128.8.10.0 0.0.0.255 eq 80
Switch(config-ext-nacl)# permit any 128.5.8.0 0.0.0.255 eq 80
Switch(config-ext-nacl)# exit
Note
In these examples, all other IP access is implicitly denied.
You can verify your settings by entering the show access-lists or show ip access-lists privileged EXEC
command.
Related Commands
Command
Description
deny (access-list configuration)
Configures conditions for an IP ACL.
dot1x re-authenticate
Controls access to an interface.
permit (access-list configuration)
Configures conditions for an IP ACL.
service-policy
Applies a policy map to the input of an interface.
show access-lists
Displays ACLs configured on the switch.
show ip access-lists
Displays IP ACLs configured on the switch.