LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2020, 03:31 AM   #1
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Rep: Reputation: Disabled
Unhappy Configuring an NTP server for automatic time sync for all network hosts


I have an ntp server running on ubuntu. It is working ok when I configure the client /etc/ntphosts file for clients. The clients are able to sync with the server.

However, my actual goal is to have all network hosts connected to my network get the time from this ntp server. Yes I would like this to include different hosts running different OSs. I have searched for ways to implement but still haven't found any. If I configure it to broadcast, I still have to configure the client to be a broadcast client. This scenario of having to manually configure a client is what I would like to avoid 100%. This is attributed to the fact that the clients are in the thousands.

Will really appreciate input on this...
 
Old 05-18-2020, 07:05 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,787

Rep: Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773
I have done this, but only in an environment with a few hundred hosts, not thousands.

1. All Microsoft hosts should pick up time from the domain controllers. If you install and configure and NTP client there, that correct time should be picked up by all Microsoft clients on the domain.
CAUTION: the domain service link is terribly clock sensitive. It is best if any time shift larger than a second or two happens only on startup.

2. All Linux hosts will require ntp client and a configuration. It is best if you have a centralized management or configuration server to automate this, so once you get ONE configuration correct it will propagate successfully to all Linux hosts. I was able to build my own solution for my RHEL, CentOS, and Debian environment but there are better options for multiple node management today.

The nature of traditional NTP is passive. It corrects local time from a server, then (assuming you configure it to serve) waits on client requests for correct time. I advise against broadcasting in general, having managed MANY networks and never having found unnecessary broadcasting to be a good thing.

Have you other operating systems to consider? Is this in one consolidated network, or multiple domains and subnets?

Last edited by wpeckham; 05-18-2020 at 07:07 AM.
 
1 members found this post helpful.
Old 05-18-2020, 07:56 AM   #3
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by LXCnut View Post
I have an ntp server running on ubuntu. It is working ok when I configure the client /etc/ntphosts file for clients. The clients are able to sync with the server.

However, my actual goal is to have all network hosts connected to my network get the time from this ntp server. Yes I would like this to include different hosts running different OSs. I have searched for ways to implement but still haven't found any. If I configure it to broadcast, I still have to configure the client to be a broadcast client. This scenario of having to manually configure a client is what I would like to avoid 100%. This is attributed to the fact that the clients are in the thousands.

Will really appreciate input on this...
Since you have so many systems to manage, it would be worth looking at tools like Puppet or Ansible or Salt (and few others).
It will help you a great deal to manage your clients (not just for NTP but for just about anything from provisioning to updates to any configuration changes).
 
1 members found this post helpful.
Old 05-18-2020, 08:24 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,820

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
Welcome to LinuxQuestions.

As far as I know there is no universal method.

DHCP server option 42 is for configuring a ntp server but not all DHCP clients will use that option. linux distributions that run ntp and chrony do, those that strictly run systemd-timsyncd do not and neither does OSX. Although there might be some configuration settings that I am not aware of... Windows not joined to a domain do not.
 
1 members found this post helpful.
Old 05-20-2020, 02:26 AM   #5
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
I have done this, but only in an environment with a few hundred hosts, not thousands.

1. All Microsoft hosts should pick up time from the domain controllers. If you install and configure and NTP client there, that correct time should be picked up by all Microsoft clients on the domain.
CAUTION: the domain service link is terribly clock sensitive. It is best if any time shift larger than a second or two happens only on startup.

2. All Linux hosts will require ntp client and a configuration. It is best if you have a centralized management or configuration server to automate this, so once you get ONE configuration correct it will propagate successfully to all Linux hosts. I was able to build my own solution for my RHEL, CentOS, and Debian environment but there are better options for multiple node management today.

The nature of traditional NTP is passive. It corrects local time from a server, then (assuming you configure it to serve) waits on client requests for correct time. I advise against broadcasting in general, having managed MANY networks and never having found unnecessary broadcasting to be a good thing.

