From owner-freebsd-stable@freebsd.org Fri Aug 7 15:10:45 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 53F279B62DA for ; Fri, 7 Aug 2015 15:10:45 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 005087B8 for ; Fri, 7 Aug 2015 15:10:44 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by wicgj17 with SMTP id gj17so65317588wic.1 for ; Fri, 07 Aug 2015 08:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/uDyQusU1xVT5X0882r93zfbfICiDhtZmA2ptRazOfM=; b=RolHE4JUbc0wgnp6yt7mXnn/mwbx/SgYgyVZU5BDpiGjMFjt7ldhnGMEvK/qnfw7SW 9APldl0nIMSnh06bFiKjjAQD8zv5tzIReL287pfQoNjIZ+Fi1qRDQ/s96ALgGxnTBgYR QM0eCF4vQXVeDleMM11xE6AToI6oUC/VANaB1Q2oEvDcVKQ8zIliSFtAwTLL01MqVNGM 24REMIwp5LVNVfiZWqWWf9BeyiGHeZ9s7JPU1lB6BlhJhuiTT25TyQzJkZ3Td0gT00fl 7yP5zE3G18tNVYugK8bw7Xaz6g7iIRaCPltbNf9yMwzVhLlPPRxAePD2v86A5UQg4Cb7 c6FA== MIME-Version: 1.0 X-Received: by 10.180.109.161 with SMTP id ht1mr7675838wib.10.1438960243518; Fri, 07 Aug 2015 08:10:43 -0700 (PDT) Received: by 10.194.16.42 with HTTP; Fri, 7 Aug 2015 08:10:43 -0700 (PDT) In-Reply-To: <55C4C69B.3030607@bsdinfo.com.br> References: <55C3E641.9060305@bsdinfo.com.br> <55C4AFC8.9030302@yandex.ru> <55C4C0BB.5070204@bsdinfo.com.br> <55C4C1CF.5070505@yandex.ru> <55C4C69B.3030607@bsdinfo.com.br> Date: Fri, 7 Aug 2015 10:10:43 -0500 Message-ID: Subject: Re: Routing stops working when we create a new vlan From: Adam Vande More To: Marcelo Gondim Cc: "Andrey V. Elsukov" , FreeBSD Stable Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 15:10:45 -0000 On Fri, Aug 7, 2015 at 9:54 AM, Marcelo Gondim wrote: > > But I still think it does wrong. Why to create a vlan I need to have this > parameter configured in rc.conf? Or why it needs to change > net.inet.ip.forwarding? Because that is what the directions for configuring a default gateway state, and the directions are based off of code behavior. /etc/rc.d/routing: if checkyesno gateway_enable; then ropts_init inet echo -n ' gateway=YES' ${SYSCTL} net.inet.ip.forwarding=1 > /dev/null else ${SYSCTL} net.inet.ip.forwarding=0 > /dev/null fi -- Adam