Subject: Re: DHCP Configuration Problems
To: None <netbsd-help@netbsd.org, port-mac68k@netbsd.org>
From: Gene ENonymous <yancm@freeshell.org>
List: netbsd-help
Date: 03/27/2002 22:00:12
Thanks for all the good advice. My DHCP client interface is now
behaving exactly like my win98 box. The odd thing is, I think I would
have been alright IF I hadn't attempted to write my own dhclient.conf.
I feel this is a deficiency in the DHCP FAQ (client config portion):
http://netbsd.org/Documentation/network/dhcp.html .
One more question (for now):
Is there any way to get a listing of the information the DHCP
server gave to my interface?
How would I go about updating the DHCP client FAQ?
(I would be glad to edit the HTML and submit it to
someone to post on the site...)
Currently it applies to 1.3.x and 1.4.x.
Basically I would index down the current information on 1.4.x and 1.3.x.
I would add a section:
#########################################################################
Configure DHCP Client (1.5.x):
-----------------------------
With the 1.5.x release, /etc/dhclient.conf should not be necessary
for common client configurations. (default behavior should be
similar to the default DHCP client in other popular software)
In the event that dhclient.conf should be needed, note that
/etc/dhclient-script is now located in /sbin/dhclient-script
(but dhclient should not need to be told this explicitly).
To configure an interface (sn0 for example)
in the /etc/rc.conf file change (or add):
dhclient=YES
dhclient_flags="sn0" # blank: config all interfaces
[editorial: I received one good tip to add to the commentary
for the 1.4.x configuration portion]
Configure DHCP Client (1.4.x):
-----------------------------
[keeping all the good stuff there except this portion of the
dhclient.conf example lines...]
send dhcp-client-identifier "myident"; <=== Put your host
identifier here.
(this is often times
1:aa:bb:cc:dd:ee:ff,
where aa:bb... is
your sn0 MAC addr.).
#########################################################################
I got several more tips (See Robert Elz response in this thread)
about a dhclient config file, but I don't feel qualified to decide if
they should go in the FAQ. If you think his advice belongs there, (and
someone gives me engouragement and/or "the go-ahead"), I will write it
up for the FAQ.
thanks,
gene