Have you other operating systems to consider? Is this in one consolidated network, or multiple domains and subnets?
Hey. Do you mean I should install the domain controller before I continue? I assumed I should have the ntp up and running before this, becuase of the time sync sensitivity!

Is it a concern if I am configuring the ntp and dns as containers on the same virtual server?

What mode of propagation might you suggest? Or do you mean the dns will achieve this!?

Yes there are subnets. 99% of the hosts windows clients. Linux clients are not as many
 
Old 05-20-2020, 02:27 AM   #6
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dc.901 View Post
Since you have so many systems to manage, it would be worth looking at tools like Puppet or Ansible or Salt (and few others).
It will help you a great deal to manage your clients (not just for NTP but for just about anything from provisioning to updates to any configuration changes).
Ok. Let me check out these tools
 
Old 05-20-2020, 02:28 AM   #7
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.
... Windows not joined to a domain do not.
Hey. Havent understood the last part on Windows
 
Old 05-21-2020, 07:36 AM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,787

Rep: Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773
If you are not using Windows domain servers, then Windows clients will not automatically sync time. In this case you must configure an NTP client on every single windows workstation. The easy way to do that is using one of the network configuration managers that does NOT require domain membership so that you do not manually have to touch every workstation.

That is something I have NOT done, and I have no idea if any of the mentioned tools would serve.

Joining all independent workstations to a domain would also require touching every one, so that may not reduce the workload.

It serves no purpose, but I would like to ask (if you want to share) how you got to THOUSANDS of nodes on a complex network without ever wanting to use a centralized management tool or a domain for the MS management? That might be a story for the shark tank!

The note
Quote:
. Windows not joined to a domain do not.
refers back to the DHCP option to set NTP. He means that Windows nodes will not use that option unless they are domain members.

I hope that helps.

Last edited by wpeckham; 05-21-2020 at 07:39 AM.
 
Old 05-25-2020, 07:57 AM   #9
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
The note refers back to the DHCP option to set NTP. He means that Windows nodes will not use that option unless they are domain members.

I hope that helps.
So you are saying if I can get a domain controller up and running I can configure the DHCP option for NTP for the windows clients as well, without having to have a windows NTP server!

Quote:
Originally Posted by wpeckham View Post
It serves no purpose, but I would like to ask (if you want to share) how you got to THOUSANDS of nodes on a complex network without ever wanting to use a centralized management tool or a domain for the MS management? That might be a story for the shark tank!
Its a learning institution with thousands of students, staff who are encouraged to BYOD
 
Old 05-25-2020, 08:10 AM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,787

Rep: Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773
Quote:
Originally Posted by LXCnut View Post
So you are saying if I can get a domain controller up and running I can configure the DHCP option for NTP for the windows clients as well, without having to have a windows NTP server!
Almost, this only works for Windows clients that are joined, to and managed by, the domain. HOWEVER, in this case the windows clients get domain time from the domain controller ANYWAY, so as long as that clock is synced they will be good. In a BYOD situation you cannot assume that all Windows machines will join the domain! That open policy is good, wonderful even, but precludes and elegant and universal solution.
Quote:
Its a learning institution with thousands of students, staff who are encouraged to BYOD
In this case the right answer might be to put the NTP server OUT there. Use it for the machine you directly manage, and make sure the information is available to the staff and students in case they want it for the devices you do NOT manage. If the device is up to the user, you have to trust the users at some point.

Make sure that there is a web page with support documrents, and that the NTP information is part of that information. Life is far easier if they can look it up instead of calling you for help. Also, if education is the purpose, your IT solutions should leverage and serve the purpose and methods of education. They should be very used to looking things up, so provide and publish the resource and make it easy for them.

Last edited by wpeckham; 05-25-2020 at 08:15 AM.
 
1 members found this post helpful.
Old 05-25-2020, 08:33 AM   #11
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Almost, this only works for Windows clients that are joined, to and managed by, the domain. HOWEVER, in this case the windows clients get domain time from the domain controller ANYWAY, so as long as that clock is synced they will be good. In a BYOD situation you cannot assume that all Windows machines will join the domain! That open policy is good, wonderful even, but precludes and elegant and universal solution.

