Professional Documents
Culture Documents
RouterOS uses data from the tz database, Most of the time zones from this database are
included, and have the same names. Because local time on the router is used mostly for
timestamping and time-dependant configuration, and not for historical date calculations, time
zone information about past years is not included. Currently only information starting from
2005 is included.
Following settings are available in the /system clock console path, and in the "Time" tab of
the "System > Clock" WinBox window:
date (mmm/DD/YYYY, where mmm - month, one of jan, feb, mar, apr, may, jun, jul,
aug, sep, oct, nov, dec, DD - date, 00..31, YYYY - year, 1970..2037) : date and time
show current local time on the router. These values can be adjusted using the set
command. Local time cannot, however, be exported, and is not stored with the rest of
the configuration.
time-zone-autodetect (yes or no; default: yes) : This is new feature, starting from
6.27. If enabled, time zone will be set automaticaly.
Startup date and time is jan/02/1970 00:00:00 [+|-]gmt-offset. If router has a battery (for
example RB230), then BIOS stored time is used as a startup time.
dst-active (yes or no>; read-only property) : This property has value yes while
daylight saving time of the current time zone is active.
time-zone, dst-delta ([+|-]HH:MM - time offset in hours and minutes, leading plus
sign is optional; default value: +00:00) : While DST is not active use GMT offset
time-zone. While DST is active use GMT offset time-zone + dst-delta.
dst-start, dst-end (mmm/DD/YYYY HH:MM:SS - date and time, either date or time
can be ommited in the set command; default value: jan/01/1970 00:00:00) : Local
time when DST starts and ends.
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.
Property
Desciption
enabled (yes, no default: enable SNTP client for time sychronisation
no)
mode (broadcast,unciast , Mode that SNTP client will operate in. If no NTP servers are
filed is read-only)
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 IP address of NTP server that has to be used for time
default: 0.0.0.0)
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.
see primary-ntp
secondary-ntp (IP
address default: 0.0.0.0)
server-dns-names
To set NTP server using its domain name. Domain name will be
(Comma separated
resolved each time NTP request is sent. Router has to have /ip
domain name list default: dns configured.
)
Status
Log messages
SNTP client can produce the following log messages. See article "log" on how to set up
logging and how to inspect logs.
PKT - dump of NTP packet. If packet is shorter than the minimum 48 bytes, it is
dumped as a hexadecimal string. Otherwise, packet is dumped as a list of field names
and values, one per log line. Names of fields follow RFC4330.
IP - remote IP address.
NOTE: the above logging rules work only with the built-in SNTP client, the separate NTP
package doesn't have any logging facilities.
Client settings
Client configuration is located in /system ntp client.
Server settings
Server configuration is located in /system ntp server.
broadcast (yes or no; default value: no) - enable certain NTP server mode, for this
mode to work you have to set up broadcast-addresses field
multicast (yes or no; default value: no) - enable certain NTP server mode
manycast (yes or no; default value: no) - enable certain NTP server mode
broadcast-addresses (IP address; default value: ) - set broadcast address to use for
NTP server broadcast mode
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
Categories:
Manual
System
Unfinished
Navigation menu
Log in
Manual
Discussion
Read
View source
View history
Main Page
Recent changes
Tools
Related changes
Special pages
Printable version
Permanent link
Page information