Table of Contents
Trucrux provides 2 Ethernet ports eth0 and eth1 respectively. Where eth0 is over imx8mm-trux-q01 SoM and eth1 is over trux-8MDVP.
Test Ethernet Connection #
Use the following command to check the IP of all ethernet nodes
root@imx8mm-trux-q01:~# ifconfig
output
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.0.153 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::3f56:dd58:3382:4a8c prefixlen 64 scopeid 0x20<link> ether 46:bd:13:91:0e:fd txqueuelen 1000 (Ethernet) RX packets 959 bytes 114434 (111.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 213 bytes 25372 (24.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.0.189 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::65f3:fef6:7d6f:e922 prefixlen 64 scopeid 0x20<link> ether e2:86:fa:31:8c:06 txqueuelen 1000 (Ethernet) RX packets 66 bytes 8679 (8.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 60 bytes 10682 (10.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 metric 1 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 6602 bytes 410460 (400.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6602 bytes 410460 (400.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
To check connectivity with the Internet #
Use the following command to check the internet connection.
root@imx8mm-trux-q01:~# ping 8.8.8.8 -I eth0
output
PING 8.8.8.8 (8.8.8.8) from 192.168.0.153 eth0: 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=3.73 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=6.93 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=118 time=3.24 ms
To restart the Ethernet node #
Use the below command to restart the respective eth node
root@imx8mm-trux-q01:~# ifconfig ethx down root@imx8mm-trux-q01:~# ifconfig ethx up
Where x in ethx is the node ID which is either 0 or 1.