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 c555555-a "
where c555555-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=c555555-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



Reply via email to