Announcement

Collapse
No announcement yet.

trouble with internet connection

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

    trouble with internet connection

    Hello All,


    I am having trouble accessing internet. This started all of a sudden. I was able to access it earlier. Recently I did some updates and restarted my machine. After that I am not able to access internet. Probably some of you are having the same problem. May be someone can suggest something. So here is my problem:

    I am using Kubuntu on OS - Ubuntu 7.10. Using ifconfig, I am not able to configure a IPv4 address. Here is the output of my ifconfig:

    eth0 Link encap:Ethernet HWaddr 00:1C:23:1F:12:19
    inet6 addr: fe80::21c:23ff:fe1f:1219/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:2 errors:2 dropped:0 overruns:0 frame:2
    TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:316 (316.0 b) TX bytes:9042 (8.8 KB)
    Interrupt:18

    eth0:avah Link encap:Ethernet HWaddr 00:1C:23:1F:12:19
    inet addr:169.254.1.133 Bcast:169.254.255.255 Mask:255.255.0.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:18

    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:53 errors:0 dropped:0 overruns:0 frame:0
    TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:4612 (4.5 KB) TX bytes:4612 (4.5 KB)



    So as one can see there is no IPv4 address in eth0 but it comes in eth0:avah. Using KNetworkManager, I am able to get a Ipv4 address which is the same address as shown in eth0:avah. But it is not helping me connect to internet. I have a screenshot of my KNetworkManager. Can someone please suggest what is going on? It will be really helpful. Thanks a lot!

    Regds
    Sath
    Attached Files

    #2
    Re: trouble with internet connection

    What happens when you run this in a terminal:

    Code:
    sudo dhclient eth0
    Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

    Comment


      #3
      Re: trouble with internet connection

      Thanks for the reply. I tried this command on the terminal and it failed. Do you have any suggestions?


      Here is the output:

      sat@sat-laptop:~$ sudo dhclient eth0
      There is already a pid file /var/run/dhclient.pid with pid 8399
      killed old client process, removed PID file
      Internet Systems Consortium DHCP Client V3.0.5
      Copyright 2004-2006 Internet Systems Consortium.
      All rights reserved.
      For info, please visit http://www.isc.org/sw/dhcp/

      Listening on LPF/eth0/00:1c:23:1f:12:19
      Sending on LPF/eth0/00:1c:23:1f:12:19
      Sending on Socket/fallback
      DHCPREQUEST on eth0 to 255.255.255.255 port 67
      DHCPREQUEST on eth0 to 255.255.255.255 port 67
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
      No DHCPOFFERS received.
      Trying recorded lease 192.168.0.12
      PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.

      --- 192.168.0.254 ping statistics ---
      1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

      No working leases in persistent database - sleeping.
      sat@sat-laptop:~$

      Comment


        #4
        Re: trouble with internet connection

        What happens when you plug directly into your cable/dsl modem? Do you get a public IP?
        Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

        Comment


          #5
          Re: trouble with internet connection

          Guys, this problem got resolved. The source of the problem was something I did not imagine. It was my router (adsl freebox). I restarted it and things worked fine.

          The reason why I did not suspect my router was that I also have a windows machine always connected to it. My windows machine was working fine. The problem was with my kubuntu machine which I take along with me to my work. So when I got it back from work and connected it to my router, it could not connect to internet. This led me to think that there could be some problem with my linux machine. But it turns out that my router for some reason was not honoring new DHCP connections. When I restarted the router, everything turned out fine.

          Thanks a lot to all those who tried helping me (even though it was no fault of my linux machine).

          Comment


            #6
            Re: trouble with internet connection

            Thanks for posting your solution. I am having a similar problem and will try rebooting my router. It seems that my Linux machine connects after I boot my WinXP partition like I am now. It is almost like WinXP renews or checks out a lease and then Linux, Kubuntu, can use it. You can tell for sure by now that I know next to nothing about networking.

            I tried a sudo ifdown eth1 and a sudo ifup eth1. I got the results below. That is another thing. I only have one NIC card and it always comes up eth1 instead of eth0. I used to have two in this machine for some odd reason. Does it matter? If it does is there a way to change it? What does it mean that there is already a PID file?

            sudo ifup eth1 results:

            #####desktop:~$ sudo ifup eth1
            There is already a pid file /var/run/dhclient.eth1.pid with pid 134519120
            Internet Systems Consortium DHCP Client V3.0.5
            Copyright 2004-2006 Internet Systems Consortium.
            All rights reserved.
            For info, please visit http://www.isc.org/sw/dhcp/

            Listening on LPF/eth1/00:0d:61:a5:b5:51
            Sending on LPF/eth1/00:0d:61:a5:b5:51
            Sending on Socket/fallback
            DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
            DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
            DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 17
            No DHCPOFFERS received.
            No working leases in persistent database - sleeping.

            Comment


              #7
              Re: trouble with internet connection

              I'm not sure I understand your setup. Are you using some sort of virtualizaion (Vmware, VirtualBox) with XP as the host and Kubuntu as the guest?
              Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

              Comment


                #8
                Re: trouble with internet connection

                Sorry. I should have made that clear. I am running a dual boot setup on that machine. WinXP and Gutsy.

                Comment


                  #9
                  Re: trouble with internet connection

                  Originally posted by rbrown3rd
                  It seems that my Linux machine connects after I boot my WinXP partition like I am now. It is almost like WinXP renews or checks out a lease and then Linux, Kubuntu, can use it.
                  How are you booting two operating systems on one machine without using virtualization?
                  Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

                  Comment


                    #10
                    Re: trouble with internet connection

                    I use Grub to boot either one or the other. What I meant to say is that if my Kubuntu instance does not connect then a logout and a boot to WinXP followed a logout there and then another other visit to Kubuntu and all seems well. I think I am making it sound more complicated than it is.

                    Comment


                      #11
                      Re: trouble with internet connection

                      Oh, I thought you meant they were booted at the same time.

                      Can you show me the output of this file: /etc/network/interfaces
                      Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

                      Comment


                        #12
                        Re: trouble with internet connection

                        auto lo
                        iface lo inet loopback
                        address 127.0.0.1
                        netmask 255.0.0.0

                        iface eth1 inet dhcp

                        auto eth1

                        Comment


                          #13
                          Re: trouble with internet connection

                          How about this file:

                          Code:
                          cat /etc/iftab
                          Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

                          Comment


                            #14
                            Re: trouble with internet connection

                            Code:
                            # This file is no longer used and has been automatically replaced.
                            # See /etc/udev/rules.d/70-persistent-net.rules for more information.
                            #
                            
                            # This file assigns persistent names to network interfaces.
                            # See iftab(5) for syntax.
                            
                            ##eth0 mac 00:40:33:aa:23:9d arp 1
                            #eth1 mac 00:0d:61:a5:b5:51 arp 1
                            ..and then /etc/udev/rules.d/70-persistent-net.rules reads:

                            Code:
                            # This file maintains persistent names for network interfaces.
                            # See udev(7) for syntax.
                            #
                            # Entries are automatically added by the 75-persistent-net-generator.rules
                            # file; however you are also free to add your own entries.
                            
                            # Converted from /etc/iftab on upgrade
                            SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:40:33:aa:23:9d", ATTRS{type}=="1", NAME="eth0"
                            
                            # Converted from /etc/iftab on upgrade
                            SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0d:61:a5:b5:51", ATTRS{type}=="1", NAME="eth1"
                            and 75-persistent-net-generator.rules reads:
                            Code:
                            # these rules generate rules for persistent network device naming
                            
                            ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*|ath*|wlan*|ra*|sta*" \
                            	NAME!="?*", DRIVERS=="?*", GOTO="persistent_net_generator_do"
                            
                            GOTO="persistent_net_generator_end"
                            LABEL="persistent_net_generator_do"
                            
                            # build device description string to add a comment the generated rule
                            SUBSYSTEMS=="pci", ENV{COMMENT}="PCI device $attr{vendor}:$attr{device} ($attr{driver})"
                            SUBSYSTEMS=="usb", ENV{COMMENT}="USB device 0x$attr{idVendor}:0x$attr{idProduct} ($attr{driver})"
                            SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire device $attr{host_id})"
                            SUBSYSTEMS=="xen", ENV{COMMENT}="Xen virtual device"
                            ENV{COMMENT}=="", ENV{COMMENT}="$env{SUBSYSTEM} device ($attr{driver})"
                            
                            IMPORT{program}="write_net_rules $attr{address}"
                            ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
                            
                            LABEL="persistent_net_generator_end"
                            Can I just edit /etc/udev/rules.d/70-persistent-net.rules to read:


                            Code:
                            # This file maintains persistent names for network interfaces.
                            # See udev(7) for syntax.
                            #
                            # Entries are automatically added by the 75-persistent-net-generator.rules
                            # file; however you are also free to add your own entries.
                            
                            # Converted from /etc/iftab on upgrade
                            SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0d:61:a5:b5:51", ATTRS{type}=="1", NAME="eth0"
                            Where I just swapped the MAC address of eth1 to eth0?

                            By the way I have a many hour long video rendering job running and have WinXP running now for that purpose. I was able to use this great little utility, http://www.chrysocome.net/explore2fs , to access the files above.

                            Comment


                              #15
                              Re: trouble with internet connection

                              Originally posted by rbrown3rd

                              Can I just edit /etc/udev/rules.d/70-persistent-net.rules to read:


                              Code:
                              # This file maintains persistent names for network interfaces.
                              # See udev(7) for syntax.
                              #
                              # Entries are automatically added by the 75-persistent-net-generator.rules
                              # file; however you are also free to add your own entries.
                              
                              # Converted from /etc/iftab on upgrade
                              SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0d:61:a5:b5:51", ATTRS{type}=="1", NAME="eth0"
                              Where I just swapped the MAC address of eth1 to eth0?
                              That is what I would I would try. Make sure you reboot/restart networking after editing the file.
                              Kubuntu user?&nbsp; http://kubuntuway.net<br />Do you own reptiles? Click here http://redtailconnect.net

                              Comment

                              Working...
                              X