Networking Forums

Networking Forums > Computer Networking > Linux Networking > Force iperf traffic to eth0

Reply
Thread Tools Display Modes

Force iperf traffic to eth0

 
 
cmucchietto@gmail.com
Guest
Posts: n/a

 
      04-03-2007, 02:39 PM
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
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      04-03-2007, 03:25 PM
(E-Mail Removed) 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble setting IPv6 traffic class (QoS) bits with iperf Washington Ratso Linux Networking 0 07-25-2011 10:44 PM
iperf question George Wireless Internet 8 02-02-2009 12:37 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52136@gmail.com Windows Networking 0 01-14-2008 07:45 PM
Can't get eth0 up (wired) - e1000 device eth0 does not seem to be present, delaying initialization. OtisUsenet Linux Networking 2 06-06-2007 02:57 AM
Iperf question umo Linux Networking 3 05-11-2007 04:01 AM



1 2 3 4 5 6 7 8 9 10 11