Forum Discussion

yuanqiang_22112's avatar
yuanqiang_22112
Icon for Nimbostratus rankNimbostratus
May 14, 2016

ntp question

Hello everyone: I configure NTP server ,F5 services display list ntp is running ,but other servers is running for 1 hours! If ntp display is normal ?

 

  • yes, for 'ntpd' non-core daemon status, it will show "running" & its expected. Need not to worry..!!

     

  • Hello,

     

    It looks like that some services restarted and they have an uptime of 1 hour. But the history message indicating running... Is normal for ntp

     

  • Hello,

     

    It looks like that some services restarted and they have an uptime of 1 hour. But the history message indicating running... Is normal for ntp

     

  • yes, for 'ntpd' non-core daemon status, it will show "running" & its expected. Need not to worry..!!

     

    • yuanqiang_22112's avatar
      yuanqiang_22112
      Icon for Nimbostratus rankNimbostratus
      Ajay ,I found the ntp server not work ,I add more NTP SERVER to the list ,but time still wrong ! F5 can reach to these NTP servers ,how can troubleshooting ?
    • Ajay_102032's avatar
      Ajay_102032
      Icon for Cirrus rankCirrus
      lb will use the mgmt interface to reach ntp server ..do a trace & capture tcpdump to see 123 traffic (UDP). Do some checks as in https://support.f5.com/kb/en-us/solutions/public/10000/200/sol10240.html see if you can sort it out with the test result as stated in above url. There are multiple reasons depending upon your infrastructure. is 123 allowed in firewall is in between f5 & ntp server ?
  • Try adding a management route and make sure the NTP server is reachable.

     

    • Niels_van_Sluis's avatar
      Niels_van_Sluis
      Icon for MVP rankMVP
      Your output shows a stratum of 16 (st). This indicates that your box can't sync with the specified ntp server. Try restarting the ntp daemon. show /sys service ntpd restart /sys service ntpd
    • yuanqiang_22112's avatar
      yuanqiang_22112
      Icon for Nimbostratus rankNimbostratus
      @niels vlan sluis ,I have accorded to what you said to operate,the result is the same still . I do the experiment in the VE platform.
  • Also make sure that NTP traffic isn't blocked by any firewall. Below some sample commands and output to troubleshoot your NTP problem.

    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  tmsh show /sys service ntpd
    ntpd (pid  27976) is running...
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  tmsh stop /sys service ntpd
    Shutting down ntpd: [  OK  ]
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  tcpdump -nni 0.0:nnn host 192.168.1.5 and port 123 &
    [1] 30708
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on 0.0:nnn, link-type EN10MB (Ethernet), capture size 96 bytes
    
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  ntpdate -q 192.168.1.5
    10:25:22.453506 IP 10.10.10.10.33999 > 192.168.1.5.123: NTPv4, Client, length 48
    10:25:22.468377 IP 192.168.1.5.123 > 10.10.10.10.33999: NTPv4, Server, length 48
    10:25:22.469014 IP 10.10.10.10.33999 > 192.168.1.5.123: NTPv4, Client, length 48
    10:25:23.453751 IP 10.10.10.10.33999 > 192.168.1.5.123: NTPv4, Client, length 48
    10:25:23.468290 IP 192.168.1.5.123 > 10.10.10.10.33999: NTPv4, Server, length 48
    10:25:24.453573 IP 10.10.10.10.33999 > 192.168.1.5.123: NTPv4, Client, length 48
    server 192.168.1.5, stratum 1, offset 0.000086, delay 0.04105
    16 May 10:25:25 ntpdate[30728]: adjust time server 192.168.1.5 offset 0.000086 sec
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  jobs
    [1]+  Running                 tcpdump -nni 0.0:nnn host 192.168.1.5 and port 123 &
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  kill %1
    
    6 packets captured
    6 packets received by filter
    0 packets dropped by kernel
    [1]+  Done                    tcpdump -nni 0.0:nnn host 192.168.1.5 and port 123
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  tmsh start /sys service ntpd
    Starting ntpd: [  OK  ]
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  tmsh show /sys service ntpd
    ntpd (pid  30809) is running...
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config  ntpq -np
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
    *192.168.1.5   .PPS.            1 u    3   64    1   14.151   -0.303   0.298
    [root@nielsvs-bigip:ModuleNotLicensed:Active:Standalone] config