1
Vote

DHCP Errors against Mikrotik Routers

description

I'm running mIP on Cerberus, trying to get a DHCP address from the Mikrotik Router (running Routeros 6.x).

It doesn't work - the router sends back a NAK. I attach the log from the router. I think the issue relates to the Unknown(57) = 02-EE detected by the router.

Any ideas? I'll get on with fixing it myself and report back in due course if no-one has any idea.
Dec/04/2013 07:11:19 dhcp,debug,packet dhcp-local received discover with id 2783593540 from 0.0.0.0
Dec/04/2013 07:11:19 dhcp,debug,packet     secs = 11
Dec/04/2013 07:11:19 dhcp,debug,packet     ciaddr = 0.0.0.0
Dec/04/2013 07:11:19 dhcp,debug,packet     chaddr = 5C:86:4A:00:00:DD
Dec/04/2013 07:11:19 dhcp,debug,packet     Msg-Type = discover
Dec/04/2013 07:11:19 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Unknown(119),Unknown(252)
Dec/04/2013 07:11:19 dhcp,debug,packet     Unknown(57) = 02-EE
Dec/04/2013 07:11:19 dhcp,debug,packet     Client-Id = 01-5C-86-4A-00-00-DD
Dec/04/2013 07:11:19 dhcp,debug,packet     Address-Time = 7776000
Dec/04/2013 07:11:19 dhcp,debug,packet     Host-Name = "mip"
Dec/04/2013 07:11:19 dhcp,debug,packet dhcp-local sending offer with id 2783593540 to 255.255.255.255
Dec/04/2013 07:11:19 dhcp,debug,packet     ciaddr = 0.0.0.0
Dec/04/2013 07:11:19 dhcp,debug,packet     yiaddr = 192.168.90.179
Dec/04/2013 07:11:19 dhcp,debug,packet     siaddr = 192.168.90.1
Dec/04/2013 07:11:19 dhcp,debug,packet     chaddr = 5C:86:4A:00:00:DD
Dec/04/2013 07:11:19 dhcp,debug,packet     Msg-Type = offer
Dec/04/2013 07:11:19 dhcp,debug,packet     Server-Id = 192.168.90.1
Dec/04/2013 07:11:19 dhcp,debug,packet     Address-Time = 259200
Dec/04/2013 07:11:19 dhcp,debug,packet     Subnet-Mask = 255.255.255.0
Dec/04/2013 07:11:19 dhcp,debug,packet     Router = 192.168.90.1
Dec/04/2013 07:11:19 dhcp,debug,packet     Domain-Server = 192.168.90.1
Dec/04/2013 07:11:19 dhcp,debug,packet     Domain-Name = "local"
Dec/04/2013 07:11:19 dhcp,debug,packet dhcp-local received request with id 2783593540 from 0.0.0.0
Dec/04/2013 07:11:19 dhcp,debug,packet     secs = 11
Dec/04/2013 07:11:19 dhcp,debug,packet     ciaddr = 0.0.0.0
Dec/04/2013 07:11:19 dhcp,debug,packet     chaddr = 5C:86:4A:00:00:DD
Dec/04/2013 07:11:19 dhcp,debug,packet     Msg-Type = request
Dec/04/2013 07:11:19 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Unknown(119),Unknown(252)
Dec/04/2013 07:11:19 dhcp,debug,packet     Unknown(57) = 02-EE
Dec/04/2013 07:11:19 dhcp,debug,packet     Client-Id = 01-5C-86-4A-00-00-DD
Dec/04/2013 07:11:19 dhcp,debug,packet     Address-Request = 192.168.90.179
Dec/04/2013 07:11:19 dhcp,debug,packet     Host-Name = "mip"
Dec/04/2013 07:11:19 dhcp,debug,packet dhcp-local sending nak with id 2783593540 to 255.255.255.255
Dec/04/2013 07:11:19 dhcp,debug,packet     ciaddr = 0.0.0.0
Dec/04/2013 07:11:19 dhcp,debug,packet     chaddr = 5C:86:4A:00:00:DD
Dec/04/2013 07:11:19 dhcp,debug,packet     Msg-Type = nak
Dec/04/2013 07:11:19 dhcp,debug,packet     Server-Id = 192.168.90.1

comments

Mathiasw2 wrote Dec 4, 2013 at 7:06 PM

My guess was correct and I have now fixed this. I have also removed the bytecode for the two unidentified (vendor specific?) attributes 119 and 252 listed above. i'll be happy to upload the patches or provide them if requested, and I've also written a DHCPOptions class for the generation of the options and calculation of the correct length.