Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok - My machine is on a LAN which has their own dedicated NTP server. How can I make my machine sync with our local NTP server? Is their a command? I don't recall but I beleive I have a NTP service running on my Debian machine - I just forgot how to command it to sync. I did google this and came up confused.
Can anyone tell me if I have the correct services configured to sync with a local NTP server and how to do so?
Not at my Debian box, but I think I installed ntp and then edited /etc/ntp.conf to contain a server on my network. Then I just restarted the ntp service. If you only need to have a client, you can use ntpdate and run it once from a cronjob.
I think you want to use ntpd (which I think would be available for Debain if not already installed) and pretty much all you need to do is edit the /etc/ntp.conf file to point to your local NTP server.
You need to apt-get install ntp-server. The configuation file is /etc/ntp.conf. Edit this file by reming the server lines and add your own;
server <ip_address of your network time server>
cwilliams:/home/cwilliams# apt-cache search ntp-server
ntp-server - Network Time Protocol: common server tools
cwilliams:/home/cwilliams# apt-get install ntp-server
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
ntp ntp-simple
Suggested packages:
ntp-doc
The following NEW packages will be installed
ntp ntp-server ntp-simple
0 upgraded, 3 newly installed, 0 to remove and 71 not upgraded.
I have edited the ntp.conf file with my local NTP servers and saved the file. Now what? How do I force a sync w/o rebooting.
So I have to run an NTP server utility on my machine just to sync to an NTP server? I don't want my machine to be an NTP server if that makes sence.
It doesn't have to be a server in strict terms but could be. A quick explanation will help you understand. The server software starts by getting time from the remote server every 64 seconds. It then calculates the natural error of your own system clock and places this info in the drift file. As the drift becomes more consistent it reduces the number of requests made on the remote server and finally settles on a request rate of 1024 seconds because the software can compensate for the error of the system clock. The problem with an app like ntpdate is that it fires a wholes series of requests at the remote server and admins that run these can get a bit techy about this. I run a server as part of the ntp.pool.org and it really p....ses me off.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.