How to configure local NTP server in centOS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viveksingh211
    New Member
    • Nov 2013
    • 1

    How to configure local NTP server in centOS

    I follw the below steps to configure the ntp server but it is not working:

    [root@VivTimeSer ver ~]# vim /etc/ntp.conf

    restrict default kod nomodify notrap nopeer noquery

    restrict 127.0.0.1

    server 127.127.1.0

    fudge 127.127.1.0 stratum 10

    driftfile /var/lib/ntp/drift

    keys /etc/ntp/keys

    server 127.0.0.1
    restrict 10.10.2.0 mask 255.255.255.0 nomodify notrap noquery

    =============== =============== =============== ===== ========

    [root@Client1 ~]# vim /etc/ntp.conf

    driftfile /var/lib/ntp/drift

    restrict default kod nomodify notrap nopeer noquery

    restrict -6 default kod nomodify notrap nopeer noquery

    restrict 127.0.0.1

    restrict -6 ::1

    includefile /etc/ntp/crypto/pw

    keys /etc/ntp/keys

    server 10.10.2.42
    restrict 10.10.2.0 mask 255.255.255.0 nomodify notrap noquery

    =============== =============== =============== ===== ======
    OS = CentOS-6.4
    But When i Try to sync it give below message
    ntpdate -u 10.10.2.43
    12 Nov 15:08:51 ntpdate[2743]: no server suitable for synchronization found

    =============== =============== =============== ===== =====

    Guide me how I can resolove this
    =============== =============== =============== ===== =====
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    I searched "centos configure ntp" and none of the configuration guides mentioned editing the config files. I'm assuming you've already installed the package as you have the files on the server, so have you run the following command?

    Code:
    ntpdate pool.ntp.org

    Comment

    Working...