Documentation about the ncm-ntpd component

Configure the ntpd daemon to be started, at run time and to use the correct name servers.

Configure state

enable the ntp service to run at 3,4,5 runlevels


ntp_server0 =

ntp_server1 =

ntp_server2 =

client_networks = undef

Modifying the ntp.conf

change the ntp server domains to ips with the gethostbyname() function ( /etc/ntp.conf understands both fqdn and IPs so we probably wont have any problem writing the fqdns )

  • Remove lines, "restrict default nomodify notrap nopeer noquery","restrict","restrict ::1" and add "restrict default ignore", in order to remove restriction
  • Remove all defined servers( e.g. in Centos server iburst ) and add our ntp servers e.g for, "server", "restrict mask nomodify notrap noquery"
  • Remove fudge servers (e.g server " # added by /sbin/dhclient-script") and just add localhost in case of network outages, "fudge stratum 10"
  • allow some debugging via ntpdc, but with no modifications, "restrict nomodify notrap"
  • add our own clients in case we are a real "server", "server", "restrict <<IP>> mask <<MASK>> nomodify notrap"
Example of a Centos Box for the /etc/ntp.conf file

$diff /etc/ntp.conf.old /etc/ntp.conf

< restrict default nomodify notrap nopeer noquery
< restrict
< restrict ::1
< server iburst
< server iburst
< server iburst
< server iburst
< server # added by /sbin/dhclient-script
< server # added by /sbin/dhclient-script
> # This file is under NCM-ntpd control.
> restrict default ignore
> server
> restrict mask nomodify notrap noquery
> server
> restrict mask nomodify notrap noquery
> server
> restrict mask nomodify notrap noquery
> fudge stratum 10
> restrict nomodify notrap

Modifying the /etc/ntp/step-tickers

Rewrite everything with the ntp servers IPs


$ cat /etc/ntp/step-tickers

Reload the ntp service if the files are changed.

Unconfigure State

Nothing done to unconfigure the ntp component.

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2015-10-27 - unknown
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback