Tap0 not receiving traffic
Usually bridged interface can not be an endpoint receiving traffic and directing it up to protocol stack of host machine. As soon as a bridge is added it is responsible for this sort of work itself.
Tap is a special logical interface which is represented and accessible internally. Hint: remove tap0 from the bridge and it will remain to be accessible from other hosts.
Thus, datapath is: Network -> eth0 -> br1 -> Stack TCP/IP -> Application
You can see traffic on tap0 if:
- It is broadcast.
- It is routed, say tap0 is used in a tunnel or VM connection.
Related videos on Youtube
user199098
Updated on September 18, 2022Comments
-
user199098 almost 2 years
I have created a tap device tap0 address 10.2.1.4 and added it to a host bridge br1 with address 10.2.1.1
I have "nc 10.2.1.4 -l 1234" running on the host and from another machine I do a "nc 10.2.1.4 1234".
tcpdump -i tap0 doesn't show any of the traffic. The traffic is shows up when I do "tcpdump -i br1"
What do I have to do to make the traffic showup on tap0.
-
c4f4t0r over 10 yearsinterface inserted in a bridge shouldn't have ip address, because bridge works at the layer 2
-