8,460
个编辑
更改
以太网口测试
,无编辑摘要
orangepi@orangepi:~$ '''ifconfig'''<br>
Command 'ifconfig' is available in the following places<br>
<span></span> */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>
This is most likely caused by the lack of administrative privileges associated with your user account.<br>
2. 在调试串口终端输入 '''ip addr show eth0''' 命令来查看 IP 地址<br>
3. 如果没有调试串口,也没有 '''HDMI''' 显示器,还可以通过路由器的管理界面来查看开发板网口的 '''IP''' 地址。不过这种方法经常有人会无法正常看到开发板的 '''IP''' 地址。如果看不到,调试方法如下所示:<br>
|}
4) 测试网络连通性的命令如下,'''ping''' 命令可以通过 '''Ctrl+C''' 快捷键来中断运行<br>
|-
|orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''<br>
PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data. <br>64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms<br>
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=56 time=6.80 ms<br>
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=56 time=6.26 ms<br>