Wednesday 21 March 2018

How to configure NTP Client in Centos7/RHEL7

First, install ntp package on client machine:

[root@linuxcnf ~]# yum install ntp
[root@linuxcnf ~]#
 chkconfig ntpd on

Add the below configuration NTP site server IP in the /etc/ntp.conf file and comment out all the public NTP server pool.

[root@linuxcnf ~]# cat /etc/ntp.conf
server iburst

Start the ntpd service on the ntp client server and enable for auto start up:

[root@linuxcnf ~]# service ntpd start
[root@linuxcnf ~]# chkconfig ntpd on

Now check the ntp status:

[root@linuxcnf ~]# ntpstat
synchronised to NTP server ( at stratum 3
   time correct to within 129 ms
   polling server every 1024 s
[root@linuxcnf ~]# 

No comments:

Post a Comment