LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2017, 01:48 PM   #1
Clarkman
LQ Newbie
 
Registered: Mar 2011
Posts: 24

Rep: Reputation: 0
dnsmasq: unknown interface eth1


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!

Last edited by Clarkman; 11-05-2017 at 03:07 PM.
 
Old 11-05-2017, 03:26 PM   #2
Clarkman
LQ Newbie
 
Registered: Mar 2011
Posts: 24

Original Poster
Rep: Reputation: 0
OK, I think I'm seeing double. If I take the dnsmasq cmd out of my script and paste it at the command line, it works. Holy I've been at this too long!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dnsmasq: Getting warning that interface doesn't exist ravi.xolve Linux - Networking 2 04-14-2012 08:35 AM
eth1 interface does not work if eth0 is down harshalshete Linux - Networking 3 10-19-2011 07:14 AM
How to monitor ETH1 interface surya_prakash Linux - Newbie 2 03-25-2009 04:48 AM
eth0/eth1 interface fails to come up Jayraj Prabhu Linux - Hardware 1 12-16-2005 08:57 PM
eth1 interface does not start-up automatically wprauchholz Linux - Networking 1 10-24-2004 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration