From owner-freebsd-stable@FreeBSD.ORG Tue Jan 17 13:23:19 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C08161065672 for ; Tue, 17 Jan 2012 13:23:19 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm19-vm0.bullet.mail.sp2.yahoo.com (nm19-vm0.bullet.mail.sp2.yahoo.com [98.139.91.216]) by mx1.freebsd.org (Postfix) with SMTP id A12D68FC16 for ; Tue, 17 Jan 2012 13:23:19 +0000 (UTC) Received: from [98.139.91.62] by nm19.bullet.mail.sp2.yahoo.com with NNFMP; 17 Jan 2012 13:23:19 -0000 Received: from [98.136.185.45] by tm2.bullet.mail.sp2.yahoo.com with NNFMP; 17 Jan 2012 13:23:19 -0000 Received: from [127.0.0.1] by smtp106.mail.gq1.yahoo.com with NNFMP; 17 Jan 2012 13:23:19 -0000 X-Yahoo-Newman-Id: 304468.32472.bm@smtp106.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6rsfbjYVM1nMBRFxa8bZTggdghFBhAHo2UFRT3v3IzHCOIV I666I5JJJPh.TOutKYulUFMxrzY8aDYdoi_mwbli1sMDsD1leli0dn29gXKH k2PS0g_0gglCPozGygu1EYWzndvXIowCkrg9IgG4PM5qN1VfX0w.97jL31ad XutAXZ9Dum5lVbHz8TiteL_etFxudwmWomXDokxHHBddz5MRn4amnG1kZGzx YxG2N.QZ4hxRBosILKzn8EOWpAp.S5toPsMtc9mXMMexpk.qQWSxgw4tk39D Jhxl4CVz5Wwpl0dTIFUw4cTtmjdoZ5I_C9db4UJM9wZOzGQtUQ.2CjAfk_9U QPsDS6NnYahRgE9pUg9MF6fHMXh4LGCYQweXwK2dF1CYALy2HxmFMwznBl2P O1YhRzCGZL_JmENMQw9tCjGquqk44T46qP.hlHzK_MM1C.8skyD7gyA-- X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.20] (se@81.173.152.45 with plain) by smtp106.mail.gq1.yahoo.com with SMTP; 17 Jan 2012 05:23:18 -0800 PST Message-ID: <4F157646.3070108@freebsd.org> Date: Tue, 17 Jan 2012 14:23:18 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Denny Schierz References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: FB9-stable: bridge0 doesn't come up via rc X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2012 13:23:19 -0000 Am 17.01.2012 12:57, schrieb Denny Schierz: > hi, > > I have problems starting the bridge via rc.d: > > rc.conf: > > cloned_interfaces="bridge0" > ifconfig_bge0="up" > ifconfig_bridge0="addm bge0 up" > ifconfig_bridge0="inet 192.168.1.0 netmask 255.255.255.0 up" You forgot that rc.conf does not contain commands, but only variable assignments. The latter of the last two lines overwrites the value set in the former. You may want to replace the first of these two lines by: autobridge_bridge0="bge0" # add further interfaces as required The parameter holds a space separated list and may include wild-cards (e.g. "bge0 ixp*"). > defaultrouter="192.168.1.254" > gateway_enable="YES" > > It doesn't work. After reboot I have to set up: > > ifconfig bridge0 addm bge0 > > then it works. Yes, as explained above ... > Also a problem: "/etc/rc.d/netif stop" doesn't destroy bridge0 and > "/etc/rc.d/netif start" gives errors, because bridge exists already. This will be fixed if you use "autobridge" as explained above. See /etc/rc.d/bridge for details. Regards, STefan