Results 1 to 10 of 10

Thread: Network IP's only available after /etc/init.d/networking restart

  1. #1
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Network IP's only available after /etc/init.d/networking restart

    Currently in Hardy with my laptop, with the 2200BG wireless card:
    Code:
      *-network:1
           description: Wireless interface
           product: PRO/Wireless 2200BG Network Connection
           vendor: Intel Corporation
           physical id: 5
           bus info: pci@0000:01:05.0
           logical name: eth1
           version: 05
           serial: 00:15:00:3c:ad:96
           width: 32 bits
           clock: 33MHz
           capabilities: bus_master cap_list ethernet physical wireless
           configuration: broadcast=yes driver=ipw2200 driverversion=1.2.2kmprq firmware=ABG:9.0.2.6 (Mar 22 2005) ip=192.168.1.111 latency=64 maxlatency=24 mingnt=3 module=ipw2200 multicast=yes wireless=IEEE 802.11g
    Running wireless with roaming mode enabled. It connects to the internet without a problem, BUT:

    I cannot ping/ssh/access my local network's computers, unless I run

    Code:
    /etc/init.d/networking restart
    After this I can ping computers until I touch Gnome's network manager (nm-applet 0.6.6).

    If, for example, I click the icon and re-choose the same wireless connection I am connected to, ping will result in
    Code:
    From 192.168.1.106 icmp_seq=8 Destination Host Unreachable
    If, once again, I restart networking with the init script, it will start working again.

    I have my router's IP as default gw in route -n.


    Anyone got a clue why this happens?

  2. #2
    Join Date
    Sep 2006
    Beans
    10

    Re: Network IP's only available after /etc/init.d/networking restart

    Hi,

    can you post the output of

    Code:
    ip route
    before and after touching nm applet...

  3. #3
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Network IP's only available after /etc/init.d/networking restart

    Before:

    Code:
    192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.111 
    192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.106 
    169.254.0.0/16 dev eth0  scope link  metric 1000 
    default via 192.168.1.1 dev eth1 
    default via 192.168.1.1 dev eth0  metric 100
    After:
    Code:
    192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.106 
    169.254.0.0/16 dev eth0  scope link  metric 1000 
    default via 192.168.1.1 dev eth0  metric 100

  4. #4
    Join Date
    Jul 2006
    Location
    Vancouver, BC
    Beans
    67
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Network IP's only available after /etc/init.d/networking restart

    I see the same issue when running straight off the live CD.

    I am going to try installing and see if that matters.

  5. #5
    Join Date
    Jul 2006
    Location
    Vancouver, BC
    Beans
    67
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Network IP's only available after /etc/init.d/networking restart

    PS. If worse comes to worse, I suppose I can always set it up so /etc/init.d/networking restart runs at startup

  6. #6
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Network IP's only available after /etc/init.d/networking restart

    So, basically, if I click on one of the wireless networks, the removal of
    Code:
    default via 192.168.1.1 dev eth1
    makes my default gw disappear. Any idea why?

  7. #7
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Network IP's only available after /etc/init.d/networking restart

    Thinks work normally if eth0 (wired) is changed to DHCP instead of "static IP".

    As a result, I submitted a bug in http://bugzilla.gnome.org/show_bug.cgi?id=529865

  8. #8
    Join Date
    Jul 2006
    Location
    Vancouver, BC
    Beans
    67
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Network IP's only available after /etc/init.d/networking restart

    Now that I have installed hardy, I don't have to run /etc/init.d/networking restart but I do have to manually select a wireless network. I cannot seem to set one as default.

  9. #9
    Join Date
    Sep 2006
    Beans
    10

    Re: Network IP's only available after /etc/init.d/networking restart

    So, how I understand it you have two network interfaces.
    The wireless is eth1 and provides the network connection. After starting /etc/init.d/networking the device eth1 is brought up and set as the standard gateway and everything is working fine.
    Touching the applet changes this and removes the device as well as the standard gateway. Why it does so, I don't know. eth0 is left and has no connection to the net...
    The script in /etc/init.d/networking is reading the configuration file /etc/network/interfaces. Can you post the output of
    Code:
    cat /etc/network/interfaces
    and
    Code:
    ifconfig -a
    I uninstalled the applet in my desktop-machine, but this might not be practical on your machine (laptop?). Does someone know where the applet stores its information and what could cause it to interfere with /etc/network/interfaces?

    greetings

    kamazu

  10. #10
    Join Date
    Nov 2004
    Location
    Santa Cruz
    Beans
    37
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Network IP's only available after /etc/init.d/networking restart

    I also have the same problem. I have been reluctant to implement a user script to run the restart command on boot because my computer should grab the info properly on boot. I've pretty much given up and decided to copy/paste a restart script that someone else wrote because the problem is not getting fixed. Bummer.

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
  •