Cisco Catalyst 2950 Command Reference Manual page 161

Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 2
Catalyst 2950 and 2955 Cisco IOS Commands
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
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
deny (access-list configuration)
ip access-group
permit (access-list configuration)
service-policy
show access-lists
show ip access-lists
OL-10102-01
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.
Catalyst 2950 and Catalyst 2955 Switch Command Reference
ip access-list
2-131

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2955

Table of Contents