Difference between revisions of "Ethernet port test"
(Created page with "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 th...") |
|||
Line 15: | Line 15: | ||
Command 'ifconfig' is available in the following places<br> | Command 'ifconfig' is available in the following places<br> | ||
− | /sbin/ifconfig<br> | + | <span></span>*/sbin/ifconfig<br> |
− | /usr/sbin/ifconfig<br> | + | <span></span>*/usr/sbin/ifconfig<br> |
The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.<br> | The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.<br> | ||
This is most likely caused by the lack of administrative privileges associated with your user account.<br> | This is most likely caused by the lack of administrative privileges associated with your user account.<br> |
Revision as of 19:40, 24 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. |