NTP does not sync RB clock

Hi

I have Routerboard 450g with RouterOS 3.23 version .

the clock time and date changes to 1997…as i restart mikrotik RB.

i have set NTP Client with different public IP of NTP servers but the clock does not sync with those NTP servers.


Does anybody know how to solve this problem ?


Thanks in advance

doesn’t this work at all? can you ping those NTP servers from your RB?

Yes … I can ping the NTP servers from RB .

type “/system ntp export” and paste it here

jan/01/2002 09:32:03 by RouterOS 3.23

software id = 97HB-LTTT

/system ntp client
set enabled=yes mode=unicast primary-ntp=128.2.136.71 secondary-ntp=0.0.0.0
/system ntp server
set broadcast=no enabled=no manycast=yes multicast=no

did you try to change the server? here are some:
http://support.ntp.org/bin/view/Servers/StratumOneTimeServers

Of course i did…but made no different.

any more help ?


hello frens,

make sure your firewall rule not close or reject UDP port 123, here our NTP server successed syncron all RBs dan any Workstation.

regards
Hasbullah.com

That is normal operation for RouterOS. Time and Date is not saved and there is no battery back up so it always boots with the default time and date (1997). Then it should sync to your ntp server after boot. This will show in the logs.

Set both a primary and secondary time server. Make sure you can ping them both.

Then type “/system ntp client print” and paste it here

Tom

enabled: yes
mode: unicast
primary-ntp: 218.45.21.199
secondary-ntp: 140.109.1.4
status: started

/system ntp client
set enabled=yes mode=unicast primary-ntp=128.2.136.71 secondary-ntp=0.0.0.0
/system ntp server
set broadcast=no enabled=no manycast=yes multicast=no

Did you install the optional NTP package? I see you have a “/system ntp server” entry. Maybe the option package has a bug in your version RouterOS?

i found this problem before and it was a routing problem


for example

i have a pppoe server set up and all my clients connets to it via pppoe

now i have a ip for server 172.17.100.1/30 and 10.0.0.1/24

but my pppoe clients get address automaticly whe it connect

example

10.0.0.40/24
now from the client side i can connect connect to bothaddresses and can ping both address

but if i tell my ntp client to sync with 172.17.100.1 sever it dont sync

but if i tell the client to sync with 10.0.0.1 the it syncs

so if you are useing your own ntp server and not an online ntps server look at the setup of your networks

as this took me over 3 months to works this out


on an internal network setup using pppoe server and client setup

hope this helps you out

i have just Hotspot on my RB.

i may found the problem , the problem is with the ISP and not the Mikrotik.

The ISP is blocking ntp port because of security reasons !!!

and doesn’t matter the clients face problem or not !

security reasons? Since when does knowing what time it is pose a security risk?

in sa when have the same thing that isps block anything thay want when thay want even if you pay for it

there answer would always be you are not our only client :slight_smile:

thats why i sync my time with gps


so i keep my own hardware working then all works fine if you leave others to do it it always gives problems

OK

we found the problem …

so what should i do for now ???

if you have access to an alternative ISP, you could set up an NTP relay there.

on the relay, set up an NTP client as normal, and set up a unicast NTP server.

But since you cannot modify the ports of the NTP client and server in MikroTik, you’ll need to use NAT to translate to an allowed port (eg. port 80).