client
system/ntp/client
Type: Settings Directory
Network Time Protocol (NTP) client settings. The client synchronizes the router's clock with one or more NTP servers. Static servers are set in servers or in the servers list; the DHCP client adds servers dynamically when its use-peer-ntp is enabled. See the NTP guide.
| Argument | Type | Description |
|---|---|---|
| enabled | bool | Enable the NTP client. When disabled, status is stopped. Default: no. |
| mode | enum (unicast | broadcast | multicast | manycast) | How the client gets time from servers:
|
| servers | multi { server-list: address (flags=46D) } | Space-separated list of NTP servers. Accepts IPv4 and IPv6 addresses (with @vrf or %interface suffixes where needed) and domain names, which are resolved with /ip/dns. Servers from this list also appear in the servers list alongside dynamic entries. |
| vrf | enum | VRF used for communication with the servers. Default: main. |
| Read-only Argument | Type | Description |
|---|---|---|
| freq-drift | num | Estimated frequency drift of the local clock, in PPM. Reset with reset-freq-drift. |
| status | enum (stopped | waiting | synchronized | using-local-clock) | Current client state:
|
| synced-server | address (flags=46D) | Address of the server the clock is synchronized to. 127.127.1.0 when the local clock is the reference. |
| synced-stratum | num | Stratum of the synchronized source. Primary servers are stratum 1; each synchronization step adds one. |
| system-offset | num | Offset between the local clock and the NTP source; shown in milliseconds when read with print. |