Operating System - Linux
1751894 Members
4933 Online
108783 Solutions
New Discussion юеВ

Re: Setting Linux server as NTP stratum 1

 
Graham Van der vaart_1
Super Advisor

Setting Linux server as NTP stratum 1

Hi,
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 127.127.26.1 prefer minpoll 6 # HP GPS receiver /dev/hpgps1
logconfig =syncall +clockall
logfile /var/adm/xntpd.log
fudge 127.127.26.1 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
Graham
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Setting Linux server as NTP stratum 1

Shalom,

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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

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 www.ntp.org, 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 ).

Greetings
Philippe