NTP

Hello,

I want to enable real time clock for my system.
I turned on the ‘now and boot’ option to start the ntpd on boot but before that I tried to test the server connection. Sadly there is no connection to a server.

What should I do?

I have a very silly qn…

Should be connected to the internet or some provider to enable NTP?

If no how does the whole communication work??

I ask this cos i have only a D-link router and I have two systems connected wirelessly via a wireless stick for some demo purpose. There is no connection to the external network.

Thanks folks

Yes you need an Internet connection to use NTP synchronisation.

Or a very accurate local clock. I’ve heard of someone developing a module from extracting the time from a GPS receiver. But that’s not a hack for newbies.

If you don’t have an Internet connection, turn off NTP or it will waste CPU resources trying to connect.

I have a nother question.

I have a system1 connected to my internal network. I thought I can get the accurate time from another system2 connected to it. This system2 however can be connected to the internet later…so am trying to make this system2 my server to which system1 will ask the time.

For this, I went to /etc/sysconfig/ntpserver of system1 and gave system2’s ip.

However I still dint see the changed time in sync with system 2 on system 1.

Should I start ntpd or something?

You have to run a NTP service on the server. I seem to remember though that a NTP server will not be willing to give the time to clients without itself having synchronisation to accurate servers outside, so it may not be workable.

However you can run simpler time sync protocols like rdate, which only requires the time service (port 37), running from xinetd.