From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 21 19:30:13 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50F4A16A415 for ; Thu, 21 Dec 2006 19:30:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 18CC713C45A for ; Thu, 21 Dec 2006 19:30:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBLJUC9p009778 for ; Thu, 21 Dec 2006 19:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBLJUCrU009777; Thu, 21 Dec 2006 19:30:12 GMT (envelope-from gnats) Resent-Date: Thu, 21 Dec 2006 19:30:12 GMT Resent-Message-Id: <200612211930.kBLJUCrU009777@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniel Mafua Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 578A716A407 for ; Thu, 21 Dec 2006 19:21:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 4832913C447 for ; Thu, 21 Dec 2006 19:21:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBLJL78k035061 for ; Thu, 21 Dec 2006 19:21:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kBLJL6nh035060; Thu, 21 Dec 2006 19:21:06 GMT (envelope-from nobody) Message-Id: <200612211921.kBLJL6nh035060@www.freebsd.org> Date: Thu, 21 Dec 2006 19:21:06 GMT From: Daniel Mafua To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: conf/107035: bridge interface given in rc.conf not taking an (static) IP address X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2006 19:30:13 -0000 >Number: 107035 >Category: conf >Synopsis: bridge interface given in rc.conf not taking an (static) IP address >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 21 19:30:10 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Daniel Mafua >Release: 6.2-RC1 >Organization: Dempsey Uniform & Linen >Environment: FreeBSD birfrost.scythe.net 6.2-RC1 FreeBSD 6.2-RC1 #0: Wed Dec 20 12:35:15 EST 2006 /usr/src/sys/i386/compile/newkern i386 >Description: A bridge defined in rc.conf does not take a static IP address. According to the man page for if_bridge a bridge is created using cloned_interfaces. It is then configured using ifconfig_{bridgename}="whatever". The documentation example in the man page says: cloned_interfaces="bridge0" ifconfig_bridge0="addm em0 addm em1 DHCP" Assuming that you were going to add a static IP address for the bridge that would be: ifconfig_bridge0="addm em0 addm em1 inet 10.0.0.1 netmask 255.0.0.0" This however does not work. The bridge is created with child interfaces correctly, but an IP address is not assigned to the bridge interface. This creates problems during startup as many services need to bind to an IP. The workaround is to make your own RC script and assign it there. If there is another way to do this, it should be documented. >How-To-Repeat: Attempt to create static ip address on bridged interface during bootup. See rc.conf example above. >Fix: >Release-Note: >Audit-Trail: >Unformatted: