Answer the question
In order to leave comments, you need to log in
How to generate traffic between network interfaces of one machine?
Good afternoon.
There is a ubuntu server. 10 network cards. I can use it to generate traffic using iperf to other servers.
At the moment, the task is to connect 2 ports directly and generate a traffic flow between them. In between there will be a hub device. The idea is to make sure that the hub can pass traffic through itself and measure the speed.
The main problem I do not understand how it should look like. Ip from one network on different interfaces I cannot hang up. How do I specify that traffic should exit one interface and be received on another?
Is there a program or technology?
Answer the question
In order to leave comments, you need to log in
Output different interfaces to different netns and inside netns hang up respectively different addresses from the same subnet and start the traffic generator.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question