Roger,
yeah, I've got it to work manually as well - I'm trying to figure out why it
isn't working in the standard bootup scripts. - I can hack around the
problem, but I'm trying to get some advice on how to fix it properly.
Thanks for the response.
Richard
-Original Message-
From: Roger Sherman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 1:39 PM
To: Richard Warwick
Cc: [EMAIL PROTECTED]
Subject: Re: [newbie] CABLE MODEM NOT WORKING - DHCP_HOSTNAME in
init.d/networkand sbin/ifup
Hi Richard...I had a similar problem - eth0 just refused to initialize on
bootup, but I entered this command:
/sbin/dhcpcd -d -n -h [hostname]
And it would log right in, and log in on bootup most times thereafter.
Hope it helps!
peace,
Rog
http://www.slammingrooves.com
Registered Linux user #190719
On Tue, 19 Dec 2000, Richard Warwick wrote:
hi,
I installed mandrake 7.2 from the iso images, and I'm having trouble with
the dhcp client and the normal startup scripts. I think I see what
problem
might be occurring, but I'm not sure the best way to fix it.
I'm on an att cable modem, so my dhcpc command line needs to be something
like " dhcpc -h c55-a "
where c55-a is the hostname that ATT assigned to me. (I've changed
the
name to protect the guilty)
When I execute that command line manually, everything works just fine.
In the normal startup, the dhcp fails because evidently the dhcp hostname
is
not being passed.
I've figured out that the network startup script ( /etc/init.d/network )
calls the ( /sbin/ifup ) script.
and the ifup script seems to need the environment variable DHCP_HOSTNAME
set
in order to have that be included on the dhcpc command line.
the line 'DHCP_HOSTNAME=c55-a' is in the file /etc/sysconfig/network
which is being read by /etc/init.d/network
I added lines to the two main scripts to create a file with the
environment
variables,
set /var/richard
and in examining the output, I see the DHCP_HOSTNAME while in
/etc/init.d/network, but it is not there while executing /sbin/ifup
how do I fix this? has someone else had this problem? is it a bug in the
scripts from mandrake? or am I doing something wrong?
Thanks,
Richard Warwick
warwickr at usa dot net