You are here

MIkrotik HAP lite install with Linux - no dhcp address

8 posts / 0 new
Last post
w6bi
w6bi's picture
MIkrotik HAP lite install with Linux - no dhcp address


Attempting to install the factory firmware on a Mikrotik HAP lite.  This is my third one.  The first two were completed with minimal issues.  This one's got me stumped.   It's probably a Linux issue, but need some guidance.

Running through the instructions, I ran this command as root:

dnsmasq -i enp1s0 --dhcp-range=192.168.1.100,192.168.1.200 --dhcp-boot=rb.elf --enable-tftp --tftp-root=/tftp/ -d -u obeach -p0 -K --log-dhcp --bootp-dynamic

The response from Linux (Fedora 29) was:

dnsmasq: started, version 2.79 DNS disabled
dnsmasq: compile time options: IPv6 GNU-getopt DBus no-i18n IDN2 DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify
dnsmasq-dhcp: DHCP, IP range 192.168.1.100 -- 192.168.1.200, lease time 1h
dnsmasq-tftp: TFTP root is /tftp/

I never see any response from the Mikrotik on the command line.  I fired up tcpdump and captured this, over and over again. 

16:21:45.609980 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from b8:69:f4:d6:9d:2b (oui Unknown), length 300

It appears that dnsmasq is not responding to the DHCP request from the Mikrotik.  But why not?  Is there some dnsmasq config default in this version that's not correct?  

Any guidance would be appreciated.   

Thanks.

Orv W6BI

K5DLQ
K5DLQ's picture
where you plugged into the

where you plugged into port 1 on the hAP AC Lite?
did you have a dumb switch between the PC and the hAP?
 

w6bi
w6bi's picture
HAP install
Yes.
Yes.
 
w6bi
w6bi's picture
DNSMASQ options
Chuck, what version of dnsmasq are you running   ("dnsmasq -v") ?
Mine is 2.79,. and there's already a 2.80 being readied for release to resolve some issues around DHCP with DNSSEC (not clear if that's my issue or not).

Orv
 
AE6XE
AE6XE's picture
Orv,  if your instance of
Orv,  if your instance of dnsmasq worked on 2 devices, but not the 3rd, then there can't be a compatibility issue.   If you are typing the command line by hand each time, possibly a typo somehow.  I have a script file with this command in it, to be repeatable.    One quirk I've run into, is to not move the cat5 cable from port 1 until after the device has been rebooted after uploading the .bin image, then move over to port 2.  It seemed like if I pulled the cable from port1 too early, it would not write AREDN to flash, would reboot back to RB OS. 

Joe AE6XE 
w6bi
w6bi's picture
Linux OSs
Joe, the two previous installs of the .elf file on the Mikrotik were under Fedora 28; this one is being done with Fedora 29.   It's possible they made some changes affecting the behavior of dnsmasq.   I may try it on a Raspberry Pi to see if it behaves differently.

In step 10 of the instructions, it says:
"Change your laptop back to DHCP mode to obtain an address from the mesh node, after it boots.  On the hAP-lite move the cat5 to an AREDN LAN port...."

Is that the right order?   Leave the cable in port 1 to get a DHCP address?  It seems like the order of those steps should be reversed.

Orv W6BI

 
AE6XE
AE6XE's picture
The order probably isn't
The order probably isn't significant.  Just need to get to the end state.     In the current document steps, when the cat5 is unplugged the link goes down.  Thus when it is plugged back in to the LAN port, all should work.   The reverse, when the laptop changes form static to DHCP mode, the link is also down, then comes up, all should work too.

Joe AE6XE
w6bi
w6bi's picture
Issue identified, probably
Using the identical procedure, but on an RPI running Raspbian Jessie (with dnsmasq version 2.72), the installation procedure went correctly and promptly.
I'll keep an eye open and when Fedora adopts dnsmasq 2.80 (currently 2.,79) I'll try it again.

Orv W6BI

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer