LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2013, 12:36 AM   #1
kniranjan
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
tap0 in promiscuous mode(TAP/TUN device)


Hi All,

I have a need to tap packets and distribute it to different taps based on certain logic.

I have thus been able to do this pretty easily on RHELs that we have - 2.6.32 kernel.
But I have been having problem in making this work on our Fedora systems - > 2.6.39.

The experiment I have been trying has following steps:
1. tunctl -p -t tap0
2. inconfig tap0 up
3. tcpreplay -i tap0 ./*pcap -- transmit packets to tap0
4. tshark -i tap0 -- capture in promiscuous mode

This works perfectly on the RHELs(having older RH kernels), but on Fedora I could never get this to work(with kernels as recent as 3.6.10).

Any pointers is appreciated.

Thanks
 
Old 07-10-2013, 07:13 AM   #2
kniranjan
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I was able to solve this issue -
basically there was a need to allocate the TAP programmatically with appropriate flags before transmitting packets on to the tap.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
static route for iptables NAT and tun/tap device j-osh Linux - Networking 2 10-05-2015 06:26 AM
Problem with ioctl function when openning TUN/TAP device on Linux. shmilt24 Linux - Newbie 2 09-10-2010 02:14 AM
create TUN/TAP device with non default name vofka Linux - Networking 2 04-29-2010 03:11 AM
how to allow tun/tap device in firewall? efm Linux - Networking 12 07-22-2005 04:47 AM
Universal tun/tap device driver support giddyupman Linux - Networking 4 05-14-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration