Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2010 22:34:23 -0700
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        jhell <jhell@dataix.net>
Cc:        Doug Barton <dougb@freebsd.org>, freebsd-rc@freebsd.org, Sergey Kandaurov <pluknet@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: [RFC] ifconfig description support in rc.d
Message-ID:  <AANLkTimWZWg%2BrsEvz4RDDoE5u9PZgQFzOMFy5nBN7UOy@mail.gmail.com>
In-Reply-To: <4CB2A0E9.50108@DataIX.net>
References:  <AANLkTinfOSQGnk0%2BPK6iM0=v5CZn2vcmJZbA8TvgGbfr@mail.gmail.com> <4C76CA06.5010001@FreeBSD.org> <AANLkTintgji3vzrb8XuUQHWp%2B7YDvHtd7ynP0MmV0oZr@mail.gmail.com> <4CB135F5.20804@DataIX.net> <AANLkTik77T2xjB2Gcmbh4z0EPu-%2BaQ1qwyKoQhGkHZPf@mail.gmail.com> <AANLkTimyHSkD=HVZKy4mXt9uMtCvTBZ687=2w-msx28h@mail.gmail.com> <4CB2A0E9.50108@DataIX.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 10, 2010 at 10:30 PM, jhell <jhell@dataix.net> wrote:
> On 10/10/2010 13:23, Garrett Cooper wrote:
>> <offtopic>
>> =A0 =A0 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimWZWg%2BrsEvz4RDDoE5u9PZgQFzOMFy5nBN7UOy>