Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2006 19:21:06 GMT
From:      Daniel Mafua<mafua@dempseyuniform.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/107035: bridge interface given in rc.conf not taking an (static) IP address
Message-ID:  <200612211921.kBLJL6nh035060@www.freebsd.org>
Resent-Message-ID: <200612211930.kBLJUCrU009777@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612211921.kBLJL6nh035060>