Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - TAP interface: (5 Items)
   
TAP interface  
Hi All,

is there a way to assign a TAP device to an individual ethernet interface ??

Cheers

--Armin
 
Re: TAP interface  
On Fri, Jun 28, 2013 at 02:37:00PM -0400, Armin Steinhoff wrote:
> 
> Hi All,
> 
> is there a way to assign a TAP device to an individual ethernet interface ??
> 

No.  The question doesn't make much sense.  When a tap is
configured, there's a /dev/tapX and a corresponding tapX
pseudo interface.  Packets written to /dev/tapX appear
as if they were received on input on the tapX interface,
packets that arrive for transmit on the tapX interface can
be read() off the /dev/tapX device.  Normal ip routing
occurs on packets to / from the tapX interface.

Regards,

-seanb

Re: TAP interface  
Sean Boudreau wrote:
> On Fri, Jun 28, 2013 at 02:37:00PM -0400, Armin Steinhoff wrote:
>> Hi All,
>>
>> is there a way to assign a TAP device to an individual ethernet interface ??
>>
> No.  The question doesn't make much sense.

you mean

ifconfig tap0 create
ifconfig tap0 up
ifconfig tap0 11:22:33:44:55:66
ifconfig tap0 11:22:33:44:55:66 active

makes no sense ? Or do I have to assign an IP address??

I want simply to send/receive by one of the dual ethernet interface!

What semantic have the "pre-created" tap0 to tap3 devices ??
Why is it not possible to set the O_NONBLOCK flag on a TAP device ??

--Armin

>   When a tap is
> configured, there's a /dev/tapX and a corresponding tapX
> pseudo interface.  Packets written to /dev/tapX appear
> as if they were received on input on the tapX interface,
> packets that arrive for transmit on the tapX interface can
> be read() off the /dev/tapX device.  Normal ip routing
> occurs on packets to / from the tapX interface.
>
> Regards,
>
> -seanb
>
>
>
>
>
> _______________________________________________
>
> Networking Drivers
> http://community.qnx.com/sf/go/post102779
> To cancel your subscription to this discussion, please e-mail drivers-networking-unsubscribe@community.qnx.com
>

Re: TAP interface  
On Sat, Jun 29, 2013 at 09:47:52AM +0200, Armin Steinhoff wrote:
> Sean Boudreau wrote:
> > On Fri, Jun 28, 2013 at 02:37:00PM -0400, Armin Steinhoff wrote:
> >> Hi All,
> >>
> >> is there a way to assign a TAP device to an individual ethernet interface ??
> >>
> > No.  The question doesn't make much sense.
> 
> you mean
> 
> ifconfig tap0 create
> ifconfig tap0 up
> ifconfig tap0 11:22:33:44:55:66
> ifconfig tap0 11:22:33:44:55:66 active

Yes, that makes sense.  Here you're manipulating
the pseudo tap interface, not a real ethernet interface.

> 
> makes no sense ? Or do I have to assign an IP address??

Only if you want to do IP over it.

> 
> I want simply to send/receive by one of the dual ethernet interface!
> 
> What semantic have the "pre-created" tap0 to tap3 devices ??
> Why is it not possible to set the O_NONBLOCK flag on a TAP device ??

It is possible.

> 
> --Armin
> 
> >   When a tap is
> > configured, there's a /dev/tapX and a corresponding tapX
> > pseudo interface.  Packets written to /dev/tapX appear
> > as if they were received on input on the tapX interface,
> > packets that arrive for transmit on the tapX interface can
> > be read() off the /dev/tapX device.  Normal ip routing
> > occurs on packets to / from the tapX interface.
> >
> > Regards,
> >
> > -seanb
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Networking Drivers
> > http://community.qnx.com/sf/go/post102779
> > To cancel your subscription to this discussion, please e-mail drivers-networking-unsubscribe@community.qnx.com
> >
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post102790
> To cancel your subscription to this discussion, please e-mail drivers-networking-unsubscribe@community.qnx.com
Re: TAP interface  
Sean Boudreau wrote:
> On Fri, Jun 28, 2013 at 02:37:00PM -0400, Armin Steinhoff wrote:
>> Hi All,
>>
>> is there a way to assign a TAP device to an individual ethernet interface ??
>>
> No.  The question doesn't make much sense.  When a tap is
> configured, there's a /dev/tapX and a corresponding tapX
> pseudo interface.
 ... and what is the "tapX pseudo interface". What is the path of this
virtual "pseudo interface"?
After e.g. "ifconfig tap0 create" there is no new device created! But
after "ifconfig tap0 up"
 it is possible to open "/dev/tap0" sucessfully.

So what is your strange "pseudo tapX interface" ?? 
Is you TAP interface not intended to replace a "RAW socket interface" ??

--Armin

>   Packets written to /dev/tapX appear
> as if they were received on input on the tapX interface,
> packets that arrive for transmit on the tapX interface can
> be read() off the /dev/tapX device.  Normal ip routing
> occurs on packets to / from the tapX interface.
>
> Regards,
>
> -seanb
>
>
>
>
>
> _______________________________________________
>
> Networking Drivers
> http://community.qnx.com/sf/go/post102779
> To cancel your subscription to this discussion, please e-mail drivers-networking-unsubscribe@community.qnx.com
>