Cisco Catalyst 2950 Command Reference Manual page 96

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

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
Switch(config-std-nacl)# permit 192.5.32.0
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
Switch(config-ext-nacl)# permit any 128.5.8.0
Switch(config-ext-nacl)# exit
In these examples, all other IP access is implicitly denied.
Note
You can verify your settings by entering the show access-lists or show ip access-lists privileged EXEC
command.
Related Commands
Command
deny (access-list configuration)
ip access-group
permit (access-list configuration)
service-policy
show access-lists
show ip access-lists
Catalyst 2950 Desktop Switch Command Reference
2-72
0.0.0.255
0.0.0.255
0.0.0.255 eq 80
0.0.0.255 eq 80
Description
Configures conditions for an IP ACL.
Controls access to an interface.
Configures conditions for an IP ACL.
Applies a policy map to the input of an interface.
Displays ACLs configured on the switch.
Displays IP ACLs configured on the switch.
Chapter 2
Cisco IOS Commands
78-11381-05

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents