Announcement

Collapse
No announcement yet.

DHCP doesn't seem to work, manually setting does

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

    DHCP doesn't seem to work, manually setting does

    I'll preface this with I switched motherboards.

    Was pretty much a straight swap. Took an Abit KN9 SLI motherboard out and put in an Intel DQ35JO board.

    I had tested the Intel board with a fresh install of Kubuntu and XP, both worked. (However that was Intrepid, this is Jaunty).

    If I manually set the IP and gateway, I can get online. But DHCP doesn't want to work.

    Code:
    lspci | grep Ethernet
    00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
    It's using the e1000e driver and see's it on eth2. There is no eth0 or eth1 in the system. (Can I force it back to eth0?)

    So if I manually set the IP and gateway, I can get online, but DHCPDISCOVER just loops. I let it run for about 10mins one time and just kept going. Set the IP/gway manually and it worked fine. Any ideas?
    https://www.linuxcounter.net/user/267216

    #2
    Re: DHCP doesn't seem to work, manually setting does

    I think you will find a file, /etc/udev/rules.d/70-persistent-net.rules that associates a MAC address with and interface and you must have eth0 and eth1 already used in that file so this one got eth2. I am not sure why that causes DHCP to fail but I suspect that if you straighten out the eth2 business it will begin to work.

    Did you have different ethernet cards before replacing the MB?

    Comment


      #3
      Re: DHCP doesn't seem to work, manually setting does

      Yes, the previous motherboard had 2 NICs onboard, this one only has one. The chipset is different on this motherboard as well. I'll check that file when I get home and see if stirring it with a stick helps.
      https://www.linuxcounter.net/user/267216

      Comment


        #4
        Re: DHCP doesn't seem to work, manually setting does

        Alright, I just commented out everything in there and rebooted. So now we are back to eth0. However doing a:

        sudo /etc/init.d/networking restart

        yields half a dozen DHCPDISCOVERS and never finds. The switch looks like someone is broadcasting, all the ACT lights flash. But it doesn't get a DHCP address. Again, XP works fine. So I set a static IP and default gw, and I'm on.
        https://www.linuxcounter.net/user/267216

        Comment


          #5
          Re: DHCP doesn't seem to work, manually setting does

          This is interesting. The negotiations should be the same if you have not updated your dhcpcd (client software) or the DHCP server. It seems the auto-negotiation of the ethernet is working since a static IP works. You may well find messages in /var/log/syslog that will give you some insight into what is happening.

          It just occurred to me some routers/modems will use MAC filtering in which you need to tell it the MAC address of your network card before they will allow a connection.

          Comment


            #6
            Re: DHCP doesn't seem to work, manually setting does

            DHCP server didn't change and just to be sure I took out the old MAC assignment.

            Right now, the only way I can get online is to manually set IP and gateway... or use WICD to statically set it, which is what I'm doing now. Anything I can look at to determine why DHCP isn't working on here?
            https://www.linuxcounter.net/user/267216

            Comment


              #7
              Re: DHCP doesn't seem to work, manually setting does

              Did you add the new MAC to the MAC filter on the modem?

              Comment

              Working...
              X