System Administration
Showing results for 
Search instead for 
Did you mean: 

Setting Linux server as NTP stratum 1


Setting Linux server as NTP stratum 1

I currently have a HP-UX 11i server setup as a NTP v3 stratum 1 server and using a HP 58503A GPS Time and Frequency Reference Receiver.

I now have been tasked to setup on a linux server:
Red Hat Enterprise Linux AS release 3 (Taroon Update 9) Kernel 2.4.21-57.ELsmp on an i686.

I followed the following steps to setup the HP-UX server:

1. Created a device file of the RS232 port in SAM (for external modem).
2. A logical link (or alias) of the device file (ttyd0p7) was created as hpgps1
3. Edited /etc/uucp/Devices need to have the following two lines:
Direct hpgps1 - 9600 direct
ACU hpgps0 hpgps1 9600 direct
4. Executed the command cu -lhpgps1 to enable direct communications to the HP 58503A device.

Then added the following lines to /etc/ntp.conf:

server prefer minpoll 6 # HP GPS receiver /dev/hpgps1
logconfig =syncall +clockall
logfile /var/adm/xntpd.log
fudge time1 -0.930

Can anybody please help with the steps to now setup the Linux server as the stratum 1 server instead of the HP-UX server?

Kind Regards
Steven E. Protter
Exalted Contributor

Re: Setting Linux server as NTP stratum 1


The steps are almost the same, accept the device configuration steps are different.

the ntp.conf should be virtually the same.

You can substantially simplify this if your system has public internet access and just connect to a public server. I've always favored the US Navy or HP's time servers.

Steven E Protter
Owner of ISN Corporation

Re: Setting Linux server as NTP stratum 1

I work with a SuSE SLES 10 server and a Meinberg C51 DCF77 radio clock receiver.
I think the configuration for RedHat doesn't differ too much.

I followed the instructions on the website, where a lot of configurations are explained.
In the /etc/ntp.conf file there is already some explanation. You have to create a link from /dev/refclock-0 to /dev/ttyS0 ( or whatever the device name is for your serial port ) and then you have to put your serial port in the right configuration ( which was the toughest part to achieve ).