Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2001 11:41:51 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        Rob Harris <rharris@cidera.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Bridge over tun0 waters...
Message-ID:  <Pine.NEB.3.96L.1010509113908.11741u-100000@fledge.watson.org>
In-Reply-To: <B71ED73F.67D%rharris@cidera.com>

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

At least in FreeBSD 5.0-CURRENT, and quite possibly in RELENG_4, there's
an if_tap driver, which serves a similar function to the if_tun driver.
if_tap appears as /dev/tap*, and as tap* interfaces, and appears as an
ethernet device.  It is used by our VMware port to allow VMware to make
use of a virtual interface which is then bridged as needed with other
local ethernet devices.  It would be easy to imagine a tunneling program
that sat on /dev/tap0 on two machines, and linked them using UDP, then
using the kernel bridging support (either the bridge support in
ethernet.c, or using ng_bridge).

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services

On Wed, 9 May 2001, Rob Harris wrote:

> 
> This message was posted Feb of '99.
> I was wondering if anyone has made an efforts towards this yet.
> (i.e. Wanna make sure I don't make a hack that's already made.)
> Thanks.
> --Rob
> 
> > the bridges above will be not be doing any IP routing, just forwarding
> > IP packets based on MAC addresses.  you can do this with cisco's and
> > i'd assume most other major bridge/router vendors.  of course you may
> > run into serious traffic jams if your bridging ethernet over a much
> > slower line, like a 56k.
> 
> in fact as many already said the most obvious solution seems to use
> routing, not bridging.
> 
> > i'm not sure if this can be done with freebsd however.  Luigi's bridge
> > code and ppp would be the place to look (Luigi will probably be able
> > to answer this :).
> 
> just because i am called... bridging in freebsd only works on
> ethernet-type networks. Someone already asked me that i also
> add support for 'tun' interfaces so that solutions like the one above
> are possible. Shouldn't be that hard to implement, just isn't there
> right now.
> 
>     cheers
>     luigi
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
> 
> --Rob
> 
> +--------------------------------------------------------------------------+
> |  Rob Harris    8037 Laurel Lakes Court, Laurel MD     301.598.0500 x2236 |
> |  Cidera, Inc.         rharris@cidera.com               fax: 301.598.0837 |
> +--------------------------------------------------------------------------+
>    "Don't rush me sonny. You rush a miracle man, you get rotten miracles."
>                                         --Miracle Max, The Princess Bride
> 
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1010509113908.11741u-100000>