Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTP setup for linux

Status
Not open for further replies.

djr111

Technical User
Aug 5, 2006
357
US
setting up a ntp server on linux.

i want server B to be able to connect to server A to adjust its time.

is there a easy process to do this?

----------------------------------------------------
So far,

I have done:

/etc/ntp.conf on server A

# restrict mytrustedtimeserverip mask 255.255.255.255 nomodify notrap noquery

server 10.2.3.4 (added this)


driftfile /var/lib/ntp/drift

in file itself, I added " 0.0 "


on server B
====================
# restrict mytrustedtimeserverip mask 255.255.255.255 nomodify notrap noquery

server 10.2.3.4 (added this)

driftfile /var/lib/ntp/drift

in file itself, I added " 0.0 "


stop and restarted ntp.

using ntpq
>peers

I see my server, but does not seem to be using it, there is no "*"



I am probably in left field here, any help would be great.
 
good docs...

is there a way to do this without using an external source to sync up to.

I know it may make it so the time is not EXACT, but I can live with that, my main concern is keeping server in sync with each other, but not leaving our protected barrier to achieve that.


thanks again.
 
Not sure this works in linux, but on Netware and Windows if the primary cannot get time from external then it serves it's internal time to clients. So I've configured a "bad" IP for the primary to update from.

I've tried pointing the primary at itself but never got that to work.
 
Just comment out that line in the ntp.conf file on Server-A.
It would then run in StandAlone-mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top