we can use linux ntp to sync all lan machines time from a linux ntp server.
after installing ntp rpm package, we will modify default ntp.conf file as below:
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
server 127.127.1.0
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
this cause the machine hardware clock to be used as our time source.
in client machine we just need to have this in ntp.conf file:
server 192.168.1.110
useful links:
http://linuxwave.blogspot.com/2007/08/setting-up-your-own-ntp-server.html
http://www.cyberciti.biz/tips/howto-linux-kill-and-logout-users.html
http://www.cyberciti.biz/faq/rhel-fedora-centos-configure-ntp-client-server
http://www.brennan.id.au/09-Network_Time_Protocol.html
linux ntp client and server configuration
Advertisement