Chinaunix首页 | 论坛 | 博客
  • 博客访问: 663718
  • 博文数量: 779
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 5000
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-27 13:28
文章分类

全部博文(779)

文章存档

2011年(1)

2008年(778)

我的朋友

分类:

2008-10-27 13:36:27


  !
  access-list 101 permit udp any any eq ntp time-range sntp-dial
  access-list 101 deny udp any any eq ntp
  access-list 101 permit ip any any
  dialer-list 1 protocol ip list 101
  !
  time-range sntp-dial
  absolute end 00:00 01 January 2000
  !
  
  The time there doesn't really matter as long as it is later than the epoch time for the device in question, and earlier than the current time. 01/01/2000 was just the arbitrary choice I made last time I configured that.
  
  With that config, NTP will bring up the line if and only if the clock on the has not already been set.
  
  For an unattended installation which may not dial up very frequently,
  it may be worth using a time-range which allows dialling once per day to keep the clock reasonably well synced. If your usage pattern results in the line coming up frequently, that is an unnecessary step. Constructing an appropriate time-range statement is left as an exercise for the reader.
  
  If it's a small single user LAN, it's considered polite to avoid the stratum-1 servers. Most ISPs should provide NTP servers for customer use, eg try ntp..net,timehost..net, ntp0..net,
  ntp1..net, etc. Apart from not overloading valuable global resources, using a NTP server local to your ISP will probably provide a more stable time service due to lower latency between the client and server.
  
  
【责编:admin】

--------------------next---------------------

阅读(479) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~