In this case the right answer might be to put the NTP server OUT there. Use it for the machine you directly manage, and make sure the information is available to the staff and students in case they want it for the devices you do NOT manage. If the device is up to the user, you have to trust the users at some point.

Make sure that there is a web page with support documrents, and that the NTP information is part of that information. Life is far easier if they can look it up instead of calling you for help. Also, if education is the purpose, your IT solutions should leverage and serve the purpose and methods of education. They should be very used to looking things up, so provide and publish the resource and make it easy for them.
Ok, noted. Let me try setting up the domain controller and test it out first before enabling large scale joining.
Yes, in terms of the domain controller and documentation, upon successful deployment, all necessary documentation and manuals will be circulated and made available to users to enable them to access resources. The idea of implementing this is so that the resources can be adequately managed and monitored, and it is also an attempt to improve security!
 
Old 05-25-2020, 08:46 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,820

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
Why do you think you need all the connected network device to use your NTP time server? It might be preferable but in this instance not possible as far as I know.

Windows home edition can not be joined to a domain. Are you going to force those students to pay for the upgrade?

Considering that most students would have laptops you would need to configure them so they can login without being connected to the campus network. Do you have the necessary infrastructure to manage thousands of network devices?

Last edited by michaelk; 05-25-2020 at 08:58 AM.
 
Old 05-26-2020, 04:10 AM   #13
LXCnut
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Why do you think you need all the connected network device to use your NTP time server? It might be preferable but in this instance not possible as far as I know.
This is a requirement for running a domain controller

Quote:
Originally Posted by michaelk View Post
Windows home edition can not be joined to a domain. Are you going to force those students to pay for the upgrade?
It is good practice for network / resource management. If you are talking about staffing then that is an internal issue which has been factored in. From the years of experience in basic user support, very few people use windows home edition. So even if this issue arises, it will be isolated cases.


Quote:
Originally Posted by michaelk View Post
Considering that most students would have laptops you would need to configure them so they can login without being connected to the campus network. Do you have the necessary infrastructure to manage thousands of network devices?
Documentations and manuals will be made available. There is a ticketing / token based user support system for handling support online. The infrastructure is what is being currently piloted.
 
Old 05-26-2020, 07:29 AM   #14
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,787

Rep: Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773
NTP is NOT a requirement for a DOMAIN. I like USING it on a domain, but Microsoft has their own time standard services for Windows Domain operations. NTP is for everything else, everything that observes open standards instead of "the Microsoft Way".

That said, I DO use an NTP client on my DOMAIN controllers when I set them, so that all the clocks on my network are in agreement. My preferred standard is to have a primary and a secondary NTP servers that get time from internet standard servers and then serve my network. (Two, so that if one goes down for maintenance the clocks do not drift.)

I suspect that you will have to accept zones of control, and zones where you will never have control. It is still unclear what control you really need, but seeking a campus standard time should be a good thing in any case. I prefer to lock down servers and server network, then publish preferred standards (and a few DOs and DON'Ts) with other useful information on an internal web page or WIKI and let the average users (students, in your case) pretty much manage themselves and each other. For me, that works and is far less work and stress than trying to control everything.

If student machines are personal equipment there is a question of what on them you have any RIGHT to control! Inexpensive commodity (student) machines where I am DO tend to come loaded with Windows Home Edition by default, as it is the less expensive. Your situation MAY differ, we would not know unless you provide that detail.

I hope that you now have enough information to get started, and I wish you the best of luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian jessie NTP server sync to windows ntp server question rogzuser Linux - Server 1 09-08-2015 06:19 AM
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 09:33 AM
how to indentify whether the multiple hosts are in sync with ntp server smilemukul Linux - Newbie 4 03-05-2012 09:07 AM
How to config the Time Sync automatic with Daylight Saving and NTP shatztal Solaris / OpenSolaris 4 10-14-2009 02:51 PM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration