当前位置: 代码迷 >> 综合 >> nmap ntp
  详细解决方案

nmap ntp

热度:42   发布时间:2024-01-10 22:26:37.0

 

[root@cnsz92vl09055 ~]# nmap -sU -p123 100.70.XX.XX

Starting Nmap 6.40 ( http://nmap.org ) at 2020-10-10 11:03 CST
Nmap scan report for 100.70.XX.XX
Host is up (0.00046s latency).
PORT    STATE         SERVICE
123/udp open|filtered ntp  --->表示有问题

 

[root@cnsz92vl09055 ~]# nmap -sU -p123 100.65.XX.XX

Starting Nmap 6.40 ( http://nmap.org ) at 2020-10-10 11:03 CST
Nmap scan report for 100.65.XX.XX
Host is up (0.00034s latency).
PORT    STATE SERVICE
123/udp open  ntp  -->正常

 

 

ntpstat 100.65.XX.XX
unsynchronised    --->未正常同步
  time server re-starting
   polling server every 8 s

 

[root@cnsz92pl00318 data]#  ntpstat 100.65.XX.XX
synchronised to NTP server (100.65.XX.XX) at stratum 5  --->正常同步
   time correct to within 10 ms
   polling server every 64 s
[root@cnsz92pl00318 data]# 

 

ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+100.65.XX.XX   100.67.XX.XX    4 u    9   64  377    0.157    2.213   0.111   --->正常输出
*100.65.XX.XX    100.67.XX.XX     4 u    8   64  377    0.132    2.154   0.135 

 

service ntpd restart