Dhclient problem

Rick Stevens rstevens at internap.com
Tue Oct 23 23:19:05 UTC 2007


On Tue, 2007-10-23 at 19:09 -0400, Wandell, Doug wrote:
>  'prepend routers 0.0.0.0' in /etc/dhclient.conf works!  Thank you very
> much.  I'm guessing I can use an 'option router' statement in my subnet
> declaration on the server side as well...?  I'll experiment.

You could if you wanted the DHCP clients to use a different router
than the one the server uses.

The "prepend" bit on the client just sets up any old router.  That'd
be overwritten by what the server hands back.

>   Thanks
> again.

Glad to help.  Oh, and Doug, we kinda prefer bottom-posting here.  Not
a biggie, just thought you'd like to know.

> On Tue, 2007-10-23 at 18:25 -0400, Wandell, Doug wrote:
> > On Tue, 23 Oct 2007 17:37:10 -0400
> > "Wandell, Doug" <dwandell at mitre.org> took out a #2 pencil and
> > scribbled:
> > 
> > > I've rolled an FC6 live cd that configures eth0 via dhcp. The
> > > default configuration works fine
> > > - /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0
> > > ONBOOT=yes
> > > BOOTPROTO=dhcp
> > > HWADDR=<MAC address>
> > >  
> > > In Wireshark, I see the DHCP Discover, Offer, and ACK. No problem.
> > >  
> > > As soon as I add:
> > > DHCLIENTARGS="-s 192.168.1.100"
> > >  
> > > to /etc/sysconfig/network, dhclient hangs indefinitely. Using
> > > Wireshark on the dhcp server, I can see the DHCP Discover packets
> > > coming in, and the server's DHCP Offer response. But the FC box
> > > won't accept the offer.
> > >  
> > > Anybody know what's going on here?
> > 
> > Have you attempted to run dhclient in the foreground to see what
> > it's doing or possibly spitting to the terminal? Something like
> > 
> > dhclient -d -s 192.168.1.100 
> > 
> > This should force it to stay in the foreground and you can see what
> > is happening. I forget where dhclient logs. I
> > think /var/log/messages...but if you've been muckin' around a
> > lot you may have to grep for the dhclient entries.
> > 
> > -- 
> > ethericalzen at gmail.com
> > Life is a prison, death is a release
> > 
> > 
> > I'm making some progress - It looks like dhclient cannot reply to the
> > server while running in -s mode due to the lack of a gateway being
> > configured.  I ran dhclient as you suggested - there was no output,
> but
> > while it hung, I issued a 'route add default dev eth0' in another
> > terminal and boom, it worked.
> > 
> > Somewhere in the back of my leaky brain I seem to remember a bug
> report
> > citing something similar.  Bugzilla is my next stop if I can't figure
> > out how to coax dhclient into setting a gateway.
> 
> You can add "prepend routers www.xxx.yyy.zzz" to /etc/dhclient.conf.
> 
> ----------------------------------------------------------------------
> - Rick Stevens, Principal Engineer             rstevens at internap.com -
> - CDN Systems, Internap, Inc.                http://www.internap.com -
> -                                                                    -
> -         C program run. C program crash. C programmer quit.         -
> ----------------------------------------------------------------------
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> 
----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens at internap.com -
- CDN Systems, Internap, Inc.                http://www.internap.com -
-                                                                    -
-      A day for firm decisions!!!   Well, then again, maybe not!    -
----------------------------------------------------------------------




More information about the users mailing list