Skip to contentSkip to conversation

virtual ethernet adapter?

DISCUSSION Shaya Potter 2 participants 5 messages Sep 5, 2002 – Sep 6, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · Shaya Potter

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:
<[email protected]> ! 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...

#2 lore raw

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.

Quoted 15 lines · Peter Svensson
Quoted 3 lines · Shaya Potter

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:
<[email protected]> ! 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...

#3 lore raw
Quoted 4 lines · Shaya Potter

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:
<[email protected]> ! 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...

#4 lore raw
Quoted 3 lines · Peter Svensson
Quoted 1 line · Shaya Potter

from what I can tell, tap just lets a programs use it, but one needs

a

Quoted 1 line
Quoted 1 line

user space app behind it (reading and writing to it). It doesn't

seem

Quoted 4 lines
Quoted 2 lines

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

Quoted 4 lines

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

Quoted 1 line

it is standard in the newer kernels. Otherwise you can download it

from

Quoted 1 line

http://bridge.sourceforge.net/. Create a bridge and attach both the

real

Quoted 1 line

ethernet card and the virtual one to it and use the resulting

interface

Quoted 2 lines

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

Quoted 1 line

another computer on the same ethernet segment to both your computer

and

Quoted 1 line

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