All of lore.kernel.org
 help / color / mirror / Atom feed
* Sending data between two nics on one machine
@ 2012-10-25  3:45 Jereme Lamps
       [not found] ` <CAHvNds2pUmqisQOtMn0-T-SAKrNs40THY80+Pwi-MNgPwDZNcQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jereme Lamps @ 2012-10-25  3:45 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Sending data between two nics on one machine
       [not found] ` <CAHvNds2pUmqisQOtMn0-T-SAKrNs40THY80+Pwi-MNgPwDZNcQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-28  4:58   ` Eric W. Biederman
  0 siblings, 0 replies; 2+ messages in thread
From: Eric W. Biederman @ 2012-10-28  4:58 UTC (permalink / raw)
  To: Jereme Lamps; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Jereme Lamps <lamps1-nzINlOoChub2fBVCVOL8/A@public.gmane.org> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-28  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25  3:45 Sending data between two nics on one machine Jereme Lamps
     [not found] ` <CAHvNds2pUmqisQOtMn0-T-SAKrNs40THY80+Pwi-MNgPwDZNcQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-28  4:58   ` Eric W. Biederman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.