On Wed, 14 Jul 1999, Matthew A Stegman wrote:

> Ah-ha!  At last, oh long last, I have Internet access from Linux once
> again!  Ah, I am filled with elation, joy, happiness, etc.
> 
> I think I managed to upgrade the DHCP client, but I'm not sure.  I booted
> into Windows, jotted down the info, then hit the reset button, went into
> Linux, set it up for a static IP, and when I exited netconf, everything
> worked great!  Well, I thought, at least I'll have a few hours- until the
> lease expires at 2:30 this morning.
> 
> I fooled around on the net for a while, then found a DCHP-mini-HOWTO
> (I'd looked for one before, but never found it until tonight). It gave a
> couple URLs for a DHCP client- dhcpcd.  I downloaded ver 1.3.17, which I
> was instructed to use with 2.2.x kernels.  After installation, I ran it.
> My connection was immediately lost.  Aw, crap, I said to myself. Now I
> have to restart the eth0 interface.  At least I don't have to reboot (as
> if I were in Windows). 
> 
> On a whim, I decided to try DHCP through netconf again.  I removed the IP,
> gateway, DNS, etc. and exited.  Upon activating the changes...
> 
> I can ping www.linuxmandrake.com!  I can telnet to my University's system!
> 
> I decided to press my luck, and typed 'pump -i eth0 -R' (renew the IP
> lease). It worked, too!

IIRC, pump and dhcpcd wren't intended to be used together
 
> > On or about line 86 in /etc/sysconfig/network-scripts/ip{up|down}
> > 
> > replace /usr/sbin/pump -i $DEVICE
> > with  /usr/sbin/punp -i $DEVICE -h $HOSTNAME
> > Sorry i can't test it, the @home techs here aren't smart enough to etup
> > dhcp which is more than fine with me

Yes I ment /sbin/pump

> I hope you meant to say '/sbin/pump' because /usr/sbin/pump (or punp) does
> not exist on my system.  Even so, if I read the pump man page right, then
> you're just having me request a specific hostname.  How does this help?
> If I can't get a server-assigned IP address in the first place, how
> could I get a specific, client-requested one?
> Also, in /etc/sysconfig/network-scripts/ifdown the command was 
>      pump -r -i ${DEVICE}
> So, I appended '-h ${HOSTNAME}' instead.  May I ask what the braces do? 

What version initscripts do you have? I don't think that -r belongs there

Maybe a bash wizard can fill this in more but the braces determine scope,
global or local to the function or file, and such. I'm sure it's
documented somewhere.

The -h is needed for broken dhcpd's
(this is from man dhcpcd but the bug is still relevent)
"-h hostname
   specifies a string used for the hostname option field when dhcpcd 
   sends DHCP messages. Some  DHCP  servers  require  the  hostname
   option field containing a specific string in the DHCP messages from clients."

also IIRC, it's not so much a specific string just anything but NULL

> Thanks, everyone, for your help.  It is refreshing to be using Linux on
> the 'net again.
> 
> -Matt Stegman
> <[EMAIL PROTECTED]>
> 
> 
> 

Reply via email to