Running dnsmasq exclusively on usb0

Hi,
The current script in debian 8.0 uses dnsmasq to serve dhcp. Current config for dnsmasq does not bind to usb0 , so it uses the lo device. In case I add a new network device and want to use another instance of dnsmasq to serve dhcp on that device, I can’t as the current config, blocks a second dnsmasq as the socket is already in use. This is because the first dnsmasq runs on 0.0.0.0 and serves all network devices.

This also blocks running avahi-dnsconfd, as the lo device is taken. avahi is useful, for when you don’t know the address of your BBB, and can reach it using the hostname beagleone.local.

so I suggest this dnsmasq config:

/etc/dnsmasq.d/usb0-dhcp
#disable DNS by setting port to 0
port=0

interface=usb0

#one address range
dhcp-range=192.168.7.1,192.168.7.1

dhcp-option=3
except-interface=lo
listen-address=192.168.7.2
bind-interfaces

Thanks for the fix!

https://github.com/beagleboard/image-builder/commit/1f93c63b131c3c48dbb7e58de6b70e4aac78fcbc

It'll be included in this sunday's weekly update..

Regards,

Seems dnsmasq does not load with this config:

Also upgrade to:

linux-image-3.14.38-ti-r60

and make sure you also update the boot script:

cd /opt/scripts/
git pull

As you are fighting a 3 way race: musb-hdrc + g_multi + dnsmasq...

r60: musb-hdrc is built-in..

So it's a race between g_mulit + dnsmasq

So then i added a restart to dnsmasq, after usb0 is setup:

https://github.com/RobertCNelson/boot-scripts/commit/a501ab8bb0dc61e0889a5a586a0de6701b3de81a

Regards,

Hello,
I am trying to get eth0 having access to the DNS, I cant ping google.com from eth0. It only works when I disable dnsmasq. So what it the correct config for eth0 ?

Regards