Announcement

Collapse
No announcement yet.

Can't connect to the internet.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't connect to the internet.

    Hi all,

    I'm a games programmer looking to get familiar with linux so I can do some programming on the Cell architecture for PS3. I've only been using Linux for three days so far so bare with me.

    First of all I am running Kubuntu 8.10. It seems to want to manage my internet via KInternetManager and seeing as I don't know how to disable or change that; thats how I've been doing it so far.

    I have a fairly simple setup; my computer is connected via an ethernet cable to a Linksys WAG160N wireless ADSL router which is connecting my computer (and the other windows computers) to the network. I have an ASUS P5N32-E SLI motherboard with two onboard network cards (recognised by Kubuntu as eth0 and eth1).

    So far I have tried Ubuntu 8.10, openSUSE 10.3 & 11 and Fedora Core 9. The only Linux distro I've managed to get the internet working on is Fedora Core 9. I want to use Kubuntu mainly because I like the KDE desktop more than the GNOME desktop included with Fedora.

    Currently the ethernet cable is plugged into eth0 and that's clear because it doesn't give me the "No Carrier" message beneath the connection in KInternetManager like eth1 does. I can't ping 192.168.1.1 (my router) from my computer and I've got the settings (to the best of my knowledge) exactly as I do in Windows -> Static IP = 192.168.1.109 Subnet Mask = 255.255.255.0 with a default gateway of 192.168.1.1 (I let the router handle DNS). Hostname (didn't seem to have an effect in fedora 9) of pillowpants.linux.

    Here are the results of some terminal commands (if they're of help):

    lspci:
    Code:
    00:00.0 Host bridge: nVidia Corporation C55 Host Bridge (rev a2)
    
    00:00.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:00.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:00.3 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:00.4 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:00.5 RAM memory: nVidia Corporation C55 Memory Controller (rev a2)
    
    00:00.6 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:00.7 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.0 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.3 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.4 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.5 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:01.6 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:02.0 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:02.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:02.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
    
    00:03.0 PCI bridge: nVidia Corporation C55 PCI Express bridge (rev a1)
    
    00:06.0 PCI bridge: nVidia Corporation C55 PCI Express bridge (rev a1)
    
    00:07.0 PCI bridge: nVidia Corporation C55 PCI Express bridge (rev a1)
    
    00:09.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a1)
    
    00:0a.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a2)
    
    00:0a.1 SMBus: nVidia Corporation MCP55 SMBus (rev a2)
    
    00:0a.2 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
    
    00:0b.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
    
    00:0b.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
    
    00:0d.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
    
    00:0e.0 RAID bus controller: nVidia Corporation MCP55 SATA Controller (rev a2)
    
    00:0e.1 RAID bus controller: nVidia Corporation MCP55 SATA Controller (rev a2)
    
    00:0e.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
    
    00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
    
    00:11.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
    
    00:12.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
    
    00:13.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
    
    00:14.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
    
    00:15.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
    
    00:16.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
    
    00:17.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
    
    00:18.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
    
    04:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306 Fire II IEEE 1394 OHCI Link Layer Controller (rev c0)
    
    09:00.0 PCI bridge: Creative Labs Device 7006
    
    0a:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
    
    0b:00.0 VGA compatible controller: nVidia Corporation GeForce 9800 GTX (rev a2)
    ifconfig
    Code:
    eth0   Link encap:Ethernet HWaddr 00:1b:fc:65:13:b5
         inet addr:192.168.1.109 Bcast:192.168.1.255 Mask:255.255.255.0
         inet6 addr: fe80::21b:fcff:fe65:13b5/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:61 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B) TX bytes:7794 (7.7 KB)
         Interrupt:246 Base address:0x8000
    
    eth1   Link encap:Ethernet HWaddr 00:1b:fc:65:1c:ca
         UP 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)
         Interrupt:245
    
    lo    Link encap:Local Loopback
         inet addr:127.0.0.1 Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING MTU:16436 Metric:1
         RX packets:65 errors:0 dropped:0 overruns:0 frame:0
         TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:4496 (4.4 KB) TX bytes:4496 (4.4 KB)
    I have a couple of questions.

    What method should I be using to setup the network? KNetworkManager or Terminal? And how do I go about stopping KInternetManager from handling it?

    Do I need to install the drivers to get it working? I didn't have to Fedore Core 9 which makes me think it could just be a setting problem; but I just thought I'd ask.

    Any help would be greatly appreciated. Many thanks in advance.

    #2
    Re: Can't connect to the internet.

    First, welcome.

    Open a console and type:
    Code:
    lspci | grep Ethernet
    (just copy/paste the above into the console)
    Copy/paste the output. This will show us what Ethernet controllers you have.

    While in the console, let's see what your interfaces file contains:
    Code:
    cat /etc/network/interfaces
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Can't connect to the internet.

      Originally posted by Snowhog
      First, welcome.

      Open a console and type:
      Code:
      lspci | grep Ethernet
      (just copy/paste the above into the console)
      Copy/paste the output. This will show us what Ethernet controllers you have.

      While in the console, let's see what your interfaces file contains:
      Code:
      cat /etc/network/interfaces
      Here are the terminal outputs for those two commands:

      lspci | grep Ethernet

      Code:
      00:11.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
      00:12.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
      cat /etc/init.d/network/interfaces

      Code:
      # 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
          address 192.168.1.109
          netmask 255.255.255.0
          network 192.168.1.0
          broadcast 192.168.1.255
          gateway 192.168.1.1
          # dns-* options are implemented by the resolvconf package, if installed
          dns-nameservers 192.168.1.1
          dns-search linux
      I hope that helps and thanks for the fast reply.

      Comment


        #4
        Re: Can't connect to the internet.

        I'd edit (as root) the /etc/network/interfaces file and remark (add the # and space) to:
        Code:
        auto eth0
        iface eth0 inet static
            address 192.168.1.109
            netmask 255.255.255.0
            network 192.168.1.0
            broadcast 192.168.1.255
            gateway 192.168.1.1
            # dns-* options are implemented by the resolvconf package, if installed
            dns-nameservers 192.168.1.1
            dns-search linux
        Save and close. Reboot. Check to see if you have an active Internet connection - fire up Konqueror and browse to any site. If you are able to connect, then the problem lies within the entries above.

        That is, unless you already started with the 'generic' interfaces file, which contains only:
        auto lo
        iface lo inet loopback
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Can't connect to the internet.

          Okay, I've changed my /etc/network/interfaces file so that it only has the following in it:

          Code:
          auto lo
          iface lo inet loopback
          With everything else commented out with # .

          No luck so far when I do a fresh boot. I can't browse to any webpages in Konqueror and I can't ping anything from the terminal. When I ping 192.168.1.1 I get Network not available.

          Comment


            #6
            Re: Can't connect to the internet.

            can you also show the output of:
            Code:
            route -n
            Confucius says: If you enjoy your work, then you never have to work another day in your life.

            Comment


              #7
              Re: Can't connect to the internet.

              With the interface code not commented out:

              Code:
              Kernel IP routing table
              Destination   Gateway     Genmask     Flags Metric Ref  Use Iface
              192.168.1.0   0.0.0.0     255.255.255.0  U   0   0    0 eth0
              169.254.0.0   0.0.0.0     255.255.0.0   U   1000  0    0 eth0
              0.0.0.0     192.168.1.1   0.0.0.0     UG  100  0    0 eth0
              With the interface code commented out:

              Code:
              Kernel IP routing table
              Destination   Gateway     Genmask     Flags Metric Ref  Use Iface
              (Not particularly interesting :P).

              Hope this helps.

              Comment


                #8
                Re: Can't connect to the internet.

                interesting enough

                You said in your first post:

                I have a fairly simple setup; my computer is connected via an ethernet cable to a Linksys WAG160N wireless ADSL router which is connecting my computer (and the other windows computers) to the network.
                You also said:

                I can't ping 192.168.1.1 (my router) from my computer and I've got the settings (to the best of my knowledge) exactly as I do in Windows -> Static IP = 192.168.1.109 Subnet Mask = 255.255.255.0 with a default gateway of 192.168.1.1
                Is you windows computer also connected at the same time with IP address 192.168.1.109? If so, you will need to change the IP of your linux computer to something else.. maybe 192.168.1.110.. something different to all the other computers.
                Confucius says: If you enjoy your work, then you never have to work another day in your life.

                Comment


                  #9
                  Re: Can't connect to the internet.

                  Ah, sorry, the windows computer I was referring to was actually the same computer I have linux installed on. I have Vista & Kubuntu 8.10 setup with a dual boot.

                  All of the other computers have different IP addresses set statically. I believe they go: 192.168.100 - 192.168.1.105, so I've got about 4 spaces before I would expect to see any IP address conflicts.

                  Comment


                    #10
                    Re: Can't connect to the internet.

                    hmmm .. out of ideas here at the moment...

                    your routing table looks fine... i know you said that you believe the cable is in eth0, but i would try it in the other port anyway.
                    Confucius says: If you enjoy your work, then you never have to work another day in your life.

                    Comment


                      #11
                      Re: Can't connect to the internet.

                      Hmmm, no dice. I tried it in the other port and as I thought KInternetManager moved the error "No Carrier" from eth1 to eth0. I then set all of the relevant settings the same in /etc/network/interfaces and rebooted. No luck. I then tried commenting out all of those parts mentioned above and tried; but still no luck.

                      I wonder why it worked in Fedore 9. Is there a major difference in how they work?

                      Comment


                        #12
                        Re: Can't connect to the internet.

                        I can't comment on fedora9 ... i haven't touched fedora since about version 4 or 5. You say you are using kinternetmanager but i am not familiar with that. Do you mean KNetworkManager?
                        Confucius says: If you enjoy your work, then you never have to work another day in your life.

                        Comment


                          #13
                          Re: Can't connect to the internet.

                          Ah yeah, sorry KNetworkManager. Actually I was just reading around in the network support forum and I found this post:

                          http://kubuntuforums.net/forums/inde...opic=3098824.0

                          It looks like my particular motherboard may not work at all with this distro of linux. The guy who solved the problem did so by installing a new NIC. That's not really an option for me at the moment.

                          I might have to change back to Fedora to get it to work again. Agh, why is Linux so hard to get working

                          Comment


                            #14
                            Re: Can't connect to the internet.

                            Don't blame the distro, blame the manufacturer! It is they who opt not to provide the info for the community to work on. It is all good business, I'm sure

                            Anyway, there is nothing wrong with Feodora - it is a perfectly good distro. And you do not have to use Gnome with it - simply install KDE and off you go (although I am not sure whether they have KDE4 yet...).
                            Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                            Comment


                              #15
                              Re: Can't connect to the internet.

                              damn.. that's a nuisance (about the hardware incompatibility)
                              Confucius says: If you enjoy your work, then you never have to work another day in your life.

                              Comment

                              Working...
                              X