Applying Time Ranges To Acls - Cisco 2950 - Catalyst Switch Configuration Manual

Software configuration guide
Hide thumbs Also See for 2950 - Catalyst Switch:
Table of Contents

Advertisement

Chapter 29
Configuring Network Security with ACLs
Command
Step 5
show access-lists [number | name]
Step 6
copy running-config startup-config
When making the standard and extended ACL, remember that, by default, the end of the ACL contains
an implicit deny statement for everything if it did not find a match before reaching the end. For standard
ACLs, if you omit the mask from an associated IP host address access list specification, 0.0.0.0 is
assumed to be the mask.
After you create an ACL, any additions are placed at the end of the list. You cannot selectively add ACEs
to a specific ACL. However, you can use no permit and no deny commands to remove ACEs from a
named ACL. This example shows how you can delete individual ACEs from a named ACL:
Switch(config)# ip access-list extended border-list
Switch(config-ext-nacl)# no permit ip host 10.1.1.3 any
Being able to selectively remove lines from a named ACL is one reason you might use named ACLs
instead of numbered ACLs.
After creating an ACL, you must apply it to a line or interface, as described in the
Terminal Lines or Physical Interfaces" section on page

Applying Time Ranges to ACLs

You can implement extended ACLs based on the time of day and week by using the time-range global
configuration command. First, define the name and times of the day and week of the time range, and then
reference the time range by name in an ACL to apply restrictions to the access list. You can use the time
range to define when the permit or deny statements in the ACL are in effect. The time-range keyword
and argument are referenced in the named and numbered extended ACL task tables in the
Standard and Extended IP ACLs" section on page
Extended ACLs" section on page
These are some of the many benefits of using time ranges:
The time range relies on the switch system clock. Therefore, you need a reliable clock source. We
Note
recommend that you use Network Time Protocol (NTP) to synchronize the switch clock. For more
information, see the
Beginning in privileged EXEC mode, follow these steps to configure a time-range parameter for an ACL:
Command
Step 1
configure terminal
Step 2
time-range time-range-name
78-11380-10
You have more control over permitting or denying a user access to resources, such as an application
(identified by an IP address mask pair and a port number).
You can control logging messages. ACL entries can log traffic at certain times of the day, but not
constantly. Therefore, you can simply deny access without having to analyze many logs generated
during peak hours.
"Managing the System Time and Date" section on page
Purpose
Enter global configuration mode.
Identify the time-range by a meaningful name (for example, workhours),
and enter time-range configuration mode. The name cannot contain a
space or quotation mark and must begin with a letter.
Purpose
Show the access list configuration.
(Optional) Save your entries in the configuration file.
29-19.
29-7, and the
29-13.
Catalyst 2950 and Catalyst 2955 Switch Software Configuration Guide
Configuring ACLs
"Applying ACLs to
"Creating
"Creating Named Standard and
8-1.
29-15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2955

Table of Contents