Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] DHCP not working (but network is)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Jun 05, 2005 10:42 am    Post subject: [SOLVED] DHCP not working (but network is) Reply with quote

I've just installed Gentoo on a DELL Inspiron 6000 laptop, and I'm having a strange problem in getting the network working - namely DHCP fails to set up an IP address for the machine.

If I set up the network by hand, using ifconfig and route, it all works fine, so I don't think it's a driver issue. If I boot into XP (it's a dual boot machine), then XP gets an address just fine, so it's probably not the DHCP server.

I have iface_eth0="dhcp" in /etc/conf.d/net, which I'm pretty sure is correct.

If I run "dhcpcd -d" from the command line (as root), I get the following log messages (transcribed):

dhcpcd: broadcasting DHCP_DISCOVER
b44: eth0: Link is up at 100Mbps, full duplex
b44: eth0: Flow control is on for TX and on for RX
NETDEV WATCHDOG: eth0: transmit timed out
b44: eth0: transmit timed out, resetting
b44: eth0: Link is down
...
dhcpcd: time out waiting for a valid DHCP server response

I'm guessing it may be a kernel option somewhere. I have found 'DHCP support', which I've enabled. Are there any other kernel options needed in order to get DHCP working?

Cheers.


Last edited by samuel.penn on Sun Jun 05, 2005 3:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun Jun 05, 2005 11:38 am    Post subject: Reply with quote

hi,

do you have the following kernel option :
Code:
Device Drivers  --->
    Networking support  --->
        Networking options  --->
            <*> Packet socket
            [*]   Packet socket: mmapped IO

:?:
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Jun 05, 2005 1:02 pm    Post subject: Reply with quote

kernel_sensei wrote:
hi,

do you have the following kernel option :
Code:
Device Drivers  --->
    Networking support  --->
        Networking options  --->
            <*> Packet socket
            [*]   Packet socket: mmapped IO

:?:


Yes. As well as IP: DHCP support.
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun Jun 05, 2005 1:05 pm    Post subject: Reply with quote

hum ... did you try with pump :

Code:
pump -i <interface>


pump is in the package net-misc/pump
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Jun 05, 2005 1:21 pm    Post subject: pump Reply with quote

pump... I haven't used that for years!

Still no success, /var/log/messages gives:

Jun 5 15:17:24 hugin pumpd[11821]: PUMP: sending discover
Jun 5 15:17:24 hugin pumpd[11821]: breq: opcode: 1
Jun 5 15:17:24 hugin pumpd[11821]: breq: hw: 1
Jun 5 15:17:24 hugin pumpd[11821]: breq: hwlength: 6
Jun 5 15:17:24 hugin pumpd[11821]: breq: hopcount: 0
Jun 5 15:17:24 hugin pumpd[11821]: breq: xid: 0x7a436098
Jun 5 15:17:24 hugin pumpd[11821]: breq: secs: 0
Jun 5 15:17:24 hugin pumpd[11821]: breq: flags: 0x0000
Jun 5 15:17:24 hugin pumpd[11821]: breq: ciaddr: 0.0.0.0
Jun 5 15:17:24 hugin pumpd[11821]: breq: yiaddr: 0.0.0.0
Jun 5 15:17:24 hugin pumpd[11821]: breq: server_ip: 0.0.0.0
Jun 5 15:17:24 hugin pumpd[11821]: breq: bootp_gw_ip: 0.0.0.0
Jun 5 15:17:24 hugin pumpd[11821]: breq: hwaddr:
Jun 5 15:17:24 hugin pumpd[11821]: breq: servername:
Jun 5 15:17:24 hugin pumpd[11821]: breq: bootfile:
Jun 5 15:17:24 hugin pumpd[11821]: breq: vendor: 0x63 0x53 0x82 0x63
Jun 5 15:17:24 hugin pumpd[11821]: breq: vendor: 53 1 0x01
Jun 5 15:17:24 hugin pumpd[11821]: breq: vendor: 0xff
Jun 5 15:17:27 hugin b44: eth0: Link is up at 100 Mbps, full duplex.
Jun 5 15:17:27 hugin b44: eth0: Flow control is on for TX and on for RX.
Jun 5 15:17:32 hugin NETDEV WATCHDOG: eth0: transmit timed out
Jun 5 15:17:32 hugin b44: eth0: transmit timed out, resetting
Jun 5 15:17:32 hugin b44: eth0: Link is down.
Jun 5 15:17:35 hugin eth0: no IPv6 routers present
Jun 5 15:17:35 hugin b44: eth0: Link is up at 100 Mbps, full duplex.
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun Jun 05, 2005 1:23 pm    Post subject: Reply with quote

hum, do you use ipv6 ? do you have the ipv6 module loaded ?

if you have this module loaded ans don't use ipv6, try to unload it and retry
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Jun 05, 2005 2:01 pm    Post subject: My kernel config Reply with quote

There was no IPv6 support. I've enabled some things (most networking options I didn't think were needed, such as multicast routing etc) and disabled some other stuff which I definitely don't need (unwanted drivers, ISDN etc) and tried again, but still no luck. My kernel was originally a genkernel, but I've hacked around with it a lot sense then.

My kernel config is attached below.

http://www.glendale.org.uk/~sam/config
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun Jun 05, 2005 2:03 pm    Post subject: Reply with quote

does it work with the liveCD ?

if yes, check the differences between the liveCD's kernel config and your actual config
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Jun 05, 2005 3:16 pm    Post subject: Solved Reply with quote

kernel_sensei wrote:
does it work with the liveCD ?


Just double checked it, and no, it doesn't. I seem to be getting the same behaviour from the LiveCD.

However, I'm pretty certain that it worked from SuSE 9.2 (I installed this first to make use of the NTFS partitioning features). Actually, I'm sure I did select the 'test network' feature of the SuSE install, and that definitely would have used DHCP. That did work.

So... something about Gentoo which is causing DHCP and pump not to work.

etherape and ethereal show UDP packets going out to 255.255.255.255 when DHCP starts up....

Oh F**K.

Lots of swearing. Deep breath.

We had a power cut Saturday morning, and all my machines fell over. Including the server. I tested SuSE Friday night, and XP was logged onto my network Friday night.

I'm running udhcpd on my server, which doesn't have an init script (at least, one isn't provided by net-misc/udhcp-0.9.8-r3) . Obviously, this didn't start on Saturday when everything came back up, which is why DHCP hasn't been working.

XP is simply remembering the settings from Friday night, which of course still work, which has made me think that the server was working fine.

Bummer.

Apologies for wasting people's time with stupid user error.
My next task is to write an init script for udhcp.
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun Jun 05, 2005 3:27 pm    Post subject: Re: Solved Reply with quote

samuel.penn wrote:
...
Oh F**K.

Lots of swearing. Deep breath.

We had a power cut Saturday morning, and all my machines fell over. Including the server. I tested SuSE Friday night, and XP was logged onto my network Friday night.

I'm running udhcpd on my server, which doesn't have an init script (at least, one isn't provided by net-misc/udhcp-0.9.8-r3) . Obviously, this didn't start on Saturday when everything came back up, which is why DHCP hasn't been working.

XP is simply remembering the settings from Friday night, which of course still work, which has made me think that the server was working fine.

Bummer.

Apologies for wasting people's time with stupid user error.
My next task is to write an init script for udhcp.


No problem :lol:
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum