I have one Linux machine having two gigabit network interface. I want to run the traffic test such as
iperf on two interfaces: eth0 will be server and eth1 will be client. I connected back-to-back network cables (between eth0 and eth1) and configured the ip address
ifconfig eth0 192.168.0.10 netmask 255.255.255.0 up ifconfig eth1 192.168.0.11 netmask 255.255.255.0 up
Now i am trying to ping from eth0 to eth1 using following command:
ping -I eth0 192.168.0.11
but ping is not working, so I tried
tcpdump -i eth0
which says ARP request is reaching to eth1—but eth1 doesn't reply
I tried another way also using
ping -I eth1 192.168.0.10
but it is also not working
command says incomplete, so I am wondering why this is not working, i tried this same configuration in Ubuntu and CentOS. but no luck.
/etc/hosts file is not configured—is it required? I already tried using straight as well as cross cable.