I am working on a custom board with two LAN8720A on board. I can see both eth0 and eth1 are brought up. I can ping local computer for both ports. However, I cannot ping the remote ip address, nor set the port as dhcp. Am I missing anything? If I disable eth1 and just use eth0 port, I do not have this problem.
root@arm:~# ifconfig
eth0 Link encap:Ethernet HWaddr c8:a0:30:a2:6a:0e
inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::caa0:30ff:fea2:6a0e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:93 errors:0 dropped:0 overruns:0 frame:0
TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11833 (11.8 KB) TX bytes:14989 (14.9 KB)
Interrupt:56
eth1 Link encap:Ethernet HWaddr c8:a0:30:a2:6a:10
inet addr:192.168.0.35 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:124 errors:0 dropped:0 overruns:0 frame:0
TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12154 (12.1 KB) TX bytes:12154 (12.1 KB)
root@arm:~# ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_req=1 ttl=64 time=0.714 ms
64 bytes from 192.168.1.10: icmp_req=2 ttl=64 time=0.345 ms
^C
--- 192.168.1.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.345/0.529/0.714/0.185 ms
root@arm:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.30 icmp_seq=1 Destination Host Unreachable
From 192.168.1.30 icmp_seq=2 Destination Host Unreachable
From 192.168.1.30 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms
pipe 3
^C
root@arm:~# dmesg |grep -i mac
[ 2.647787] Detected MACID = c8:a0:30:a2:6a:0e
[ 2.654102] cpsw: Detected MACID = c8:a0:30:a2:6a:10
root@arm:~#
I am sure that I have my dns set. How come I do not have this problem when I disable the eth1?
-Eric