Linux Red Hat Configure an NTP Client

15 Jan

steps to configure an NTP Client in Linux RHEL 4.5

1)Install ntp
# yum install ntp

2)configure an NTP Client
# vi /etc/ntp.conf

add in the # — OUR TIMESERVERS —– section
server or
server <ip>

the hostname or IP address of the site NTP server. If your ntp server located at, enter server You can also use public ntp server located at

You can also run ntpd using cron:
echo ’30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp’ > /etc/cron.d/ntpd
“that what i use”

3) restart the service

# service ntp restart
#etc/init.d/ntpd restart

Monitoring and Troubleshooting
#ntpq -p
The labeled columns for this are:
– remote: The IP address or DNS name of the remote server
-refid: An identification of the type of the reference clock.
-st: The “stratum” or level of the server: for almost all systems, 2 is great. Your local system will have a higher number.
-t: The type of service. Your setup will show “l” for local on your local system, or “u” for “unicast” for communicating with remote servers.
-when: This is the number of seconds since the server was last heard from. After a couple of minutes of operation your server should start to report numeric values here.

#tcpdump udp port 123

#ntpdate -q <ntp server name OR ntp servr ip>

ntpdate -q





configure NTP client “GUI”

issue the following command line:

# system-config-date

this will open a window called “Date/Time proprieties”

1) enable the NTP

2) enter the hostname or IP of NTP server

3) from advanced options :un-check: Use Local time source and check: Enable NTP brodcast


Muhammad Rashed

1 Comment

Posted by on January 15, 2013 in OS, Tips


Tags: , , , , ,

One Response to Linux Red Hat Configure an NTP Client

Leave a Reply