TimeZone DHCP boot option

Hi, guys!

I need to set time zone (time offset, GMT +3) over DHCP options.
My config is:

/ip dhcp-server option
add code=2 name=timezone value=0x2A30

but doesn’t work.

Do you have any ideas?

Hi docto,
I’ve checked your code with Wiki http://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server#DHCP_Options
and it’s value by http://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xml
It’s seems to be correct.
If it doesn’t fix, Set NTP client for RB and run it’s NTP server, then in / ip dhcp-server Network, set Your RB IP Address for your client as a NTP server.

enable ‘dhcp,debug’ logs and see whether client requests that option. if not - it won’t be sent to the client

Thanks for good idea!

My log is:
18:35:13 dhcp,debug,packet dhcp1 received request with id 1941298043 from 0.0.0.0
18:35:13 dhcp,debug,packet secs = 10
18:35:13 dhcp,debug,packet ciaddr = 0.0.0.0
18:35:13 dhcp,debug,packet chaddr = 00:02:02:34:D0:84
18:35:13 dhcp,debug,packet Msg-Type = request
18:35:13 dhcp,debug,packet Unknown(57) = 02-24
18:35:13 dhcp,debug,packet Server-Id = 192.168.251.17
18:35:13 dhcp,debug,packet Address-Request = 192.168.251.22
18:35:13 dhcp,debug,packet Address-Time = 259200
18:35:13 dhcp,debug,packet Parameter-List = Subnet-Mask,Unknown(2),Router,Domain-Server,Host-Name,Domain-Name,Unknown(17),Unknown(23),Unknown(28),Unknown(29),
Unknown(31),Static-Route,Unknown(40),Unknown(41),NTP-Server,Vendor-Specific
18:35:13 dhcp,debug,packet Vendor-Specific = 03-09-61-6D-69-6E-65-74-31-33-30-04-05-66-69-73-79-73
18:35:13 dhcp,debug,packet Class-Id = “Aminoaminet130fisys”
18:35:13 dhcp,debug,packet Client-Id = 01-00-02-02-34-D0-84
18:35:13 dhcp,info dhcp1 assigned 192.168.251.22 to 00:02:02:34:D0:84
18:35:13 dhcp,debug,packet dhcp1 sending ack with id 1941298043 to 192.168.251.22
18:35:13 dhcp,debug,packet ciaddr = 0.0.0.0
18:35:13 dhcp,debug,packet yiaddr = 192.168.251.22
18:35:13 dhcp,debug,packet siaddr = 192.168.251.17
18:35:13 dhcp,debug,packet chaddr = 00:02:02:34:D0:84
18:35:13 dhcp,debug,packet Msg-Type = ack
18:35:13 dhcp,debug,packet Server-Id = 192.168.251.17
18:35:13 dhcp,debug,packet Address-Time = 259200
18:35:13 dhcp,debug,packet Subnet-Mask = 255.255.255.248
18:35:13 dhcp,debug,packet Router = 192.168.251.17
18:35:13 dhcp,debug,packet Domain-Server = 10.10.0.8
18:35:13 dhcp,debug,packet NTP-Server = 192.168.251.17


Devise ask Option 2, but DHCP server in answere don’t send replay for it.
Why?..
Any ideas?

just to be sure: have you added your option to your Network entry?..

/ip dhcp-server network
add address=bla-bla-bla dhcp-option=timezone

/ip dhcp-server option
add code=2 name=timezone value=0x2A30

use value=0x00002A30 instead of value=0x2A30