'Network not reachable' after every reboot Ubuntu 11.4

Posted on 2011-04-26
Last Modified: 2012-06-27
'Network not reachable' after every reboot


This began after upgrading to 11.4.

I have to manually do the following after every reboot:

sudo ifconfig eth0 up netmask
sudo route add -net gw eth0I have a static network interface, here's what's in /etc/network/interfaces:

Open in new window

Here is /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
iface eth0 inet static

Open in new window

Any suggestions?
Question by:wjstarck
    LVL 11

    Expert Comment

    what does ifconfig show after rebooting ie before you manually assign the address etc ?
    LVL 12

    Expert Comment

    After reboot check whether network-manager is stated or not.
    LVL 31

    Expert Comment

    First, you have commented the line

    #auto eth0

    Why?  So obviously it doesn't start at boot time and you have to manually do it.


    I don't see a route line in your interfaces file.
    up route add -net gw dev eth0

    Open in new window


    Author Comment


    wjs@mail:~$ ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr 00:0c:29:86:85:64  
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    Open in new window

    farzanj: I commented that line out because I get the following error when trying to restart networking:

    wjs@mail:~$ sudo /etc/init.d/networking restart
    [sudo] password for wjs: 
     * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
     * Reconfiguring network interfaces...                                          Don't seem to have all the variables for eth0/inet0
    Failed to bring up eth

    Open in new window

    I have also tried adding the up route add line but that doesn't help either. I'm totally stumped :p
                                                                             [ OK ]
    LVL 31

    Expert Comment

    For now just do a work around.

    You should have a file:


    Put these two lines in that file and everything should work.

    ifconfig eth0 up netmask
    route add -net gw eth0
    LVL 31

    Expert Comment

    Ok.  The file in Ubuntu may be

    Make sure it starts with


    And it is executable

    ls -l /etc/init.d/local

    Author Comment


    network-manager is running, however when I click on 'Connection Information'  it pops up an error window

    Error displaying connection information:
    No valid active connections found.

    And when I open 'Edit Connections' it always says 'Never' under last used column by Eth0

    Accepted Solution

    OK, I gave up on network-manager, it's always given me problems, so I uninstalled it and installed wicd instead. Works perfectully now. I would like to award partial points though. Thanks for your help.

    Author Closing Comment

    Would like to award 125 points to farznj

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now