-->

Setting NTP Server And Client Debian 8




Configure NTP Server

NTP server for time adjustment. NTP uses 123/UDP.

root@fms:~# vi /etc/ntp.conf
# line 21: comment out
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
# change servers for synchronization
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp
# line 48: add the network range you allow to receive requests
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap

root@fms:~# systemctl restart ntp
root@fms:~# systemctl enable ntp

# show status
root@fms:~# ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp1.jst.mfeed. 172.29.1.50      2 u    2   64    1   20.084  -21.584   0.000
 ntp2.jst.mfeed. 172.29.3.50      2 u    1   64    1   20.614  -22.352   0.000
 ntp3.jst.mfeed. 172.29.3.100     2 u    -   64    1   22.385  -22.162   0.000

NTP Client

It's the time synchronization on Debian Client.
root@fms:~# aptitude -y install ntpdate
root@fms:~# ntpdate ntp1.jst.mfeed.ad.jp

2 May 02:22:28 ntpdate[2805]: adjust time server 210.173.160.27 offset -0.022077 sec

Berlangganan update artikel terbaru via email:

0 Response to "Setting NTP Server And Client Debian 8"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel