[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dhc* in NetBSD 7.0
On 27/03/2013 10:23, Robert Elz wrote:
Date: Wed, 27 Mar 2013 09:01:23 +0000
From: Roy Marples <roy%marples.name@localhost>
| My recommendation is to let dhcpcd run for all interfaces and if
| needs limiting then use the allowinterfaces and/or denyinterfaces
| directive in dhcpcd.conf
An alternative would be to have the dhcpcd daemon process start very
and do nothing at all, and then send it interface names (over a local
or fifo) to use as they're discovered (which has the property of
better to interfaces that appear and disappear, without embedding
of which of those need dhcp into dhcpcd itself).
This actually works!
You add "denyinterfaces *" to dhcpcd.conf to stop it working on any
interfaces at startup.
Once dhcpcd is running you can then do
and that will instruct the currently running dhcpcd daemon to start
working on bge0.
So the only modification you need to make I think is to get dhcpcd to
start before rc.d/network
I'm sure there are other ways as well - dhcpcd.conf is fine for
what options to get, and what script to run, etc - but it isn't ideal
configuring something as dynamic as interface names (plug in a usb
dongle and a new one just appears - do I want dhcp or not ... editing
dhcpcd.conf isn't really the right solution, since the answer might
what ssid the wireless actually attaches to.)
That's the thing - dhcpcd is dynamic by nature, works by default for
hotplugged interfaces such as your usb wireless.
You can even configure in dhcpcd.conf per ssid options
# If we don't specify the ssid connected to then we assume DHCP
So I disagree with your assessment that dhcpcd.conf isn't ideal for
Main Index |
Thread Index |