Sending data between two nics on one machine

Eric W. Biederman ebiederm at xmission.com
Sun Oct 28 04:58:43 UTC 2012


Jereme Lamps <lamps1 at illinois.edu> writes:

> I have a machine (ubuntu 12.04) with 2 nics and I am trying to send data
> between the two. However, when I iperf from one to the other, the OS is
> optimizing it and the data is never actually being sent out on the network
> (I want it to go through the switch).
> Is there any way I can move one of the physical interfaces into a network
> namespace and then try to iperf from there?
>
> Any help would be greatly appreciated!

ip netns add ...
ip link set ...
ip netns exec ...

Eric


More information about the Containers mailing list