IT Japan

NTPd : NTP서버의 설정 본문

카테고리 없음

NTPd : NTP서버의 설정

swhwang 2016. 4. 14. 17:38
반응형


 


[1]

NTPd 의 인스톨과 설정입니다.

 [root@dlp ~]# yum -y install ntp

[root@dlp ~]# vi /etc/ntp.conf

# 18行目: 시각동기를 허가하는 범위를 추가
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap

# 동기를 하는 서버를 변경
#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 iburst
server ntp2.jst.mfeed.ad.jp iburst
server ntp3.jst.mfeed.ad.jp iburst

[root@dlp ~]# systemctl start ntpd
[root@dlp ~]# systemctl enable ntpd



[2]Firewalld 를 유효로 하고있는 경우는, NTP서비스의 허가가 필요합니다. 또, NTP는 123/UDP를 사용합니다.

[root@dlp ~]# firewall-cmd --add-service=ntp --permanent
success
[root@dlp ~]# firewall-cmd --reload
success


[3]    동작확인을 하고 있습니다. 이하와 같이 결과가 나오면 OK입니다.


[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



반응형
Comments