Force iperf traffic to eth0

This is a discussion on Force iperf traffic to eth0 within the Linux Networking forums, part of the Linux Forums category; I'id like to force the traffic to one of the IP address of my server to through thesecond one. ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2007
cmucchietto@gmail.com
 
Posts: n/a
Default Force iperf traffic to eth0

I'id like to force the traffic to one of the IP address of my server
to through thesecond one.

Server got 2 ethernet interfaces, eth0 (192.18.12.1) and eth1
(192.18.14.1). The aim is to run iperf and others tools from
192.18.12.1 to 192.18.14.1 in such configuration :

eth0 <------> { Network } <-----> eth1

#iperf -s (force listening on eth1)
#iperf -c 192.18.14.1 (force sending on eth0)

The problem I have is I cannot tell iperf to listen or send trafic
through an interface in particular. I've tried with tcpreplay, but I
cannot reach 1Gbit/s with it, limited near 600Mbit/s, don't know why,
maybe RAM speed or something like that.

Thanks

Reply With Quote
  #2 (permalink)  
Old 04-03-2007
Tauno Voipio
 
Posts: n/a
Default Re: Force iperf traffic to eth0

cmucchietto@gmail.com wrote:
> I'id like to force the traffic to one of the IP address of my server
> to through thesecond one.
>
> Server got 2 ethernet interfaces, eth0 (192.18.12.1) and eth1
> (192.18.14.1). The aim is to run iperf and others tools from
> 192.18.12.1 to 192.18.14.1 in such configuration :
>
> eth0 <------> { Network } <-----> eth1
>
> #iperf -s (force listening on eth1)
> #iperf -c 192.18.14.1 (force sending on eth0)
>
> The problem I have is I cannot tell iperf to listen or send trafic
> through an interface in particular. I've tried with tcpreplay, but I
> cannot reach 1Gbit/s with it, limited near 600Mbit/s, don't know why,
> maybe RAM speed or something like that.


You cannot.

For this kind of testing, you'll need at least
two computers.

The IP stack is smart enough to route traffic to ALL
local IP addresses via the loopback interface, lo.

This also includes the you cannot test the local
NIC's and their drivers by sending to any of the
addresses of the same host.

This is a FAQ, coming up every few weeks in slightly
different forms.

--

Tauno Voipio
tauno voipio (at) iki fi
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0