SNTP client

SNTP client is included in the system package. RouterOS implements SNTP protocol defined in RFC4330. Manycast mode is not supported. NTP server and a NTP client is included in the separate ntp package, that is not installed by default.

Client configuration is located in the /system ntp client console path, and the "System > NTP Client" WinBox window. This configuration is shared by the SNTP client implementation in the system package and the NTP client implementation in the ntp package. When ntp package is installed and enabled, the SNTP client is disabled automatically.


PropertyDesciption
enabled (yes, no default: no)enable SNTP client for time sychronisation
mode (broadcast,unciast , filed is read-only)Mode that SNTP client will operate in. If no NTP servers are configured broadcast' mode will be used. If there is dynamic or static NTP server ip address or FQDN used it will automatically switch to unciast mode"
primary-ntp (IP address default: 0.0.0.0)IP address of NTP server that has to be used for time synchronisation. If both values are non-zero, then SNTP client will alternate between the two server addresses, switching to the other when request to the current server times out or when the "KoD" packet is received, indicating that server is not willing to respond to requests from this client.
secondary-ntp (IP address default: 0.0.0.0)see primary-ntp
server-dns-names (Comma separated domain name list default: )To set NTP server using its domain name. Domain name will be resolved each time NTP request is sent. Router has to have /ip dns configured.


Status

Last received packet information

Values of the following properties are reset when the SNTP client is stopped or restarted, either because of a configuration change, or because of a network error.

Log messages

SNTP client can produce the following log messages. See article "log" on how to set up logging and how to inspect logs.

Explanation of log message fields

NOTE: the above logging rules work only with the built-in SNTP client, the separate NTP package doesn't have any logging facilities.

NTP client and server

To use NTP client and server, ntp package must be installed and enabled.

Client settings

Client configuration is located in /system ntp client.

Server settings

Server configuration is located in /system ntp server.

Example:

Set up NTP server for local network that is 192.168.88.0/24

/system ntp server set broadcast=yes broadcast-addresses=192.168.88.255 enabled=yes manycast=no