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 addressifconfig eth0 192.168.0.10 netmask 255.255.255.0 upifconfig eth1 192.168.0.11 netmask 255.255.255.0 upNow i am trying to ping from eth0 to eth1 using following command:ping -I eth0 192.168.0.11but ping is not working, so I tried tcpdump tcpdump -i eth0which says ARP request is reaching to eth1—but eth1 doesn't replyI tried another way also usingping -I eth1 192.168.0.10 but it is also not workingarp -a command says incomplete, so I am wondering why this is not working, i tried this same configuration in Ubuntu and CentOS. but no luck. The /etc/hosts file is not configured—is it required? I already tried using straight as well as cross cable.
Two network interfaces (eth0 and eth1) of same linux machine can't ping each other
linux;networking