Setting NTP Client Mikrotik OS6 Dan OS7

Kategori: Artikel Mikrotik, Skrip Mikrotik , 50 Views

Berikut pengaturan dasar NTP Client untuk MikroTik RouterOS v6 dan RouterOS v7 (dua versi berbeda karena lokasi menu berubah).


1. NTP Client — RouterOS v6

Pada RouterOS v6, NTP Client ada di menu /system ntp client (paket system atau system + ntp).

Gunakan skrip berikut:

# ===========================
# NTP CLIENT — RouterOS v6
# ===========================
/system ntp client set enabled=yes \
    primary-ntp=203.89.146.23 \
    secondary-ntp=1.1.1.1

# Opsional: zona waktu
/system clock set time-zone-autodetect=yes

Contoh server NTP lokal/umum:

  • 203.89.146.23 (id.pool.ntp.org)
  • 0.id.pool.ntp.org
  • 1.id.pool.ntp.org

2. NTP Client — RouterOS v7

Di RouterOS v7, menu berubah ke /system ntp client dengan sub-menu servers.

Skripnya:

# ===========================
# NTP CLIENT — RouterOS v7
# ===========================
/system ntp client set enabled=yes mode=unicast

/system ntp client servers add address=203.89.146.23
/system ntp client servers add address=1.id.pool.ntp.org

# Opsional: zona waktu otomatis
/system clock set time-zone-autodetect=yes

Perbedaan besar v7 vs v6:

  • v7 memakai daftar server:
    /system ntp client servers add ...
  • v6 langsung set primary/secondary.

🔍 Cara Mengecek Status NTP

OS6:

/system ntp client print

OS7:

/system ntp client print
/system ntp client servers print

Jika status sudah synchronized, berarti sinkronisasi berhasil.