Results 1 to 7 of 7

Thread: Network is unreachable

  1. #1
    Join Date
    Aug 2008
    Location
    San Juan, Argentina
    Beans
    137
    Distro
    Ubuntu 12.04 Precise Pangolin

    Network is unreachable

    Hi
    I'm beginning server administration and am having a problem

    I worked with server last thursday and all was ok. Today I couldn't reach the server (ping), which is 100mts from here. I had to go to the physical location of the server, connect a monitor, keyb and mouse.

    Server was on, xfce running, all seemed to be fine, except the ifconfig -a command wasn't showing the manually assigned IP server should have, and I was getting "network is unreachable" when trying to ping something from server.

    By doing sudo /etc/init.d/networking restart all went back to normal, so:

    Is there anything I can do to assure the networking service is always running, so I don't have to start it manually from the server?

    It is a Ubuntu 11.04 server with latest xfce, webmin and lampp installed
    Enrique Becerra
    @kabeza
    Beza

  2. #2
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Network is unreachable

    Has the server been on the whole time? Any updates? LTS releases advised for servers and production machine, current being 10.04 LTS and rock solid.

  3. #3
    Join Date
    Aug 2008
    Location
    San Juan, Argentina
    Beans
    137
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Network is unreachable

    Quote Originally Posted by Bucky Ball View Post
    Has the server been on the whole time? Any updates? LTS releases advised for servers and production machine, current being 10.04 LTS and rock solid.

    Yes, server has been up for 7 days w/o energy problems.

    PS: I wonder if something like this would work (found in other thread):

    POSSIBLE SOLUTION 1
    =====================================
    Add this to a new network.cron file
    0 0 * * * root /etc/init.d/networking restart
    Then
    sudo crontab network.cron
    POSSIBLE SOLUTION 2
    =====================================
    #!/bin/bash
    x=`ping -c1 google.com 2>&1 | grep unknown`
    if [ ! "$x" = "" ]; then
    echo "It's down!! Attempting to restart."
    service network restart
    fi
    and then adding these lines to cron
    */2 * * * * /usr/local/bin/check_network
    0 * * * * service network restart > /dev/null
    Enrique Becerra
    @kabeza
    Beza

  4. #4
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Network is unreachable

    Check the logs. The networking is designed to work all the time. If it failed, you should be able to tell why.

    I don't like to modify things unless I know what problem I am trying to cure.
    -BAB1

  5. #5
    Join Date
    Aug 2008
    Location
    San Juan, Argentina
    Beans
    137
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Network is unreachable

    which logs should I check?
    Enrique Becerra
    @kabeza
    Beza

  6. #6
    Join Date
    Sep 2007
    Beans
    49

    Re: Network is unreachable

    Is this the first time there have been issues with this server? I would look into the power management settings in Xfce and BIOS as well. It could be shutting down network due to inactivity.
    Just a shot in the dark.

  7. #7
    Join Date
    Aug 2008
    Location
    San Juan, Argentina
    Beans
    137
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Network is unreachable

    thanks, but being a server, it would be very stup*d to have an option to shutdown network due to inactivity.
    I'll check it, and if it has that option, I'll kick the guy who sold it 2 me
    Last edited by kabeza; December 14th, 2011 at 01:29 PM.
    Enrique Becerra
    @kabeza
    Beza

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •