Announcement

Collapse
No announcement yet.

Wireless ethernet not getting DHCP lease on boot

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

    Wireless ethernet not getting DHCP lease on boot

    I recently installed Kubuntu on my laptop, which has two ethernet interfaces (excluding lo0). The first one is a wired connection which I seldom use. Interface eth1 is a wireless that operates correctly, except that it never gets a DHCP lease on boot. Every time I boot I have to give the command
    Code:
    sudo dhclient eth1
    to get an IP address for the wireless.
    I have read a few recommendations on the issue but none have made any difference so far. Most recently I used apt-get to uninstall both network-manager and network-manager-kde and then put the following lines into my /etc/networks/interfaces
    Code:
    iface eth1 inet dhcp
    wireless-essid linksys
    But this made no difference.
    What should I try next?

    #2
    Re: Wireless ethernet not getting DHCP lease on boot

    Your /etc/network/interfaces file should (normally, on a 'vanilla' network setup) only have the following entries:
    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


      #3
      Re: Wireless ethernet not getting DHCP lease on boot

      I tried commenting out the lines regarding eth1 in that file, and that did not work, either. I suspect I am missing something beyond that file, but I don't know where.

      Can't I just invoke dhclient for eth1 in a file in /etc/rc.d ? That would solve my problem and then I wouldn't have to worry about the /etc/networks/interfaces file.

      Comment


        #4
        Re: Wireless ethernet not getting DHCP lease on boot

        Since making the change, have you restarted?
        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: Wireless ethernet not getting DHCP lease on boot

          Since making the change, have you restarted?
          Yes I have booted both with and without those lines active in /etc/networks/interfaces. In both cases I have to manually invoke
          Code:
          sudo dhclient eth1
          In order to get a DHCP license for my wireless card.

          Comment


            #6
            Re: Wireless ethernet not getting DHCP lease on boot

            Try installing wicd. It invokes DHCP automatically. On my PC in this Kubuntu release I had issues with knetwork manager or whatever it is called now and since I have switched to wicd I have no problems. On my laptop, on the other hand, my wifi is sometimes not recognised by wicd but my guess is it is not problem of wicd but rather of ath0 which is in my case wireless interface. Nevertheless I would recommend you to give wicd a try.
            Kubuntu user since August 2007&nbsp; <br /><br />CPU : Intel® Core™2 Duo processor, E6550-2,33GHz,1333MHz,4MBL2 BOX<br />RAM : DDR 2, 2x 512 MB . 800MHz . CL 5,0&nbsp; Kingston<br />VGA : GAINWARD Nvidia 8500GT 256MB, SilentFX, GDDR3, 2xDVI, PCI-E<br />Karmic Koala 32-bit

            Comment


              #7
              Re: Wireless ethernet not getting DHCP lease on boot

              I am not familiar with wicd - how do I install it? Apt-get did not find Wicd or wicd.

              Comment


                #8
                Re: Wireless ethernet not getting DHCP lease on boot

                Originally posted by mantazz
                I am not familiar with wicd - how do I install it? Apt-get did not find Wicd or wicd.
                Follow instructions on http://wicd.net/download.php section "Installing Wicd in Ubuntu"
                Kubuntu user since August 2007&nbsp; <br /><br />CPU : Intel® Core™2 Duo processor, E6550-2,33GHz,1333MHz,4MBL2 BOX<br />RAM : DDR 2, 2x 512 MB . 800MHz . CL 5,0&nbsp; Kingston<br />VGA : GAINWARD Nvidia 8500GT 256MB, SilentFX, GDDR3, 2xDVI, PCI-E<br />Karmic Koala 32-bit

                Comment

                Working...
                X