Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bridge startup with clone interfaces



On Sun, Apr 20, 2008 at 11:42:05AM -0400, Andreas Wrede wrote:
> brconfig(8) shows how to create a bridge using the shell escape (!) in  
> a /etc/ifconfig.bridge0 file. This may not work if an interface  
> participating in the bridge is also a cloned interface (tap in my  
> case) as it may only be created after the bridge0 interface.  
> (Currently, ifconfig -C returns "bridge" first, so it will not work  
> for any of the cloned interfaces).
> 
> My current solution is the split the interface configuration loop in / 
> etc/rc.d/network into two loops, one to create all necessary clones  
> and the other to do the configuration, see patch below.
> 
> Is there another way to configure this?

Had the same problem with vlan/bridge interfaces. I use /etc/rc.conf:

        auto_ifconfig=NO
        net_interfaces="wm0 wm1 vlan0 vlan1 bridge0 bridge1 bridge2"

-- 
Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)


Home | Main Index | Thread Index | Old Index