Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 2010 09:23:30 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-net@freebsd.org
Cc:        Kim Culhan <w8hdkim@gmail.com>
Subject:   Re: 8.2-PRERELESE ifconfig_bridge has no members unless run from rc.local
Message-ID:  <201012080923.31048.jhb@freebsd.org>
In-Reply-To: <AANLkTimCW=R41p%2B4Pb=o6or0JT4i2CmTOHyh1bKaisGr@mail.gmail.com>
References:  <AANLkTimCW=R41p%2B4Pb=o6or0JT4i2CmTOHyh1bKaisGr@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, December 07, 2010 5:17:30 pm Kim Culhan wrote:
> Had been running a wireless bridge for some months in rc.conf:
> 
> ifconfig_bridge0="addm wlan0 addm re1 up"
> 
> Updated to 8.2-PRERELEASE 2 days ago and when the machine boots
> the bridge has no members.
> 
> Reversing the order of the members results in the bridge having just
> the re1 member.
> 
> Running the above command from a shell works and running from
> an rc.local file also works.
> 
> FWIW, running from a shell there is about a 3 second delay after hit enter
> before it returns the shell prompt, members are then present.
> 
> The lines in rc.conf:
> 
> cloned_interfaces="bridge0"
> ifconfig_wlan0="inet 192.168.1.50/24 channel 11"
> wlans_rum0="wlan0"
> create_args_wlan0="wlanmode hostap mode 11g"
> ifconfig_bridge0="addm wlan0 addm re1 up"
> 
> Tried replacing the re device with em, no change.
> 
> Any help is very greatly appreciated.

Most likely the bridge0 device is created by /etc/rc.d/netif before the wlan0 
device is created, so when the system startup tries to configure bridge0, the 
ifconfig statement fails.

What does 'ifconfig -l' show after you have booted?

-- 
John Baldwin



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