From owner-freebsd-stable@freebsd.org Fri Aug 7 14:34:44 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 800039B592B for ; Fri, 7 Aug 2015 14:34:44 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward12j.cmail.yandex.net (forward12j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::b2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33DFCF42 for ; Fri, 7 Aug 2015 14:34:44 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward12j.cmail.yandex.net (Yandex) with ESMTP id 9110320F53; Fri, 7 Aug 2015 17:34:32 +0300 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 34D677E16EF; Fri, 7 Aug 2015 17:34:32 +0300 (MSK) Received: by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rENXwbdKAj-YVUS7AvH; Fri, 7 Aug 2015 17:34:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1438958071; bh=QJ5pibg0paGo1J2qGBTNL2xS5+ra2CoNZgVjdOIqJxw=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type; b=Blh0Vz0j7rXVtEtxB/BJzMQZKD80sZxHh7vT+iX0Ec0e28WyZAAmoe/zXtr6JlUyS rK8Cm5Q9NzCqEAo1DIcibfsKSrHm+kIWPkbA79zBkdJRaGHZzHd/U+d0/1p/mQKl5b NnT6AhaLhVfSG6jajzbaFnQxMaEVqTQxJh0RYDeo= Authentication-Results: smtp11.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <55C4C1CF.5070505@yandex.ru> Date: Fri, 07 Aug 2015 17:33:51 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Marcelo Gondim , FreeBSD Stable Mailing List Subject: Re: Routing stops working when we create a new vlan References: <55C3E641.9060305@bsdinfo.com.br> <55C4AFC8.9030302@yandex.ru> <55C4C0BB.5070204@bsdinfo.com.br> In-Reply-To: <55C4C0BB.5070204@bsdinfo.com.br> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2J2lcH7495KQt0ODaTXEmdpp64X0ctMmd" 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:34:44 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2J2lcH7495KQt0ODaTXEmdpp64X0ctMmd Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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=3D"YES" in your /etc/rc.conf? >> > I have net.inet.ip.forwarding=3D1 but when I create a new vlan, the sys= tem > is changing to: net.inet.ip.forwarding=3D0. Why? AFAIR, devd starts some scripts and if you don't have gateway_enable=3D"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=3D"YES" in rc.conf= =2E > 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? --=20 WBR, Andrey V. Elsukov --2J2lcH7495KQt0ODaTXEmdpp64X0ctMmd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVxMHQAAoJEAHF6gQQyKF6PaQH/ivKpKH2cvAsuXjlhUgYSZ+d EALEzZD8x6bj+/Ou9DSgaB7+ekr5LWPBoVoxWYApTYKuIiybzCGnPIYZLBRb0ePl uQWDxyyVS4CLnqoUrNtXOolYiwhjiKpsB256hgHy5u7EWPwGYcZsmw4zDPuZZg5e /ug6kyVQcnxd+BFwduBKXXzYrX4DMJfAMv4ygSB5w42FwBclzJGVt2zBeN1u0eoz ESioiZJ+bi5wxEj2ArhUHjYNxn98mJwG60HUM6OASH0c0rlcOotsQFhyVWY/OoL/ e+91tzlfv/jrxEDdd6n1cuNhlPKG0WchUnTIizd+SwMapKD8NKFxvfPwrkiaDik= =G1b1 -----END PGP SIGNATURE----- --2J2lcH7495KQt0ODaTXEmdpp64X0ctMmd--