EasyManua.ls Logo

Cisco Catalyst 2950

Cisco Catalyst 2950
686 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-131
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
ip access-list
Examples This 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
This 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.
ip access-group 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.

Table of Contents

Other manuals for Cisco Catalyst 2950

Related product manuals