LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-27-2019, 05:47 PM   #1
JenyaKh
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:

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.

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

Original Poster
Rep: Reputation: Disabled
I solved the problem by myself. The solution can be found here: https://unix.stackexchange.com/quest...edirect=1&lq=1

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


Reply


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

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

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

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