Is it possible to have such a setup: a host generates its traffic at one interface A but before going to local network the traffic goes to another interface B of the host first? And vice versa all the incoming traffic which is intended for A first goes through B.
I managed to achieve such a thing with Linux bridge. I created the bridge and appended the interface of the host to it. So it was like this:
Code:
h1
-----------------
|h1-br0---h1-eth0|---------local network
------------------
But this solution does not suit my needs, as there is an extra Ethernet link between h1-br0 and h1-eth0 interfaces in reality. I need this stuff for performance measurements so I cannot have any extra Ethernet links. I mean this solution with bridge messes up my topology by introducing extra links.
So is there any other alternative like "gluing" two interfaces together or something? That is, there are two interfaces but they look like one. So that all the traffic goes between the two interfaces straightforward? Maybe, it can be achieved with dummy interfaces or something? But I have read that they make sense only when used together with bridges. So honestly, I am not sure what I search for really and just ask for advice.
Why do I need this strange setup? I want to have tc qdisc netem delay setting set up at the interface B and to be able to see the delay with wireshark recording at interface A. At interface B the delay cannot be seen with wireshark, as it is explained here:
https://unix.stackexchange.com/quest...-capture-point
Thank you for attention.