[ Next-in-Thread ]  [ Next Message ] 

Question: DHCP with PCMCIA 

Forum: PCMCIA Network Adapter Issues
Date: 1999, Dec 06
From: Christopher Keller ckeller

I'm having a problem getting a DHCP client to automatically come up on boot up. It comes up fine after boot-up, which is why I think it's merely a configuration problem, rather than an incompatibility.

First the specifics:

Dell Inspiron 3200
Caldera 2.3 w/ kernel 2.2.10
PCMCIA 3.0.14
3COM 3CCFEM556B (ethernet + modem)

When I hook up to a network which is running a DHCP server the following happens (some is assumption, some is fact, please correct where appropriate):

Out of /etc/rc.d/rc2.d/S01network, it tries to start the DHCPcd client using the files in /etc/sysconfig/network-scripts. Specifically ifup-dhcp. THis fails, I'm assuming because the PCMCIA drivers haven't loaded yet. I haven't been able to find any error messages in the logs, but I've confirmed that the dhcpcd daemon is trying to run. I'm guessing it doesn't log because it doesn't get far enough along due to the drivers not being loaded (although I have confirmed that eth0 is up). Anyway...along comes S07pcmcia. Once again, dhcp setup is tried (this time using cardmgr). I get the following messages in /var/log/messages:
 
cardmgr[572]: + Trying to obtain network configuration via DHCP.
kernel: eth0: found link beat
kernel: eth0: autonegotiation complete: 100baseT-HD selected
kernel: eth0: remote fault detected
dhcpcd[587]: timed out waiting for a valid DHCP server response
cardmgr[572]: + No response from DHCP server
cardmgr[572]: + eth0: initialization failed

and so on....

At any rate, once the login screen comes up, I can log in as root and do a manual "network start eth0" and dhcp comes up perfectly. No problems whatsoever. Or I can accomplish the same thing by the scripts in /etc/sysconfig/network-scripts/ifup-dhcp.

So, it makes sense that the first attempt out of S01network fails, as there are no PCMCIA drivers yet loaded. But the second attempt (above) out of S07pcmcia should work. I can't believe I'm the only one trying to run DHCP on a laptop, so if someone could point me the right way, I'd much appreciate it.

The easy solution might be to write a S99dhcp file and kludge the thing together. However, if there is a problem with my knowledge or the PCMCIA packages, I'd rather solve that.

TIA....

-Chris

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ All ]  Outline: [ 1 ]  [ 2 ]  [ All ] 

Not sure if this is Caldera specific

Re: Question: DHCP with PCMCIA (Christopher Keller)
Date: 1999, Dec 06
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I don't think it is possible to narrow down the problem based on just
this information.  Are you sure that dhcpcd is being started prior to
when PCMCIA loads?  (are there system log messages from a second copy
of dhcpcd?)  I am not familiar with Caldera, but to the extent it is
based on Red Hat, I know that Red Hat checks for and delays startup of
a PCMCIA network device to avoid exactly this problem.  It would be
strange for Caldera to have un-done this.

Another simple thing to try, is to boot with the card out, then plug
it in and see what happens.  That will distinguish between various
sorts of boot-time sequencing problems, and PCMCIA startup problems.

> cardmgr[572]: + Trying to obtain network configuration via DHCP.
> kernel: eth0: found link beat
> kernel: eth0: autonegotiation complete: 100baseT-HD selected
> kernel: eth0: remote fault detected
> dhcpcd[587]: timed out waiting for a valid DHCP server response

The timing here concerns me, because it looks like dhcpcd may be
having trouble because the card has a delay before it has properly
sensed the link speed.

-- Dave
1. Hate to say it, but even Red Hat is having trouble with DHCP and PCMCIA by Nathan Hartwell, 2000, Jan 17
(_ Don't be so sure! by David Hinds, 2000, Jan 17
(_ quite right....it wasn't a PCMCIA issue, but a DHCP issue by Nathan Hartwell, 2000, Jan 19
DHCP with PCMCIA


[ Add Message ]  to: "DHCP with PCMCIA"

[ Members ]  [ Subscribe ]  [ Admin Mode ] 
[ Show Frames ]  [ Help for HyperNews at pcmcia-cs.sourceforge.net 1.10 ]