[wplug] Using a specific DHCP server?

Poyner, Brandon bpoyner at ccac.edu
Wed Oct 4 12:19:55 EDT 2006


It looks like there are two ways, assuming that you can't configure the
dhcp servers.  You can tell dhclient not to broadcast the dhcp request
and instead send it to a specific server.  This is ok for debugging but
shouldn't be used in production.
 
       The DHCP client normally transmits  any  protocol  messages  it
sends
       before  acquiring  an  IP  address to, 255.255.255.255, the IP
limited
       broadcast address.   For debugging purposes, it may be useful to
have
       the  server  transmit these messages to some other address.
This can
       be specified with the -s flag, followed by the IP  address  or
domain
       name of the destination.

You can also put a setting in dhclient.conf to ignore DHCP replies from
specific ip addresses.  Again this isn't ideal.
 
        reject ip-address;
 
       The reject statement causes the DHCP  client  to  reject  offers
from
       servers  who  use the specified address as a server identifier.
This
       can be used to avoid being configured by rogue or  misconfigured
dhcp
       servers,  although  it  should be a last resort - better to track
down
       the bad DHCP server and fix it.

 
Brandon Poyner
Network Engineer III
CCAC - College Office
412-237-3086
 


  _____  

	From: wplug-bounces+bpoyner=ccac.edu at wplug.org
[mailto:wplug-bounces+bpoyner=ccac.edu at wplug.org] On Behalf Of Mike
	Sent: Wednesday, October 04, 2006 12:05 PM
	To: General user list
	Subject: [wplug] Using a specific DHCP server?
	
	

	I have an odd situation, I have a Redhat workstation on a
network with multiple DHCP servers.  
	
	How can I setup the interface to always go to one paticular DHCP
server for it's address?  I was thinking
	do some forwarding with iptables, but that won't work since the
interface doesn't have an address yet. 
	
	Any ideas?  
	
	-Mike
	
	
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20061004/2fb8f9d7/attachment.html


More information about the wplug mailing list