Andrew Schulman wrote:
>> I just install RH 7.3 on a testmachine, and then compiled NTP. But I
> cannot
>> get it to syncronize with my other linxu-box.
>>
>> This is what ntpdate write:
>> [root@r2d2 etc]# ntpdate -qv jedi.<mydomain>
>> 4 Oct 17:43:19 ntpdate[22511]: ntpdate 4.2.0@1.1161-r Mon Oct 4
>> 15:42:50
>> GMT+1 2004 (1)
>> Looking for host jedi.<mydomain> and service ntp
>> host found : jedi.<mydomain>
>> server xxx.xxx.xxx.xxx, stratum 16, offset 19.252031, delay 0.02628
>> 4 Oct 17:43:19 ntpdate[22511]: no server suitable for synchronization
>> found
>>
>> The jedi machine is syncronized with an external source. So I wonder why
>> the new machine won't syncronize. Looking at the network traffice, the
>> two machines are communicating on port 123.
>>
>> Any idea what's wrong?
>
> Post your /etc/ntp.conf. If you have "restrict default ignore", then
> you'll have to specifically unrestrict access from your designated
> upstream servers, e.g. "restrict xxx.xxx.xxx.xxx nomodify".
Here is the ntp.conf file at the "server" (xxx.xxx.xxx.xxx):
restrict default ignore
restrict 127.0.0.1
restrict 192.168.2.0 mask 255.255.255.0 nomodify
restrict 194.213.166.136 mask 255.255.255.248 nomodify
restrict 194.213.163.80 mask 255.255.255.240 nomodify
server oslo-gw1.uninett.no
driftfile /etc/ntp/drift
broadcastdelay 0.008
authenticate yes
keys /etc/ntp/keys
# END OF FILE
And there is the ntp.conf file at the "client":
server xxx.xxx.xxx.xxx
# END OF FILE
But when I tried to write "ntpd -d" I got:
[root@r2d2 etc]# ntpd -d
ntpd 4.2.0@1.1161-r Mon Oct 4 15:42:45 GMT+1 2004 (1)
addto_syslog: ntpd 4.2.0@1.1161-r Mon Oct 4 15:42:45 GMT+1 2004 (1)
addto_syslog: signal_no_reset: signal 13 had flags 4000000
addto_syslog: precision = 2.000 usec
create_sockets(123)
addto_syslog: no IPv6 interfaces found
bind() fd 4, family 2, port 123, addr 0.0.0.0, flags=8
bind() fd 5, family 2, port 123, addr 127.0.0.1, flags=0
bind() fd 6, family 2, port 123, addr 192.168.2.21, flags=8
init_io: maxactivefd 6
local_clock: at 0 state 0
key_expire: at 0
peer_clear: at 0 assoc ID 25740 refid INIT
newpeer: 192.168.2.21->xxx.xxx.xxx.xxx mode 3 vers 4 poll 6 10 flags 0x1 0x1
ttl 0 key 00000000
report_event: system event 'event_restart' (0x01) status 'sync_alarm,
sync_unspec, 1 event, event_unspec' (0xc010)
transmit: at 1 192.168.2.21->xxx.xxx.xxx.xxx mode 3
auth_agekeys: at 1 keys 1 expired 0
timer: refresh ts 0
receive: at 1 192.168.2.21<-xxx.xxx.xxx.xxx mode 4 code 1
packet: bad header 020
addto_syslog: ntpd exiting on signal 2
Does this make any sense?
--
Jørn Dahl-Stamnes
http://80.203.206.37/dahls/index.html