Hello.
I'm practising linux continuously and faced one problem for that I can't find solution.
According to book that I have I did all properly to set it up but it doesn't work.
I also searched internet with no results.
I even found similiar thread but after following replies I was lost anyway.
Someone can help on that?
I have two linux machines (actually it is centos).
Both have ntp package installed and running.
On one host (lets name it just server) I defined local host as clock source:
server 127.127.1.0
fudge 127.127.1.0 stratum 10
I commented external ntp servers in /etc/ntp.conf because I don't have internet connection and assume my server is the time source.
Second hosts is configuring when booting and using dhcp - including ntp server.
I commented external ntp servers in /etc/ntp.conf obviously.
When booted I see in the file /etc/ntp.conf correct IP of my ntp server (it is there with comment # added by dhclient-script)
Now. ntpq -p shows in refid column .INIT.
I did try ntpdate then and noticed that "no servers can be used, exiting"
What is still wrong?
I assume it is quite obvious to set up "ntp internal network" if one doesn't want to synchronise to external network.
And if I read the book carefully I optional choise for time source and it might be external source over internet or local or radio clock.
I'm practising linux continuously and faced one problem for that I can't find solution.
According to book that I have I did all properly to set it up but it doesn't work.
I also searched internet with no results.
I even found similiar thread but after following replies I was lost anyway.
Someone can help on that?
I have two linux machines (actually it is centos).
Both have ntp package installed and running.
On one host (lets name it just server) I defined local host as clock source:
server 127.127.1.0
fudge 127.127.1.0 stratum 10
I commented external ntp servers in /etc/ntp.conf because I don't have internet connection and assume my server is the time source.
Second hosts is configuring when booting and using dhcp - including ntp server.
I commented external ntp servers in /etc/ntp.conf obviously.
When booted I see in the file /etc/ntp.conf correct IP of my ntp server (it is there with comment # added by dhclient-script)
Now. ntpq -p shows in refid column .INIT.
I did try ntpdate then and noticed that "no servers can be used, exiting"
What is still wrong?
I assume it is quite obvious to set up "ntp internal network" if one doesn't want to synchronise to external network.
And if I read the book carefully I optional choise for time source and it might be external source over internet or local or radio clock.