cvs commit: src/etc/defaults rc.conf src/etc/rc.d Makefile bridge netif src/share/man/man5 rc.conf.5

Andrew Thompson thompsa at freebsd.org
Thu Jun 1 11:07:51 UTC 2006


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


More information about the cvs-src mailing list