[RFC] ifconfig description support in rc.d

Garrett Cooper gcooper at FreeBSD.org
Mon Oct 11 05:34:25 UTC 2010


On Sun, Oct 10, 2010 at 10:30 PM, jhell <jhell at dataix.net> wrote:
> On 10/10/2010 13:23, Garrett Cooper wrote:
>> <offtopic>
>>     I'm not sure it would get resolved after this commit, but one
>> minor annoyance is that restarting the netif rc.d script purges all
>> gateways set, so I have to do and restart the routing rc.d script (if
>> my connectivity doesn't get whacked). I think there was something else
>> with natd and ipfw that I've run into in the past where I've restarted
>> those scripts and things weren't all puppydogs and rainbows on my
>> CURRENT systems.
>> </offtopic>
>> Thanks,
>> -Garrett
>
> Is that the dynamic routes only or also the static routes ?
>
> Either or if it would be any of the above it would be nice if these were
> kept if it was only a restart of the interface, but offhand nothing
> comes to mind that could prevent this from happening since the routes
> are acting according to when the interface becomes inactive then the
> route becomes meaningless.
>
> Maybe if the action of 'restart' to etc/rc.d/netif could also call
> etc/rc.d/routing with 'restart' if the configuration of the interface
> happens to match one of the recorded routes in rc.conf(5).

    I just tested it on my test machine and it happens with static
routes; dynamic routes automatically get reset by dhclient, et all. It
used to be for both though in earlier versions of FreeBSD, IIRC.
Thanks!
-Garrett


More information about the freebsd-current mailing list