Re: Restrict dhclient to 1 interface?
On Mon, 16 Jul 2001, John Bagdanoff wrote:
> > How do you configure dhclient to only
> > seek servers on specified interfaces?
> Ahh, just did this last night. In /etc/dhclient.conf:
>
> interface "eth0" {
> send host-name "your_hostname";
> send dhcp-client-identifier 1:your_ethernet_address;
> send dhcp-lease-time 86400;
> }
Thanks.
Another look at the man page revealed the [if0 [ ... ifN]
parameters and my poor first reading of TFM.
Simply "dhclient eth0" restricts the search. I added
a DHCLIENTSTARTOPTS variable to /etc/init.d/dhcp-client.
--
rob Live the dream.
Reply to: