我已经在SD卡上安装了armbian,我无法获得任何网络。没有以太网,也没有无线网络。我唯一能做的就是通过串口连接到它。以下是关于我的网络im连接的一些信息:
Gateway: 192.168.8.1
Dhcp: 192.168.8.1
DNS: 192.168.8.1网络DNS总是从100-200分配地址。
root@orangepizero:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 - 255.255.255.0 ! 0 - 0 -
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@orangepizero:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
gateway 192.168.8.1
netmask 255.255.255.0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid *****
wpa-psk *****我尝试过分配静态地址,以及在互联网上找到的一些其他提示,但都没有成功。设备仍然没有连接。
下面是我当前的ifconfig eth0 (虽然它有我放置的ip,但它没有连接到路由器)
eth0 Link encap:Ethernet HWaddr e6:f5:19:a6:1b:e6
inet addr:192.168.8.121 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::e4f5:19ff:fea6:1be6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:10602 (10.3 KiB)
Interrupt:114发布于 2017-04-01 17:59:41
你的路线错了。它应该是这样的:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.8.1 255.255.255.0 UG 600 0 0 eth0检查您的DHCP设置。在使用gateway设置时,将忽略dhcp和netmask设置。
https://unix.stackexchange.com/questions/355305
复制相似问题