Configure NTP client server in linux

NTP client server configuration:-

STEP 1. Install the ntp rpm (Packages).
[root@localhost ~]# yum install ntp

STEP 2. Start NTP service.
[root@localhost~]# /etc/init.d/ntpd start

STEP 3. Check the NTP service status.
[root@localhost ~]# /etc/init.d/ntpd status

STEP 4. Open the NTP port 123 from server to out (Out Bound) in your hardware firewall (If you are using). This is UDP port.

STEP 5. Check the date and time, it is proper or not:-
[root@localhost ~]# date

STEP 6. Stop the NTP service.
[root@localhost ~]# /etc/init.d/ntpd stop

STEP 7. Syncing date and time from NTP servers, Run the below command.
[root@localhost ~]# ntpdate pool.ntp.org

STEP 8. Then start the NTP service.
[root@localhost~]# /etc/init.d/ntpd start

No comments:

Post a Comment