From owner-freebsd-stable@freebsd.org Fri Aug 7 14:33:16 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E61729B5847 for ; Fri, 7 Aug 2015 14:33:16 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B32CEDDD for ; Fri, 7 Aug 2015 14:33:16 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.15.2/8.15.2) with ESMTP id t77EWQc4079196; Fri, 7 Aug 2015 10:32:27 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: Routing stops working when we create a new vlan To: Marcelo Gondim , "Andrey V. Elsukov" , FreeBSD Stable Mailing List References: <55C3E641.9060305@bsdinfo.com.br> <55C4AFC8.9030302@yandex.ru> <55C4C0BB.5070204@bsdinfo.com.br> From: Mike Tancsa Organization: Sentex Communications Message-ID: <55C4C15D.4080907@sentex.net> Date: Fri, 7 Aug 2015 10:31:57 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55C4C0BB.5070204@bsdinfo.com.br> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2015 14:33:17 -0000 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@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/