Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2015 17:53:03 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        Marcelo Gondim <gondim@bsdinfo.com.br>, FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Routing stops working when we create a new vlan
Message-ID:  <20150807145303.GD24698@zxy.spb.ru>
In-Reply-To: <55C4C1CF.5070505@yandex.ru>
References:  <55C3E641.9060305@bsdinfo.com.br> <55C4AFC8.9030302@yandex.ru> <55C4C0BB.5070204@bsdinfo.com.br> <55C4C1CF.5070505@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 07, 2015 at 05:33:51PM +0300, Andrey V. Elsukov wrote:

> On 07.08.2015 17:29, Marcelo Gondim wrote:
> > On 07-08-2015 10:16, Andrey V. Elsukov wrote:
> >> On 07.08.2015 01:57, Marcelo Gondim wrote:
> >>> For all work again I need to restart the router.
> >>> I don't know if I could correctly explain the problem.
> >> Do you have gateway_enable="YES" in your /etc/rc.conf?
> >>
> > I have net.inet.ip.forwarding=1 but when I create a new vlan, the system
> > is changing to: net.inet.ip.forwarding=0. Why?
> 
> AFAIR, devd starts some scripts and if you don't have
> gateway_enable="YES" net.inet.ip.forwarding will be reset to zero. And
> since devd doesn't restart sysctl.conf you lose your gateway.

I think this is incorrect behavior.

> The right way to configure router - use gateway_enable="YES" in rc.conf.

Changing gateway_enable in rc.conf don't have immediatly effect.
Changing gateway_enable and plug interface do unexpectedly effect.

Why forwarding controlling not only by /etc/rc.d/routing but also by
/etc/rc.d/netif?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150807145303.GD24698>