Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access List by time of day

Status
Not open for further replies.

akonwar

Technical User
Jun 16, 2003
26
0
0
IN
Can access lists can block / permit packets based on time of the day say to permit internet traffic only between 9:00 am to 5:00 pm.
what is the syntax in that case for access-list command? Router is cisco 1751.
 
Hi akonwar

You will need to use time based access lists. you can configure your router with time date ect but if router gets reset so does the time so i would suggest using a NTP server(network time protocol) command in config so that router will synch with ntp server.
Google.com will give you IP addresses for NTP servers to synch with or try this link



ciscorouter> enable

password: *********

ciscorouter# config t

ciscorouter(config)# ntp update-calendar
ciscorouter(config)# ntp server 193.204.114.232
ciscorouter(config)# ntp server 192.36.143.151
ciscorouter(config)# exit

ciscorouter# wr mem


NTP servers communicate with one another using UDP with a destination port of 123. Unlike most UDP protocols, the source port isn't a high port (ie. greater than 1023), but 123 also. You'll have to allow UDP traffic on source/destination port 123



Link below should you the job for time based access lists


hope this helps

Max
 
Note you need IOS 12.2(T) and above I do believe in order to use that command.
 
Shrug, no worries, just figured the dude would want to know. :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top