1837921 Members
6857 Online
110124 Solutions
New Discussion

NTP Configuration

 
SOLVED
Go to solution
Mark Duffy
Advisor

NTP Configuration

I'm trying to configure an internal NTP server and client. I do not need my NTP server looking outside for its time but to sync the other servers on my LAN. I have the following lines in ntp.conf on the server where x is the server IP and y is the client IP:

broadcast x.x.x.x
driftfile /etc/ntp.drift
authenticate yes
restrict y.y.y.y mask 255.255.255.0 notrust modify
server y.y.y.y
fudge y.y.y.y stratum 10

On the client ntp.conf:

server x.x.x.x
driftfile /etc/ntp.drift

I have touched the driftfile on both machines. When I examine them they read:
255.000 0
on the server and:
0.000 0
on the client

xntpd is running on both.

When I do an ntpq -p the servers seem to have bound but after 24hrs no time change has taken place!

Any suggestions anyone? Am I missing something really obvious here?
3 REPLIES 3
federico_3
Honored Contributor
Solution

Re: NTP Configuration

MARTINACHE
Respected Contributor

Re: NTP Configuration

Here is my config and it works fine :

SERVER :

authenticate yes
keys /etc/ntp.keys
trustedkey 32
server 127.127.1.1 version 3 key 32
driftfile /etc/ntp.drift

CLIENT :

authenticate yes
keys /etc/ntp.keys
trustedkey 32
server my_server_hostname version 3 key 32 prefer
driftfile /etc/ntp.drift


This very important there is 127.127.1.1 !!!

(You can skip the first 3 lines if you don't need authentication)

Patrice.
Patrice MARTINACHE
augusto cossa
Frequent Advisor

Re: NTP Configuration

Mark,

Try using sam. In your server choose time and then NTP Broadcasting and add the client IP address. In client server choose NTP Network Time Sources and configure it as foolowed:

Host Name or address should be the server and Relationship to local host choose server and Preferred server must be (Yes) and the NTP Version it's normally 3 and disable the authentication key number. After that in the client the NTP status should be (not running) and try at command comm prompt (ntpdate ). if work you will see something like adjust to . At server the NTP status should be (NTP: Running).

Hope it'shelp you.

Augusto