FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    637

    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

  2. #2
    Join Date
    Mar 2017
    Location
    USA
    Posts
    39

    Re: My notes on configuring NTPd

    Good write-up. Thanks.

    Tim

  3. #3
    Join Date
    Feb 2010
    Posts
    637

    Re: My notes on configuring NTPd

    Quote Originally Posted by tim8723
    Good write-up. Thanks.

    Tim
    You are most welcome.

  4. #4
    Join Date
    Jun 2004
    Location
    Laurel, MD USA
    Posts
    7,172

    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

  5. #5
    Join Date
    Feb 2010
    Posts
    637

    Re: My notes on configuring NTPd

    Quote Originally Posted by marko
    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.

  6. #6
    Join Date
    Jun 2004
    Location
    Laurel, MD USA
    Posts
    7,172

    Re: My notes on configuring NTPd

    Quote Originally Posted by ToddAndMargo
    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.

  7. #7
    Join Date
    Feb 2010
    Posts
    637

    Re: My notes on configuring NTPd

    Quote Originally Posted by marko
    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:

    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.

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •