On 2014-11-04, Jason Adams <[email protected]> wrote: > On 11/04/2014 11:52 AM, Ted Unangst wrote: >> On Tue, Nov 04, 2014 at 11:21, Jason Adams wrote: >> >>> So can anyone point me to the settings where the sequence of bringing up >>> interfaces is controlled at >>> boot time? Or am I just going to have to set default gateway after it is >>> booted by something in >>> rc.local? >> /etc/netstart executes hostname.* which will be in alphabetical, then >> numerical, order. echo /etc/hostname.* will show you the order if you >> want to check it. > > Yes, well that's the problem. I need them brought up in non-alphabetical > order.
That will probably only work temporarily (if at all), I think the lease will expire and get refreshed. > But Jan Vlach sent me a message (not via list) that I might be able to add > a "ignore routers" option to the hostname.if file that I do not > want as a gateway. That needs to go in a dhclient config file, you'll need different config files for each interface and run dhclient from a hostname.if line like "!dhclient -c /etc/dhclient-nogw em0". This is a bit of an unusual setup though. Normally on a host which has both "internal" and "internet" interfaces you would hardcode the address of the internal one.

