I followed the Instructions to test the Ethernet port, the end result says network unreachable.
root@ruggedboard-a5d2x:~# udhcpc
udhcpc: started, v1.27.2
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc: sending discover
macb f8008000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: sending select for 192.168.0.105
udhcpc: lease of 192.168.0.105 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 49.205.75.4
/etc/udhcpc.d/50default: Adding DNS 8.8.8.8
/etc/udhcpc.d/50default: line 86: can't create /etc/resolv.conf: Read-only file system
root@ruggedboard-a5d2x:~# ifconfig
eth0 Link encap:Ethernet HWaddr 04:91:62:D3:0B:F6
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::691:62ff:fed3:bf6/64 Scope:Link
inet6 addr: fe80::691:62ff:fed3:bf6/64 Scope:Link
inet6 addr: 2406:7400:73:a262:691:62ff:fed3:bf6/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:105 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21870 (21.3 KiB) TX bytes:1270 (1.2 KiB)
Interrupt:28 Base address:0x8000
root@ruggedboard-a5d2x:~# ifconfig eth0 192.168.0.119 netmask 255.255.255.0
root@ruggedboard-a5d2x:~# ifconfig
eth0 Link encap:Ethernet HWaddr 04:91:62:D3:0B:F6
inet addr:192.168.0.119 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::691:62ff:fed3:bf6/64 Scope:Link
inet6 addr: fe80::691:62ff:fed3:bf6/64 Scope:Link
inet6 addr: 2406:7400:73:a262:691:62ff:fed3:bf6/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:308 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63125 (61.6 KiB) TX bytes:1360 (1.3 KiB)
Interrupt:28 Base address:0x8000
root@ruggedboard-a5d2x:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable
Thank you Prasanth,
I followed the steps mentioned under the website as follows:
udhcpc
ifconfig
ifconfig eth0 192.168.1.110 netmask 255.255.255.0
ping 8.8.8.8
It didn't work in the morning. tried on another board, the result was the same, where i am first time testing the Ethernet Port on these boards after i have received in hand.
In your case you used only one command - udhcpc and pinged google.com website.
I question here is you would have several times used the Board at your end.
Later on I tried using date command and updated the date.
Next I used the commands:
first # udhcpc
second # udhcpc eth0 up
third # date 052110452020
fourth # ping 8.8.8.8
It started working.
Request you to look with new boards, will it give the same problem or not. For me on 2 boards, it was the same problem. When i used udhcpc eth0 up and date command, it started working.
Please find below log.. above commands are worked for me. root@rugged-board-a5d2x:~# udhcpc udhcpc: started, v1.27.2 IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready udhcpc: sending discover macb f8008000.ethernet eth0: link up (100/Full) IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready udhcpc: sending discover udhcpc: sending select for 192.168.1.143 udhcpc: lease of 192.168.1.143 obtained, lease time 3600 /etc/udhcpc.d/50default: Adding DNS 8.8.8.8 /etc/udhcpc.d/50default: Adding DNS 202.83.20.101 root@rugged-board-a5d2x:~# ping google.com PING google.com (172.217.160.142): 56 data bytes 64 bytes from 172.217.160.142: seq=0 ttl=45 time=53.436 ms 64 bytes from 172.217.160.142: seq=1 ttl=45 time=48.019 ms ^C --- google.com ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 48.019/50.727/53.436 ms root@rugged-board-a5d2x:~#