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


  Search this Thread
Old 06-27-2019, 05:47 PM   #1
LQ Newbie
Registered: Apr 2019
Posts: 6

Rep: Reputation: Disabled
Transferring all traffic through an extra interface

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:

|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:

Thank you for attention.

Last edited by JenyaKh; 06-27-2019 at 05:48 PM.
Old 06-28-2019, 01:01 PM   #2
LQ Newbie
Registered: Apr 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
I solved the problem by myself. The solution can be found here:

Last edited by JenyaKh; 06-28-2019 at 01:07 PM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Force all internet traffic through tun0 (Vpn Interface) dschuett Linux - Security 3 08-10-2011 08:36 AM
Force all internet traffic through tun0 (Vpn Interface) dschuett Linux - Security 2 08-10-2011 12:24 AM
Route all HTTP traffic through wired interface on workstation jvolkman Linux - Networking 5 11-29-2006 08:51 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:27 PM.

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