8,367
edits
Changes
→Ethernet port test
# 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
# After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP, '''<span style="color:#FF0000">No other configuration is required</span>'''
# The command to view the IP address in the Linux system of the development board is as follows
::{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''ip addr show eth0'''
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
:link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff
:inet '''<span style="color:#FF0000">192.168.1.150</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
::valid_lft 43150sec preferred_lft 43150sec
:inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute
::valid_lft forever preferred_lft forever|} {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''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'''
orangepi@orangepi:~$ '''ifconfig'''
This is most likely caused by the lack of administrative privileges associated with your user account.
ifconfig: command not found</big>|} {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''There are three ways to check the IP address after the development board starts:''' '''1. Connect the HDMI display, then log in to the system and use the ip addr show eth0 command to view the IP address'''
'''There are three ways 2. Enter the ip addr show eth0 command in the debugging serial terminal to check view the IP address after the development board starts:'''
<ol style="list-style-type: upper-alpha;">
<li><p>'''First check whether the Linux system has started normally. If the green light of the development board is blinking, it is generally started normally. If only the red light is on, it means that the system has not started normally;'''</p></li>
<li><p>'''If there is no router to replace, you can only connect to an HDMI display or use the debugging serial port to view the IP address'''</p></li></ol>
'''In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.'''</big>|}
<ol start="4" style="list-style-type: decimal;">
<li>The command to test the network connectivity is as follows, the '''ping''' command can be interrupted through the shortcut key of '''Ctrl+C'''</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''
rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms
|}
</ol>
<span id="wifi-connection-test"></span>
=== WIFI connection test ===