route problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux