1.
First you got to install the NTP package. I suggest you try using YUM for this
task:
#
yum install ntp
2.
Then you want to have the NTP service started at boot time:
# chkconfig --levels 235 ntpd on
3.
Specify the NTP server you’ll be synchronizing with. I suggest you use the NTP
server pool from ntp.org:
if the system is connected to internet. Otherwise use your ntp server in the company network.
#
ntpdate 0.pool.ntp.org
4.
Start the NTP service:
#
service ntpd start
********************************************************
Configure ntp client
in a machine.
vi /etc/ntp.conf
#server 127.x.x.1
#fudge
server 10.1.0.34
wq!
ntpdate 10.1.0.34
service ntpd start
chkconfig ntpd on
chkconfig --list ntpd
To view the status of time synching with the ntp server.
ntpq -pn
ntpstat