荔枝派已经插网线,并且采用 ifconfig eth0 192.168.3.99 给开发板赋IP
root@LicheePi:~# ifconfig
eth0 Link encap:Ethernet HWaddr 02:01:1b:60:20:af
inet addr:192.168.3.99 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8503 errors:0 dropped:0 overruns:0 frame:0
TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1488461 (1.4 MiB) TX bytes:25792 (25.1 KiB)
Interrupt:38
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
在路由器上也能看到荔枝派已经连接,ping路由器和局域网其他设备都可以ping通,但是114.114.114.114和baidu.com ping不通,求各位大神解答
离线
route add default gw 192.168.3.1
echo nameserver 114.114.114.114 > /etc/resolv.conf
离线