Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (Not For Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (Not For Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th August 2017, 01:18 AM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 606
linuxfirefox
My notes on configuring NTPd

Fedora 26+: NTP server

Refernces:
https://docs.fedoraproject.org/en-US..._Protocol.html
https://access.redhat.com/documentat...tion_File.html
http://support.ntp.org/bin/view/Supp...ection_6.5.1.2.


# dnf install ntpdate ntp

Find and test a server:
http://tf.nist.gov/tf-cgi/servers.cgi

# ntpdate -q time-a.nist.gov
server 129.6.15.28, stratum 1, offset 0.000755, delay 0.11977

# systemctl enable ntpdate.service


Note: add multiple lines for multiple restrists
# vi /etc/ntp.conf
server time-a.nist.gov iburst
server time-b.nist.gov iburst
server time-c.nist.gov iburst
server time-d.nist.gov iburst
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap nopeer
restrict -6 ::1


# systemctl enable ntpd.service
# systemctl restart ntpd.service

To test:
$ ntpq -p
ntpq -p
remote refid st t when poll reach delay offset jitter
================================================== ============================
-time-a.nist.gov .NIST. 1 u 9 64 3 347.931 -126.76 78.492
+time-b.nist.gov .NIST. 1 u 11 64 3 94.621 0.240 1.328
+time-c.nist.gov .NIST. 1 u 12 64 3 94.671 0.268 1.291
*time-d.nist.gov .NIST. 1 u 18 64 3 93.467 0.313 1.573
Reply With Quote
  #2  
Old 12th August 2017, 02:44 PM
tim8723 Offline
Registered User
 
Join Date: Mar 2017
Location: USA
Posts: 32
linuxfirefox
Re: My notes on configuring NTPd

Good write-up. Thanks.

Tim
Reply With Quote
  #3  
Old 13th August 2017, 01:11 AM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 606
linuxfirefox
Re: My notes on configuring NTPd

Quote:
Originally Posted by tim8723 View Post
Good write-up. Thanks.

Tim
You are most welcome.
Reply With Quote
  #4  
Old 13th August 2017, 01:48 AM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 7,097
linuxfedorafirefox
Re: My notes on configuring NTPd

Why are you using the obsolete Fedora 15 and Centos 6 ntp instructions? Fedora 26 uses chrony

https://docs.fedoraproject.org/en-US...ony_Suite.html
Reply With Quote
  #5  
Old 13th August 2017, 06:55 AM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 606
linuxfirefox
Re: My notes on configuring NTPd

Quote:
Originally Posted by marko View Post
Why are you using the obsolete Fedora 15 and Centos 6 ntp instructions? Fedora 26 uses chrony

https://docs.fedoraproject.org/en-US...ony_Suite.html
The note started out with CentOS 5. Kind of a trip down memory lane. If you know a better reference, I will swap them out.
Reply With Quote
  #6  
Old 13th August 2017, 07:01 AM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 7,097
linuxfedorafirefox
Re: My notes on configuring NTPd

Quote:
Originally Posted by ToddAndMargo View Post
The note started out with CentOS 5. Kind of a trip down memory lane. If you know a better reference, I will swap them out.
I'd say the Fedora 26 URL I quoted is pretty good:

https://docs.fedoraproject.org/en-US...ony_Suite.html

Ntp and Chrony both have their advantages, the URL covers them.
Reply With Quote
  #7  
Old 13th August 2017, 07:56 AM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 606
linuxfirefox
Re: My notes on configuring NTPd

Quote:
Originally Posted by marko View Post
I'd say the Fedora 26 URL I quoted is pretty good:

https://docs.fedoraproject.org/en-US...ony_Suite.html

Ntp and Chrony both have their advantages, the URL covers them.
From the link you gave me:

Quote:
Things ntpd can do that chronyd cannot do:

ntpd fully supports NTP version 4 (RFC 5905), including broadcast, multicast, manycast clients and servers, and the orphan mode. It also supports extra authentication schemes based on public-key cryptography (RFC 5906). chronyd uses NTP version 3 (RFC 1305), which is compatible with version 4.

I meant to use ntpd and not chrony. This is meant for a server. You will notice from my write up that I use the NIST server's to synchronize with. And U want to get up to date with RFC 5905

Sounds like chrony would be nice for a workstation though.
Reply With Quote
Reply

Tags
configuring, notes, ntpd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM Lotus Notes Social Edition (Lotus Notes 9) ThePowerTool Guides & Solutions (Not For Questions) 2 22nd October 2013 09:23 PM
Notes package for taking the notes rashid47010 Fedora Focus 12 14th March 2013 09:43 PM
Notes on Installing & Configuring Fedora+Gnome3 (This WILL void the fedora warranty!) sillav Guides & Solutions (Not For Questions) 11 5th September 2012 03:56 AM


Current GMT-time: 10:37 (Friday, 18-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat