Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
never solved wonder problem
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
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Wed Jul 21, 2004 5:56 am    Post subject: never solved wonder problem Reply with quote

dhcpcd. what is it and why it so quirky?

here's what i've found:
dhcp from net.eth0 -- 2 minutes to fail.
dhcpcd from command line, first run -- 2 minutes, fail, but only some times...
dhcpcd from command line, second run -- 5 seconds, works
dhcpcd from command line, third run -- instant, works
dhcpcd from local.start -- sometimes works in 5 seconds, sometimes hangs computer.

i've had the netmount not started problem in the past and none of the posted solutions worked for that. i can post config files if needed. i've had this problem for 4 months.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20584

PostPosted: Wed Jul 21, 2004 3:55 pm    Post subject: Reply with quote

dhcpcd is a dhcp client daemon used to get IP address information from a dhcp server.

You might consider something similar described in this thread for when you aren't using networking.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Wed Jul 21, 2004 5:23 pm    Post subject: Reply with quote

It would be enormously helpful if you could add the "-d" option to your /etc/conf.d/net dhcpcd option entry. This will log dhcpcd's attempts to obtain a DHCP-delivered address.

Also, we'll need to see the command lines you are running in each instance, or the /etc/conf.d/net file for starting from net.eth0.

Can we assume that you are always connected when bringing up the system? Is there a link to an older post?
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Wed Jul 21, 2004 10:05 pm    Post subject: Reply with quote

no the issue is that i am using networking, but dhcdcd has erratic behavior -- sometimes it takes 2 minutes to fail, sometimes it works in 3 seconds... placing any dhcpcd call in the boot order will increase the boot time by 2 minutes...

i will attempt the -d option. who knows, maybe logging will somehow fix it...

i'll try to find my older post where i was trying to fix the "netmount not started" issue. IIRC it came down to a possible IRQ conflict. i figured there had to be some way to automatically fix this at boot because i could do it manually with the dhcp - kill - dhcp thing.
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Wed Jul 21, 2004 11:12 pm    Post subject: Reply with quote

update, -d didn't really do much. it only listed my MAC address. possibly this means dhcpcd wasn't attempting to get an address? in anycase, with the extra dhcdpcd calls, it now works, albeit it takes an extra 2 minutes to boot... so i guess it didn't work.

conf.d/net:
Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="-d"

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"

Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Wed Jul 21, 2004 11:49 pm    Post subject: Reply with quote

I had similar problems with my via-rhine card. I ended up having to compile the card in as a module and with the optional support for use MMIO instead of PIO that was available for the via-rhine module. So what I'm saying is that all of my problems related to the network turned out to be my fault for not compiling the correct support into the kernel.

chris
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Thu Jul 22, 2004 3:33 pm    Post subject: Reply with quote

The purpose of using dhcpcd logging is not to fix the problem, but to find out why dhcpcd is having trouble getting an address. If you're waiting 2 minutes when it tries to start at boot, that usually means your attempt to obtain a DHCP address is failing and timing out. A successful session looks something like this (from /var/log/messages):

Code:

Jul 22 15:20:43 localhost e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Jul 22 15:20:43 localhost dhcpcd[31216]: broadcasting DHCP_REQUEST for 1.2.3.4
Jul 22 15:20:43 localhost dhcpcd[31216]: broadcastAddr option is missing in DHCP server response. Assuming 1.2.3.255
Jul 22 15:20:43 localhost dhcpcd[31216]: dhcpIPaddrLeaseTime=82800 in DHCP server response.
Jul 22 15:20:43 localhost dhcpcd[31216]: dhcpT1value is missing in DHCP server response. Assuming 41400 sec
Jul 22 15:20:43 localhost dhcpcd[31216]: dhcpT2value is missing in DHCP server response. Assuming 72450 sec
Jul 22 15:20:43 localhost dhcpcd[31216]: DHCP_ACK received from  (1.2.3.254)
Jul 22 15:20:43 localhost dhcpcd[31216]: No resolv.conf.sv to restore
Jul 22 15:20:53 localhost eth0: no IPv6 routers present


If dhcpcd is having problems, it will show up in /var/log/messages (or wherever your syslog stores the log) -- you'll see multiple broadcasts without a response or some error messages. Double check your network card settings with ethtool or mii-tool, if they work on your card.

If you are successful in getting an IP address and getting connected, the contents of /var/lib/dhcpc/dhcpcd-eth0.info might be helpful.

Do you have any trouble with your networking once the interface is up?
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Thu Jul 22, 2004 3:36 pm    Post subject: Reply with quote

heh, semi-fixed.

i got love 2.6.8-rc2 to work. amazingly now dhcpcd -d gives a reason for failing (network down) and just fails, outright fails. no waiting, just fail. then my dhcpcd script works its magic and i've got a normal boot.

couple that with bootsplash even partially working, and 2.6.8 seems to be the saviour i hoped it was. if sound isn't messed up, i may just have to name my first child after 2.6.8!
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