Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Feb 1999 11:33:04 -0800
From:      Mike Smith <mike@smith.net.au>
To:        obrien@FreeBSD.ORG
Cc:        Mike Smith <mike@smith.net.au>, current@FreeBSD.ORG
Subject:   Re: adding DHCP client to src/contrib/ 
Message-ID:  <199902091933.LAA04425@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 09 Feb 1999 11:09:35 PST." <19990209110935.A29090@relay.nuxi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > > Most basic, you would have ``network_interfaces="lo0 fxp0"'' as usual,
> > > but no "ifconfig_fxp0="inet ...." line.
> > 
> > then specify a 'DHCP' token to have all non-listed interfaces do the
> > DHCP thing, eg:
> > 
> > network_interfaces="lo0 dhcp"
> 
> Hum... can you give a little more of the approach?  I'm probably just not
> seeing the clean way of doing this.

The ISC dhclient can (IRC) take a list of interfaces not to muck with.  
Just pass it all the interface names on the list, minus the 'dhcp'.  If 
you find 'dhcp' in $network_interfaces, start dhclient.

> I've got a machine on the DHCP required network with two NICs.  Currently
> I'm only using one of them and thus don't have it listed in
> ``network_interfaces''.  So it just happily sits there.  IMHO we
> shouldn't try to dhcp configure it.  It will just fill up logs as it
> continues to try to get a lease which it can't.

In a situation like that, you would just tune the dhcp client not to 
ask for a lease on that interface.  You know you've done something 
silly; there's a mechanism to stop it breaking things.  What more could 
you ask for?

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902091933.LAA04425>