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 |
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 |
All times are GMT -5. The time now is 09:51 PM. |