set enabled=yes primary-ntp=210.0.235.14 secondary-ntp=203.129.68.14
複製代碼
3. Check the system ntp client
[admin@MikroTik] > /system ntp client print
enabled: yes
mode: broadcast
primary-ntp: 210.0.235.14
secondary-ntp: 203.129.68.14
複製代碼
4. When mode: broadcast, it waits for the ntp server to send the time information to RouterBoard. We need to set mode=unicast that means that we send a request to NTP server.
[admin@MikroTik] /system ntp client set mode=unicast
複製代碼
5. Print the time again, which shows more environment variables
[admin@MikroTik] /system ntp client print
enabled: yes
mode: unicast
primary-ntp: 210.0.235.14
secondary-ntp: 203.129.68.14
poll-interval: 32s
active-server: 203.129.68.14
last-update-from: 203.129.68.14
last-update-before: 5s640ms
last-adjustment: 2239w16h52m53s407ms960us
複製代碼
6. Show the time again, it indicates that the time is revised but the time-zone if incorrect.