Skip to content
MikroTik RouterOS Docs

Clock and NTP Configuration

For the impatient: enable NTP to keep your router’s clock accurate.

/system/ntp/client/set enabled=yes
/system/ntp/client/servers/add address=pool.ntp.org
/system/clock/set time-zone-name=America/New_York

Verify with:

/system/ntp/client/print

Look for status: synchronized with a synced server.

What this does: Configures the router’s system clock for accurate time, timezone settings, and automatic synchronization via NTP (Network Time Protocol).

When to use this:

  • Every router deployment (accurate time is essential)
  • Scheduled tasks and time-based firewall rules
  • Certificate validation (SSL/TLS requires correct time)
  • Log analysis and troubleshooting
  • Any feature that depends on timestamps

Prerequisites:

  • Internet connectivity (for external NTP servers)
  • DNS configured (if using hostnames like pool.ntp.org)
  • Firewall allowing outbound UDP port 123

Configure your local time zone for correct local time display:

/system/clock/set time-zone-name=America/New_York

Common time zones:

  • America/New_York (US Eastern)
  • America/Los_Angeles (US Pacific)
  • Europe/London (UK)
  • Europe/Berlin (Central Europe)
  • Asia/Tokyo (Japan)
  • Australia/Sydney (Australia Eastern)

Or enable automatic detection:

/system/clock/set time-zone-autodetect=yes

Enable NTP for automatic time synchronization:

/system/ntp/client/set enabled=yes

Add reliable NTP servers (recommended: use multiple for redundancy):

/system/ntp/client/servers/add address=pool.ntp.org
/system/ntp/client/servers/add address=time.google.com
/system/ntp/client/servers/add address=time.cloudflare.com

Check that NTP is working:

/system/ntp/client/print

Expected output:

enabled: yes
mode: unicast
status: synchronized
synced-server: 216.239.35.0
synced-stratum: 1
system-offset: 0.005 s

Key indicators: status: synchronized with a valid synced-server.

Disable DHCP-provided NTP servers and use only your configured servers:

# Disable NTP from DHCP
/ip/dhcp-client/set [find] use-peer-ntp=no
# Add your preferred servers
/system/ntp/client/servers/add address=time.nist.gov
/system/ntp/client/servers/add address=time.google.com

Check the current date, time, and timezone:

/system/clock/print

Output:

time: 14:32:45
date: jan/15/2026
time-zone-name: America/New_York
gmt-offset: -05:00
dst-active: no

Scenario: Manual Time Zone (Custom UTC Offset)

Section titled “Scenario: Manual Time Zone (Custom UTC Offset)”

For locations not in the TZ database:

/system/clock/set time-zone-name=manual
/system/clock/manual/set time-zone=+05:30

Scenario: Configure Daylight Saving Time Manually

Section titled “Scenario: Configure Daylight Saving Time Manually”

If using manual timezone with DST:

/system/clock/manual/set dst-delta=+01:00 \
dst-start="mar/08/2026 02:00:00" \
dst-end="nov/01/2026 02:00:00"

For isolated networks without NTP access:

/system/clock/set date=jan/15/2026 time=14:30:00

Note: Manual time is NOT saved in configuration exports.

Serve time to network clients:

/system/ntp/server/set enabled=yes

With local clock fallback (when no upstream NTP):

/system/ntp/server/set enabled=yes use-local-clock=yes local-clock-stratum=10

View detailed NTP peer information:

/system/ntp/monitor-peers

Shows offset, delay, jitter, and stratum for each server.

Confirm your clock configuration is working:

/system/clock/print

Expected: Correct date, time, and timezone.

/system/ntp/client/print

Expected: status: synchronized with synced-server IP.

/system/ntp/client/servers/print

Expected: Servers listed; check resolved-address for FQDN entries.

/system/ntp/monitor-peers

Expected: Low offset (< 100ms), low jitter, stratum < 5.

