[rhn-users] network speed test - route problem

Kovacs Gyuszko SK kovacsgyuszko at yahoo.com
Mon Apr 18 08:53:04 UTC 2005


Hi,

i'm trying to make speed tests on linux with two
gigabit ethernet interfaces
and with the iperf program.
actually i want to manage those tests with only one
machine. the linux box has
two gigabit interfaces, which is connected to a
switch.
the actual network settings is the follows:
eth0: 10.0.0.1 netmask 255.255.255.0
eth1: 10.0.1.1 netmask 255.255.255.0

the route table is the follows:
Kernel IP routing table
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U    
0      0        0 eth0
10.0.1.0        *               255.255.255.0   U    
0      0        0 eth1
loopback        *               255.0.0.0       U    
0      0        0 lo

i can ping the two ip from an another machine, works
well. but i cant use another
pc for my tests, i must use only one (with two iface).

with the following commands i try to run the speed
tests:
# start the iperf server
iperf -B 10.0.0.1 -D -s
# start the iperf client
iperf -B 10.0.1.1 -c 10.0.0.1

if you are not familiar with the iperf, that is for
testing
network's speeds. iperf can be used in two modes:
client and server.
the server accepts connections from the client, and
the data will go
through the network (if you use two computers) to test
the network's speed.
my iperf start parameter meanings the follows:
create a listen socket on ip 10.0.0.1 for the server
and for the client: use the 10.0.1.1 ip address as the
src ip and conncet to the 10.0.0.1

every time i run this program, i got 4.5g/s bandwith,
which is too fast
for my gigabit ether card :)
unfortunately the packets go through the loopback
interface (checked with tcpdump).
i think that is not a iperf related problem, just a
routing mistake.

how can i manage to the packets go through the
ethernet interfaces?

thanks,
Gyorgy Kovacs



		
__________________________________ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide




More information about the rhn-users mailing list