[SOLVED] eth0 inet static shutting down on LinuxMint Mate 17.3
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
eth0 inet static shutting down on LinuxMint Mate 17.3
I installed Mint 17.3 64bit on a new custom-built PC and configured eth0 to use a static IP address. Looking at dmesg right after boot shows the following
Code:
r8169 ... eth0: link up
IPv6: ADDRCONF(NETDEV_CHANGE): link becomes ready
However, when I try to ping the gateway (192.168.1.1) there is no response. If I do an ifdown followed by ifup the same messages show up in dmesg. Once (but only once) I got a response from the very first ping but the second one failed. It seems as if the interface is being shut down by some mysterious agent but leaving no record (some google results mention avahi--which I see running if I do an "ifup -v").
One thing that is different between Mint and my main Debian box is "ip route" shows a 169.254.0.0 entry after the default route and before the 192.168.1.0/24 entry. Some discussions in LQ describe how to remove the entry on Red Hat but on Mint there is no /etc/sysconfig/network (and I'm not sure if removing the ZEROCONF entry will resolve my problem).
If link-local entry in route table, Internet can't be access. The entry should be removed.
That is why I had questioned, near the end of my original query, about address 169.254.0.0 in the output of "ip route" (which I believe is the same as that "link-local"). As I mentioned earlier, the only discussions I was able to find gave instructions on removing link-local on Red Hat. What I need are instructions on how to remove the link-local entry on Mint or Ubuntu (also would be useful to know what is putting it there in the first place).
Zeroconf on Ubuntu or Mint has another name, Avahi. Following is instruction to disable it.
Shutting down the avahi-daemon doesn't appear to have the desired effect. If I make the indicated change to /etc/init/avahi-daemon.conf and set AVAHI_DAEMON_DETECT_LOCAL to 0 in /etc/default/avahi-daemon, the daemon does not come up on reboot, but the kernel IP routing table still has that second entry for link-local. If I do an "ifdown eth0" followed by an "ifup -v eth0" I see two avahi scripts being executed, both in /etc/network/if-up.d/ : avahi-autoipd and avahi-daemon. The first one appears to be the one adding the 169.254.0.0 if it's not present. The second one runs /usr/lib/avahi/avahi-daemon-check-dns.sh and that checks the setting of AVAHI_DAEMON_DETECT_LOCAL and exits if it's not 1.
So the question appears to be how to stop avahi-autoipd from adding the link-local address in the first place.
I don't have an easy way to copy all the output of ethtool. Is there something in particular you'd be looking at? Let me try a few highlights:
Code:
Supported ports TP MII
Supported/advertised link modes: 10/100/1000Base half/full
Speed 100Mb/s
Duplex Full
Port MII
PHYAD 0
Auto-negotiaton: on
Current message level: 0x00000033
drv probe ifdown ifup
Link detected: yes
If link-local entry in route table, Internet can't be access. The entry should be removed.
Not necessarily. Below is my output (route -n) from my debian which is similar to the OP's output. The route with the lowest metric value is the default.
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Are you positive the router's address is 192.168.1.1? I would try disabling IPV6 to see if that fixes the problem.
How did you configure a static IP address? Via the network manager applet?
I was wondering if there is actual handshake between your box and switch. You are getting 169.254 address, this indicates network is down.
The new box is on the same network as the one I'm writing this on. I can see the lights flickering on the new box and the router. Plus, at least once I was able to ping the hub.
Not necessarily. Below is my output (route -n) from my debian which is similar to the OP's output. The route with the lowest metric value is the default.
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Are you positive the router's address is 192.168.1.1? I would try disabling IPV6 to see if that fixes the problem.
How did you configure a static IP address? Via the network manager applet?
On my debian box, from which I'm writing this and that is on the same network, route -n returns:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
I'm quite certain it's 192.168.1.1 (it's assigned by my ISP), since I was able to ping it once and I'm able to ping it from this other box. I had started configuring by editing /etc/network/interfaces but then I saw I got the same results via the network applet.
OK, I still suspect your hardware (network cable perhaps). The speed from ethtool is 100 MB/s, is this your network speed? If it is not it may indicate intermittent connection.
Assigned by your ISP? I assume your using a router provided by your ISP and 192.168.1.1 is its default LAN configuration? Make sure the Mint IP address is not within the DHCP server's range so the same address is not being used by two different devices.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.