1826496 Members
2823 Online
109692 Solutions
New Discussion

Re: ntp

 
SOLVED
Go to solution
stefano_23
Occasional Contributor

ntp

HI guys

I have a little lan with 2 servers and 10 client.

I want to set serverA to a NTP server with it's time.

what I must to do?

tnx
7 REPLIES 7
Jannik
Honored Contributor

Re: ntp

hi,

find one ntp server on the internet and setup the ntp with sam. Sam will do all the work for U.

check it with:
ntpq -p

BR,
Jannik
jaton
stefano_23
Occasional Contributor

Re: ntp

hi jannik

No I don't want to use an Internet server.

I want to use my serverA for npt primary server
Robert-Jan Goossens
Honored Contributor
Solution

Re: ntp

Jannik
Honored Contributor

Re: ntp

ok.
on serverb go into sam -> time -> NTP Network Time Source and remove any entry and stop the NTP service.
From actions (in the top) add a server servera and then start the NTP service again.

BR,
Jannik
jaton
T G Manikandan
Honored Contributor
T G Manikandan
Honored Contributor
Gary Yu
Super Advisor

Re: ntp

Hi,

I did the similar thing before, I don't need to use ntp to set my server to be exactly as atomic clock, I just need to sync the clock on 2 servers for application reasons. what I did was:

1, use "date" command to set the time of the 2 servers to be as sync as possible (within 30 seconds offset, otherwise, there maybe problems with ntpdate)

2, run "ntpdate -b serverA" from server B to initially sync the 2 servers. (note that xntpd was not started yet then)

3, on serverA (ntp server) /etc/ntp.conf file set "server 127.127.1.1" and start xntpd, it means it will use its own clock as time source.

4, on serverB (ntp client) /etc/ntp.conf file
set "server serverA_IP" and "driftfile /var/adm/ntp.drift" then start xntpd.

that's it.

thanks,
Gary