How can we help?

Command line - MikroTik router example


Log into the device with Telnet or SSH. Enter privileged mode by typing enable and entering your enable password.

Enable DNS lookup

Make sure DNS lookups are enabled on your device so it can be synced to an NTP server. Run the following command. Replace with the DNS servers you’d like to use.

/ip dns set servers= 

Set the clock, time zone. and NTP server

Substitute the correct date, time, and time zone for your location. A full list of the options for <time-zone-name> is available in the TZ database name column here:

/system clock set date=JAN/01/2019
/system clock set time=14:30:00
/system clock set time-zone-autodetect=no
/system clock set time-zone-name=America/New_York

# date=JAN/01/2019, must be set to the current date of configuration
# time=14:30:00, must be set to the current time
# time-zone-name=America/New_York, must be set to your time-zone
Confirm the clock settings

To make sure the settings took effect, run the following command:

/system clock print
Enable an NTP server

Enable the NTP client using NTP servers from by running the following command:

/system ntp client set enabled=yes primary-ntp=[:resolve] secondary-ntp=[:resolve]


Was this article helpful?
9 out of 11 found this helpful
Have more questions? Submit a request