Page 1 of 1

Synch clock with windows server Linux

Posted: Sat Nov 21, 2015 6:33 am
by admin
1 - vi /etc/ntp.conf

Comment out the existing ntp servers:
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.centos.pool.ntp.org
#server 1.centos.pool.ntp.org
#server 2.centos.pool.ntp.org

<<IP address of windows server >>

Exit with saving.

2 - /etc/init.d/ntpd restart (restarting ntpd)

3 - ntpdate -u <<IP address of windows server >>

4 - Verify ntp with ntpq -p

5 - Make changes permanent in order to work if you restart the server,

chkconfig --levels 2345 ntpd on