Linux Help me with Ubuntu networking!

Discussion in 'Software' started by Tomm, 23 Jul 2007.

  1. Tomm

    Tomm I also ride trials :¬)

    Joined:
    12 Apr 2004
    Posts:
    2,249
    Likes Received:
    0
    I've just installed Ubuntu for a little play around as something to do. In the past I've installed and used Suse and also Knoppix, but I'm still very much a linux noob. Both times in the past, the network just worked instantly, without me doing a thing.

    Anyway, now (with ubuntu) I can't connect to the internet, or ping anything (inc my router) etc. However, it seems to be working sporadically - The software update is telling me I need to download some files (it must have checked?) and I managed to get online for a few minutes before it died again.

    I think the problem lies in the fact that I'm using a PCI network card instead of the normal onboard ethernet on my shuttle. At least, I was when I installed ubuntu - I've since disabled the onboard ethernet in the bios, but I'm still having the same problems. It all works fine in Windows XP.

    My router occasionally reports that 'unknown device' is connected, but most of the time it fails to even see my computer.

    This is my netstat -nr (if that's any use?)
    Code:
    Destination  Gateway       genmask         flags  mss  window  irtt  Iface
    192.168.0.0  0.0.0.0        255.255.255.0     U      0      0          0  eth1
    169.254.0.0  0.0.0.0        255.255.0.0        U      0      0          0  eth1
    0.0.0.0      192.168.0.1    255.255.255.0   UG      0      0          0  eth1
    
    I'm just really confused, since it works really sporadically. Maybe bad network drivers?!
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Weird, but your route -n ( = netstat -nr) seems a bit weird. The gateway is set correctly but the middle line is weird.

    Try (as root or with sudo)
    Code:
    /etc/init.d/networking stop
    ifconfig eth1 192.168.0.<any free> 
    ifconfig eth1 up
    route add default gw 192.168.0.1
    be sure to check /etc/resolv.conf if it contains the correct nameserver (DNS)
     
  3. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    ifconfig output could be handy :)

    Code:
    $ ifconfig
     
  4. Tomm

    Tomm I also ride trials :¬)

    Joined:
    12 Apr 2004
    Posts:
    2,249
    Likes Received:
    0
    Ok, I've tried what Glider said (thanks). The DNS is set properly and my netstat -nr now reads
    Code:
    Destination  Gateway       genmask         flags  mss  window  irtt  Iface
    192.168.0.0  0.0.0.0        255.255.255.0     U      0      0          0  eth1
    0.0.0.0      192.168.0.1    255.255.255.0   UG      0      0          0  eth1
    
    The ifconfig is long and I don't want to have to type it all out. It looks OK from what I can see (IP address etc), but I don't understand all of it. Here's the rest.

    Code:
    inet6 address:  fe80::200:b4ff:fe55:492f/64 Scope:link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1253 errors:0 dropped:0 overruns:0 frame:0
    TX packets:931 errors:26 dropped:0 overruns:0 frame:0
    Collisions:15 txqueuelen:1000
    RX bytes:1434341 (1.3MiB) TX bytes 129898 (126.8 KiB)
    Interrupt:20 Base address:0x9000
    
    <more stuff about a local loopback which I don't think is important?>
    
    ...And it still doesn't work consistently. The fact it seemingly randomly turns on and off makes me think it might be a hardware issue? It's a relatively old NIC but as I say, it works fine in Windows.
     
Tags:

Share This Page