Total Pageviews

Translate

March 12, 2015

How to configure you as a NTP (Network Time Protocol) client in the redhat7 linux / rhel7 for clock synchronization

by Anonymous  |  in servers and security at  12:28 AM

Configuration of NTP in rhel7:

 Requirements:

1) you need a active NTP sever for client configuration.
2) conform that you you have prepared your YUM for installation.
3) Ping server to check the server is active or not.( For example your server is :  station.rhel7.lab.com)

Commands and description in Red hat 7 for ntp:

1) Install NTP : yum install ntp
2) Configure NTP : Open ntp file - vim /etc/ntp.conf
Now edit this file. Comment all four severs lines and write your server line like this- 
   #server 0.rhel.pool.ntp.org iburst
   #server 1.rhel.pool.ntp.org iburst
   #server 2.rhel.pool.ntp.org iburst
   #server 3.rhel.pool.ntp.org iburst
   server       station.rhel7.lab.com 
3) Stop ntpd service and match your time from server - 
   systemctl stop ntpd
   ntpdate -b  station.rhel7.lab.com
   systemctl restart ntpd
   systemctl enable ntpd
4)Write this restart command in /etc/rc.d/rc.local 
   vim /etc/rc.d/rc.local  
and write in last line
   systemctl restart ntpd
5) Make this file executable and restart rc-local  service
   chmod /etc/rc.d/rc.local 
   systemctl restart rc-local

About NTP :

Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use.

0 comments:

Like Our Facebook Page

Nitin Sharma's DEV Profile
Proudly Designed by 4hathacker.