Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 2006 23:07:30 +1200
From:      Andrew Thompson <thompsa@freebsd.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/defaults rc.conf src/etc/rc.d Makefile bridge netif src/share/man/man5 rc.conf.5
Message-ID:  <20060601110729.GA80230@heff.fud.org.nz>
In-Reply-To: <200606011101.k51B1stR081865@repoman.freebsd.org>
References:  <200606011101.k51B1stR081865@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 01, 2006 at 11:01:54AM +0000, Andrew Thompson wrote:
> thompsa     2006-06-01 11:01:54 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     etc/defaults         rc.conf 
>     etc/rc.d             Makefile netif 
>     share/man/man5       rc.conf.5 
>   Added files:
>     etc/rc.d             bridge 
>   Log:
>   Add rc.d/bridge which is invoked when a new interface arrives and can
>   automaticly add it to an Ethernet bridge. This is intended for applications
>   such as qemu, vmware, openvpn, ... which open tap interfaces and need them
>   bridged with the hosts network adapter, the user can set up a glob for
>   interfaces to be automatically added (eg tap*).

An example in rc.conf would be:
  # create the bridge and add the wired interface
  cloned_interfaces="bridge0"
  ifconfig_bridge0="up addm fxp0"

  # set it so that tap interfaces get added too
  autobridge_interfaces="bridge0"
  autobridge_bridge0="tap*"
 

cheers,
Andrew



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