101
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
keys /etc/ntp/keys
Start of the NTP
[bash]#ntpd –b
If this command does not work, use the following:
[bash]#ntp –b
Figure 127: Bash ntp –b
You should now set the runlevels, which are required for the NTPD service:
chkconfig --level 2345 ntpd on
/etc/init.d/ntpd restart
or
chkconfig --level 2345 ntp on
/etc/init.d/ntp restart
Figure 128: Runlevel
You can check with the following command, which runlevels are active::
[bash]# chkconfig --list ntpd
or
[bash]# chkconfig --list ntp