NTP Client Configuration in LINUX

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

NTP client configuration in LINUX

Edit the file /etc/ntp.conf and add the NTP servers IP address in the following format. server <server IP> If we have multiple NTP servers then make one server as a preferred server. Under timeservers, add the entries as following. server <NTP server IP> prefer server <NTP server IP> server <NTP server IP> #chkconfig --list |grep -i ntpd will list the run level status of the service ntpd Eg:ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

#chkconfig ntpd on updates run level information for ntp services. It will switch on the service levels 2, 3 and 5. ntpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off

#service ntpd start to start the NTP service. #ntpstat this command will show network time synchronization status. U can see, the time is synchronized messages. This will take 5 to 6 minutes sometimes to sync.

#ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct time. It must be run as root on the local host.

You might also like