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? I try to go back to the value 1 and the system does not return to work. Only back to work if I restart the system. []'s Gondim
On 8/7/2015 10:29 AM, 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? > I try to go back to the value 1 and the system does not return to work. > Only back to work if I restart the system.devd. As suggested, have gateway_enable="YES" in rc.conf so interface creations dont mess that up. I am not sure why devd wants/needs to do this, but it does. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike at sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/
On Fri, Aug 7, 2015 at 4:29 PM, Marcelo Gondim <gondim at bsdinfo.com.br> 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? > I try to go back to the value 1 and the system does not return to work. > Only back to work if I restart the system. > > > []'s > Gondim > > The change to 0 is probably due to not having gateway_enable="YES" inrc.conf Best regards Andreas
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. The right way to configure router - use gateway_enable="YES" in rc.conf.> I try to go back to the value 1 and the system does not return to work. > Only back to work if I restart the system.This seems strange, are you sure? -- WBR, Andrey V. Elsukov -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 538 bytes Desc: OpenPGP digital signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20150807/1676f75b/attachment.bin>