8,367
edits
Changes
→Ethernet port test
<ol style="list-style-type: decimal;">
<li><p>First, plug one end of the network cable into the Ethernet interface of the development board, and the other end of the network cable into the router, and make sure the network is open.</p></li>
<li><p>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>'''</p></li>
<li><p>The command to view the IP address in the Linux system of the development board is as follows</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''ip addr show eth0'''</p>
<p>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000</p>
:<p>link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff</p>:<p>inet '''<span style="color:#FF0000">192.168.1.150</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0</p>::<p>valid_lft 43150sec preferred_lft 43150sec</p>:<p>inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute</p>::<p>valid_lft forever preferred_lft forever</p>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''When using ifconfig to check the IP address, if the following information is prompted, it is caused by not adding sudo. The correct command is:sudo ifconfig'''</p></big>
<p>orangepi@orangepi:~$ '''ifconfig'''</p>
<p>Command 'ifconfig' is available in the following places</p>
<p>The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.</p>
<p>This is most likely caused by the lack of administrative privileges associated with your user account.</p>
<p>ifconfig: command not found</p>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''注意,这里说的Linux镜像具体指的是从Orange Pi资料下载页面下载的Debian或者Ubuntu这样的Linux发行版镜像。'''</libig>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </olbig>'''There are three ways to check the IP address after the development board is started.:''' 1. '''Connect the HDMI display, then log in to the system and use the ip addr show eth0 command to view the IP address.'''
2. '''There are three ways Enter the ip addr show eth0 command in the debugging serial terminal to check view the IP address after the development board is started.:'''
<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 flashing, it usually means that it has started normally. If only the red light is on, it means that the system has not started normally.;'''</p></li>
<li><p>'''Check whether the network cable is plugged in tightly, or try another network cable;'''</p></li>
<li><p>'''Try another router (I have encountered many problems with routers, such as the router being unable to assign an IP address normally, or the IP address being assigned normally but not visible in the router);'''</p></li>
<li><p>'''If there is no router to replace, you can only connect an HDMI display or use the debugging serial port to check the IP address.'''</p></li></ol> <p>'''In addition, it should be noted that the development board's DHCP automatic allocation of IP addresses does not require any settings.'''</p></big>|}</li></ol>
<!-- -->
<ol start="4" style="list-style-type: decimal;">
<li><p>The command to test the network connectivity is as follows, the '''ping''' command can be interrupted through the shortcut key of '''Ctrl+C'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''</p>
<p>PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data.</p>
<p>--- www.a.shifen.com ping statistics ---</p>
<p>4 packets transmitted, 4 received, 0% packet loss, time 3002ms</p>
<p>rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms</p>|}</li></ol>
<span id="wifi-connection-test"></span>
=== WIFI connection test ===