When Ubuntu Server restarts eth0 Doesn't come back up
Solution 1
Joel, add a line with auto eth0
before the iface eth0 inet static
line, that should bring it up on boot.
Solution 2
I had, and solved, a similar problem--perhaps my solution will work for you. The problem in my case was that in /etc/network/interfaces
I had both eth0 and vin to auto as shown below:
# The primary network interface
auto eth0
iface eth0 inet dhcp
# The INside Virtual Network
auto vin
iface vin inet dhcp
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
After I commented out the first line, changing it to
#auto vin
the eth0 worked.
Solution 3
Well, as it says, it could not find /run/network
. That's why it doesn't start with /etc/init.d/networking start
I have the same problem, just a few days ago and still trace the failure since the directory gets destroyed every reboot.
If you simply create the /run/network
directory you'll be able to start the network with a configured ethX
but you'll lose it again next reboot. I haven't figured out what service is so persistent to destroy my work every time. Try it, creating a directory can't hurt too much.
Solution 4
found a link with the answer.
It seems the move from /var/run to /run did not work during the upgrade process.
I fixed with this:
cd /var mv run _run ln -s /run .
Related videos on Youtube
samme4life
Updated on September 18, 2022Comments
-
samme4life over 1 year
in a JSP page I want to call a javascript function. But when I call it inside a "a" tag it isn't hit. But when I put an "onload" parameter in the "body" tag as follows, onload="" the function I called inside < a > tag is hit. Can anybody explain this situation please.
-
Billy Moon over 12 yearsplease post your code...
-
SpamapS over 12 yearsHi Joel, there was a change made in 11.10 to make sure that the system doesn't go into runlevel 2 before all interfaces have come up. Can you add to the question the output of ls -lR /run/network ? Thanks!
-
Admin over 12 yearsI have the same problem, upgrade to 11.10 and eth0 does not start
-
-
Andrew D. over 12 yearsThis definition of Anchor is invalid. HREF must not have javascript code. More valid definition is: <a href="#" onclick="javascript:mufunction('hello-world');return false;">Click Me</a> for an example.
-
kkonevets over 12 yearsSpamapS, the command didn't run..joel@Snoopy:/etc/network$ sudo ls -lR /run/network ls: cannot access /run/network: No such file or directory.... then i deleted the /network and it ran but the output was too long to paste here.
-
deej over 12 yearsIf you run "sudo ifconfig eth0 up" when you log in on console, it brings up the interface? Can you grep for eth0 in /var/log/syslog or dmesg and paste any interesting output that you get?
-
Chad Harrison almost 12 years@deej +1, fixed me up.
-
Mahesh over 11 yearsWhilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
-
bseibold over 11 yearsIt's not that anyone or anything is deleting your directory.
/run
is usually stored in RAM (filesystem typetmpfs
) so it isn't persistent over reboots. -
sws almost 10 yearsI'd commented this out after configuring an Ubuntu 14.04 VM; uncommented this, and it worked great. Thanks!
-
Wayne_Yux almost 8 yearsWelcome to Ask Ubuntu! Your answer while possible may be a bit late as the OP already accepted the other answer. Your help is of course appreciated, however you might be better served by focusing your efforts on the unanswered questions