SymptomCauseSolution
Status stuck on “waiting”Firewall blocking UDP 123Allow outbound UDP 123 in firewall
Status stuck on “waiting”DNS not configuredAdd DNS servers: /ip/dns/set servers=8.8.8.8
Status stuck on “waiting”No route to NTP serverVerify internet connectivity
Time resets to 1970 after rebootNo RTC battery on deviceEnable NTP with iburst=yes for fast sync at boot
Wrong time displayedTimezone not setSet correct time-zone-name
Certificate errorsClock set to wrong dateFix NTP sync before using HTTPS/SSL
SNTP menu missing (v7)v7 merged SNTP into NTPUse /system/ntp/client instead
”Server IP mismatch” errorsLoad-balanced NTP serversAdd multiple servers; some will work
Clock jumps frequentlyPoor NTP server or hardware driftUse reliable servers; increase min-poll
/log/print where topics~"ntp"

Look for “change time” messages (normal during initial sync) or error messages.

Common Mistakes

  • Don’t forget timezone - UTC is used if not configured; logs will show wrong local time
  • Don’t rely on manual time - It’s not exported with configuration and resets on reboot
  • Don’t block UDP 123 - NTP requires outbound access on this port
  • Don’t use local clock as primary - Internal clock is unreliable; always sync with NTP
  • Don’t set low stratum for local clock - Use stratum 10+ to prevent clients preferring it over real NTP
StatusDescription
synchronizedSuccessfully synced with NTP server
waitingAttempting to contact NTP servers
stoppedNTP client is disabled
using-local-clockNo external sync; using internal clock
  • NTP Client - automatic time synchronization
  • NTP Server - serve time to network clients
  • IP Cloud - alternative time sync via MikroTik Cloud
PropertyTypeDefaultDescription
timeHH:MM:SS-Current local time
datemmm/DD/YYYY-Current date
time-zone-namestringmanualTZ database timezone name
time-zone-autodetectyes/noyesAuto-detect via MikroTik Cloud
gmt-offsettime-Read-only: current GMT offset
dst-activeyes/no-Read-only: DST currently active

NTP Client Properties (/system/ntp/client)

Section titled “NTP Client Properties (/system/ntp/client)”
PropertyTypeDefaultDescription
enabledyes/nonoEnable NTP client
modeenumunicastbroadcast/manycast/multicast/unicast
statusstring-Read-only: synchronization status
synced-serverIP-Read-only: current NTP server
system-offsettime-Read-only: offset from NTP server

NTP Server Properties (/system/ntp/client/servers)

Section titled “NTP Server Properties (/system/ntp/client/servers)”
PropertyTypeDefaultDescription
addressIP/FQDN-NTP server address
min-poll3-176Min poll interval (2^n seconds)
max-poll3-1710Max poll interval (2^n seconds)
iburstyes/noyesRapid burst at startup
CommandDescription
/system/clock/printDisplay current date, time, and timezone
/system/clock/setSet time, date, or timezone
/system/clock/manual/setConfigure manual timezone offset and DST
/system/ntp/client/printShow NTP client status
/system/ntp/client/setEnable/configure NTP client
/system/ntp/client/servers/addAdd an NTP server
/system/ntp/client/servers/printList configured NTP servers
/system/ntp/client/servers/removeRemove an NTP server
/system/ntp/monitor-peersReal-time NTP peer monitoring
/system/ntp/server/setConfigure router as NTP server
/system/ntp/server/printShow NTP server configuration

Clock and NTP configuration ensures accurate system time for logging, certificates, and scheduled tasks:

  1. Set timezone with /system/clock/set time-zone-name=<zone> or enable auto-detection
  2. Enable NTP client with /system/ntp/client/set enabled=yes
  3. Add NTP servers with /system/ntp/client/servers/add address=pool.ntp.org
  4. Verify with /system/ntp/client/print for status: synchronized

Key points:

  • Always use NTP for production systems - internal clock is unreliable
  • Many MikroTik devices lack RTC battery; time resets to 1970 on power loss
  • Set timezone correctly or logs will show wrong local time
  • Firewall must allow outbound UDP port 123 for NTP
  • Manual time settings are NOT exported in configuration backups
  • Use multiple NTP servers for redundancy (pool.ntp.org, time.google.com, time.cloudflare.com)
  • v7 integrated SNTP into NTP client; replace /system/sntp/client with /system/ntp/client