Re: ntp configuration
On Wed, 2004-06-30 at 10:29, Alvin Oga wrote:
> On Wed, 30 Jun 2004, Zenaan Harkness wrote:
>
> > SERVER:
> > ---
> > whiskas:~# cat /etc/ntp.conf
> > driftfile /var/lib/ntp/ntp.drift
> > server time-server.bigpond.net.au
>
> use just ONE and only ONE ntp server for testing
> and pick one that works ...
>
> root# ntpdate time-server.bigpond.net.au
>
> you'll know what it works
>
> --
>
> what is the output messages in /var/log/xntpd
OK, all on whiskas, my "server":
### 04-06-30 11:33:15 __________
whiskas:~# cat /var/log/xntpd
30 Jun 11:30:27 ntpd[31451]: system event 'event_restart' (0x01) status
'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010)
30 Jun 11:30:29 ntpd[31451]: peer LOCAL(0) event 'event_reach' (0x84)
status 'unreach, conf, 1 event, event_reach' (0x8014)
30 Jun 11:32:32 ntpd[31451]: ntpd exiting on signal 15
30 Jun 11:32:57 ntpd[31503]: system event 'event_restart' (0x01) status
'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010)
30 Jun 11:32:59 ntpd[31503]: peer LOCAL(0) event 'event_reach' (0x84)
status 'unreach, conf, 1 event, event_reach' (0x8014)
whiskas:~# ntpdate tk1.ihug.com.au
30 Jun 11:31:07 ntpdate[31469]: the NTP socket is in use, exiting
### 04-06-30 11:31:07 __________
whiskas:~# ntpq -cpe
remote refid st t when poll reach delay offset
jitter
==============================================================================
gen21.ihug.com. .RSTR. 16 u - 64 0 0.000 0.000
4000.00
LOCAL(0) LOCAL(0) 10 l 24 64 3 0.000 0.000
0.001
192.168.0.0 .BCST. 16 u - 64 0 0.000 0.000
4000.00
### 04-06-30 11:31:57 __________
whiskas:~# /etc/init.d/ntp-server stop
Stopping NTP server: ntpd.
### 04-06-30 11:32:32 __________
whiskas:~# ntpdate tk1.ihug.com.au
30 Jun 11:32:36 ntpdate[31493]: adjust time server 203.109.250.41 offset
0.0027 60 sec
### 04-06-30 11:32:36 __________
whiskas:~# ntpdate tk1.ihug.com.au
30 Jun 11:32:45 ntpdate[31496]: adjust time server 203.109.250.41 offset
-0.002060 sec
### 04-06-30 11:32:45 __________
whiskas:~# /etc/init.d/ntp-server start
Starting NTP server: ntpd.
### 04-06-30 11:32:57 __________
whiskas:~# ntpdate tk1.ihug.com.au
30 Jun 11:33:10 ntpdate[31507]: the NTP socket is in use, exiting
### 04-06-30 11:33:10 __________
whiskas:~# ntpq -cpe
remote refid st t when poll reach delay offset
jitter
==============================================================================
gen21.ihug.com. .RSTR. 16 u - 64 0 0.000 0.000
4000.00
LOCAL(0) LOCAL(0) 10 l 16 64 1 0.000 0.000
0.001
192.168.0.0 .BCST. 16 u - 64 0 0.000 0.000
4000.00
### 04-06-30 11:34:14 __________
whiskas:~# cat /etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
#server time-server.bigpond.net.au
server tk1.ihug.com.au
#server tk2.ihug.com.au
#server tk3.ihug.com.au
#server pool.ntp.org
server 127.127.1.0
fudge 127.127.1.0 stratum 10
logconfig all
logfile /var/log/xntpd
broadcastdelay 0.008
broadcast 192.168.0.0
restrict default nomodify notrust
restrict 127.0.0.1
disable auth
#broadcastclient
---
tia
zen
Reply to: