> > > 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.      \\  m...@smith.net.au
\\  The race is long, and in the  \\  msm...@freebsd.org
\\  end it's only with yourself.  \\  msm...@cdrom.com



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

Reply via email to