Tuesday, June 30, 2015

NTP Server CentOS 7

NTPD - Configure NTP Server

Install NTPd and Configure NTP server for time adjustment. NTP uses 123/UDP

[root@dlp ~]#
yum -y install ntp
[root@dlp ~]#
vi /etc/ntp.conf
# line 18: add the network range you allow to receive requests

restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
# change servers for synchronization

#
server 0.centos.pool.ntp.org iburst
#
server 1.centos.pool.ntp.org iburst
#
server 2.centos.pool.ntp.org iburst
#
server 3.centos.pool.ntp.org iburst
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp
[root@dlp ~]# systemctl start ntpd 

[root@dlp ~]# systemctl enable ntpd 

ln -s '/usr/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'
[root@dlp ~]# ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+ntp1.jst.mfeed. 172.29.1.100     2 u   29   64    1   18.826   -0.126   0.000
+ntp2.jst.mfeed. 172.29.2.50      2 u   28   64    1   21.592    0.018   0.000
*ntp3.jst.mfeed. 133.243.236.18   2 u   28   64    1   22.666   -1.033   0.000





Configure NTP Client : CentOS

It's the time synchronization on CentOS Client.

[root@dlp ~]# 
ntpdate ntp1.jst.mfeed.ad.jp 

9 Jul 00:46:26 ntpdate[18687]: adjust time server 210.173.160.27 offset -0.000716 sec


Related Posts:

  • DNS Server - 3 Start BindStart BIND. [root@dlp ~]# systemctl start named  [root@dlp ~]# systemctl enable named Change DNS settings that the server … Read More
  • SSH Server CentOS 7Configure SSH Server - Password Authentification Configure SSH Server to manage a server from the remore computer. SSH uses 22/TCP SSHd is installed… Read More
  • DNS Server - 2 Set ZoneCreate zone files that servers resolve IP address from domain name For internal zone This example uses internal address[10.0.0.0/24], domain name[ser… Read More
  • How To Setup Your Own VPN With PPTP Intro One of the commonly asked questions from our users is how to add another IP address to their server. You can assign your own private IP addres… Read More
  • DNS Server - 1 Install BINDInstall BIND to configure DNS server which resolves domain name or IP address. BIND uses 53/TCP,UDP Install BIND. [root@dlp ~]# yum -y inst… Read More

0 comments:

Post a Comment