I'm having an issue with dnsmasq and eth1.
I'm on Debian Jesse, with a USB 3.0 multifunction hub. The hub and beaglebone (and the dnsmasq command below) all worked on my Dell with Jesse. The dnsmasq command is:
Code:
sudo dnsmasq --bind-interfaces --interface=eth1 --except-interface=lo --listen-address=192.168.111.1 --dhcp-range=192.168.111.2,192.168.111.10,12h --enable-tftp --tftp-root=/srv/tftp,eth1
The error I get reads like this:
Code:
dnsmasq: unknown interface eth1
ifconfig shows:
Code:
eth1 Link encap:Ethernet HWaddr 00:0e:c6:cc:6a:53
inet addr:192.168.111.1 Bcast:192.168.111.255 Mask:255.255.255.0
inet6 addr: fe80::20e:c6ff:fecc:6a53/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7669 (7.4 KiB) TX bytes:148648 (145.1 KiB
it pings and appears happy:
Code:
$cat /sys/class/net/eth1/operstate
up
nmcli d looks ok:
Code:
$nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected Wired connection 1
eth1 ethernet connected BBB
lo loopback unmanaged --
but nmcli c looks confused:
Code:
$nmcli c
NAME UUID TYPE DEVICE
BBB 0c960beb-878a-4c9c-b46c-5fa55f9da984 802-3-ethernet eth1
Wired connection 1 eb12bb70-3018-4a83-8031-f1a30f2e4dcc 802-3-ethernet eth0
Ifupdown (eth1) 7b635ed6-2640-7ad8-675d-744db12dd9fa 802-3-ethernet --
The eth1 appears and disappears 'properly' when I plug/unplug the ethernet cable into the hub, but there is an additional device that stays around (Ifupdown, not anything I made).
The problem persists whether I add the eth1 stuff to /etc/network/interfaces as shown here:
Code:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.111.1
netmask 255.255.255.0
gateway 0.0.0.0
I added /etc/dnsmasq.conf:
Code:
port=0
interface=eth1
dhcp-range=192.168.111.2,192.168.111.6,12h
enable-tftp
tftp-root=/srv/tftp
and edited NetworkManager.conf:
Code:
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
This stopped eth1 from being unmanaged, not sure if that's a good thing.
I have rebooted, restarted NetworkManager and network multiple times. I am stuck.
What am I doing wrong?
Thanks!