【创龙TL570x-EVM】解决ping 域名不通问题
[复制链接]
准备用Python pip安装模块,提示'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object>
找了好久,感觉是没有找到域名,于是查看网线络什么都都正常。ping www.baidu.com提示不通。是不是dns没有设置,查看文件/etc/resolv.conf出现错误
root@AM57xx-Tronlong:/etc# cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
新建/etc/resolv.conf
nameserver 202.103.224.68
nameserver 192.168.3.1
保存后,解解dns问题:
root@AM57xx-Tronlong:/etc# ping www.baidu.com
PING www.baidu.com (14.215.177.38): 56 data bytes
64 bytes from 14.215.177.38: seq=0 ttl=54 time=28.228 ms
64 bytes from 14.215.177.38: seq=1 ttl=54 time=28.149 ms
64 bytes from 14.215.177.38: seq=2 ttl=54 time=28.023 ms
64 bytes from 14.215.177.38: seq=3 ttl=54 time=28.374 ms
【总结】这个系统还有好些东西没有齐全,要解决问题,还要花很大的代价。
|