public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* virtual ethernet adapter?
@ 2002-09-05 22:04 Shaya Potter
  2002-09-06  6:07 ` Peter Svensson
  0 siblings, 1 reply; 5+ messages in thread
From: Shaya Potter @ 2002-09-05 22:04 UTC (permalink / raw)
  To: linux-kernel

Is there any open code that is similiar to what vmware provides that
enables one to create virtual ethernet adapters?  I've seen the tap
device, but that's not what I need.

thanks,

shaya potter




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtual ethernet adapter?
  2002-09-05 22:04 virtual ethernet adapter? Shaya Potter
@ 2002-09-06  6:07 ` Peter Svensson
  2002-09-06 12:34   ` Shaya Potter
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Svensson @ 2002-09-06  6:07 UTC (permalink / raw)
  To: Shaya Potter; +Cc: linux-kernel

On 5 Sep 2002, Shaya Potter wrote:

> Is there any open code that is similiar to what vmware provides that
> enables one to create virtual ethernet adapters?  I've seen the tap
> device, but that's not what I need.

In what way is it not what you need? What do you need? 

Peter
--
Peter Svensson      ! Pgp key available by finger, fingerprint:
<petersv@psv.nu>    ! 8A E9 20 98 C1 FF 43 E3  07 FD B9 0A 80 72 70 AF
------------------------------------------------------------------------
Remember, Luke, your source will be with you... always...



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtual ethernet adapter?
  2002-09-06  6:07 ` Peter Svensson
@ 2002-09-06 12:34   ` Shaya Potter
  2002-09-06 12:53     ` Peter Svensson
  0 siblings, 1 reply; 5+ messages in thread
From: Shaya Potter @ 2002-09-06 12:34 UTC (permalink / raw)
  To: Peter Svensson; +Cc: linux-kernel

from what I can tell, tap just lets a programs use it, but one needs a
user space app behind it (reading and writing to it).  It doesn't seem
to have the ability to live on the network like vmware's vmnet stuff
does, perhaps I'm wrong and was confused by the web page.

On Fri, 2002-09-06 at 02:07, Peter Svensson wrote:
> On 5 Sep 2002, Shaya Potter wrote:
> 
> > Is there any open code that is similiar to what vmware provides that
> > enables one to create virtual ethernet adapters?  I've seen the tap
> > device, but that's not what I need.
> 
> In what way is it not what you need? What do you need? 
> 
> Peter
> --
> Peter Svensson      ! Pgp key available by finger, fingerprint:
> <petersv@psv.nu>    ! 8A E9 20 98 C1 FF 43 E3  07 FD B9 0A 80 72 70 AF
> ------------------------------------------------------------------------
> Remember, Luke, your source will be with you... always...
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtual ethernet adapter?
  2002-09-06 12:34   ` Shaya Potter
@ 2002-09-06 12:53     ` Peter Svensson
  2002-09-06 20:49       ` Shaya Potter
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Svensson @ 2002-09-06 12:53 UTC (permalink / raw)
  To: Shaya Potter; +Cc: linux-kernel

On 6 Sep 2002, Shaya Potter wrote:

> from what I can tell, tap just lets a programs use it, but one needs a
> user space app behind it (reading and writing to it).  It doesn't seem
> to have the ability to live on the network like vmware's vmnet stuff
> does, perhaps I'm wrong and was confused by the web page.

Well, you want at program to read and write ethernet frames, don't you? To 
What happens is that the operating system sees the data written by the 
program as coming in over a ethernet interface, a virtual one.

To connect that interface to a real one you use the bridging code. I think 
it is standard in the newer kernels. Otherwise you can download it from
http://bridge.sourceforge.net/. Create a bridge and attach both the real 
ethernet card and the virtual one to it and use the resulting interface 
br0 (or whatever you choose to call it) instead of the normal ethernet 
interface. Your program that is attached to the "tap" will now appear as 
another computer on the same ethernet segment to both your computer and 
all others attachet the the segment.

Peter
--
Peter Svensson      ! Pgp key available by finger, fingerprint:
<petersv@psv.nu>    ! 8A E9 20 98 C1 FF 43 E3  07 FD B9 0A 80 72 70 AF
------------------------------------------------------------------------
Remember, Luke, your source will be with you... always...



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtual ethernet adapter?
  2002-09-06 12:53     ` Peter Svensson
@ 2002-09-06 20:49       ` Shaya Potter
  0 siblings, 0 replies; 5+ messages in thread
From: Shaya Potter @ 2002-09-06 20:49 UTC (permalink / raw)
  To: Peter Svensson; +Cc: linux-kernel

On Fri, 2002-09-06 at 08:53, Peter Svensson wrote:
> On 6 Sep 2002, Shaya Potter wrote:
> 
> > from what I can tell, tap just lets a programs use it, but one needs
a
> > user space app behind it (reading and writing to it).  It doesn't
seem
> > to have the ability to live on the network like vmware's vmnet stuff
> > does, perhaps I'm wrong and was confused by the web page.
> 
> Well, you want at program to read and write ethernet frames, don't
you? To 
> What happens is that the operating system sees the data written by the
> program as coming in over a ethernet interface, a virtual one.
> 
> To connect that interface to a real one you use the bridging code. I
think 
> it is standard in the newer kernels. Otherwise you can download it
from
> http://bridge.sourceforge.net/. Create a bridge and attach both the
real 
> ethernet card and the virtual one to it and use the resulting
interface 
> br0 (or whatever you choose to call it) instead of the normal ethernet
> interface. Your program that is attached to the "tap" will now appear
as 
> another computer on the same ethernet segment to both your computer
and 
> all others attachet the the segment.

that actually sounds more promising, but does it still involves the
program attached to the tap outputting ethernet frames.  i.e. I can't
make a virtual ethernet driver with my own rules, have netfilter bind a
process to just use that adapter, and then just run the process as
normal.  or am I still understating the capabilities?

thanks,

shaya potter


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-06 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05 22:04 virtual ethernet adapter? Shaya Potter
2002-09-06  6:07 ` Peter Svensson
2002-09-06 12:34   ` Shaya Potter
2002-09-06 12:53     ` Peter Svensson
2002-09-06 20:49       ` Shaya Potter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox