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 192.168.43.14
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 (192.168.43.14) at stratum 3
time correct to within 129 ms
polling server every 1024 s
[root@linuxcnf ~]#
|
No comments:
Post a Comment