Hi all,
I'm developing an embedded product running linux.
The product has two ethernet netcards and two switches on the main board.
During production the ethernet connection should be tested, so I would like to connect the two switches with a patch cable and send traffic from one ethernet card to the other.
To do this I tried to do the following:
Code:
ifconfig eth0 10.2.0.3 netmask 255.255.255.0
ifconfig eth1 10.2.0.4 netmask 255.255.255.0
route delete (all)
route add -host 10.2.0.4 eth0
route add -host 10.2.0.3 eth1
then I restart inetd.
then I start "tcpdump" on eth0 on a terminal
on a different terminal I try:
telnet 10.2.0.4
-> then it just says "trying ..." and nothing happens
-> on the tcpdump I can see that no packages are generated (it is in promiscius mode)
Does anyone know how to send ethernet traffic from one internal ethernet card to another?
Thanks