Difference between revisions of "Ethernet port test"
Line 9: | Line 9: | ||
:inet '''<span style="color:#FF0000">192.168.1.150</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 <br> | :inet '''<span style="color:#FF0000">192.168.1.150</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 <br> | ||
::valid_lft 43150sec preferred_lft 43150sec<br> | ::valid_lft 43150sec preferred_lft 43150sec<br> | ||
− | :inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute | + | :inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute<br> |
+ | ::valid_lft forever preferred_lft forever | ||
|} | |} | ||
{| class="wikitable" style="width:800px;background-color:#ffffdc;" | {| class="wikitable" style="width:800px;background-color:#ffffdc;" |
Latest revision as of 09:10, 25 April 2023
1) First, insert one end of the network cable into the Ethernet interface of the development board, and connect the other end of the network cable to the router, and ensure that the network is unblocked
2) After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP,No other configuration is required
3) The command to view the IP address in the Linux system of the development board is as follows
orangepi@orangepi:~$ ip addr show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
|
When using ifconfig to view the IP address, if the following information is displayed, it is because sudo is not added. The correct command is:sudo ifconfig Command 'ifconfig' is available in the following places |
There are three ways to check the IP address after the development board starts: 1. Connect the HDMI monitor, then log in to the system and use the ip addr show eth0 command to view the IP address In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings. |
4) The command to test the network connectivity is as follows, the ping command can be interrupted through the shortcut key of Ctrl+C
orangepi@orangepi:~$ ping www.baidu.com -I eth0 PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data. |