我正在尝试把我的树莓Pi 3B+连接到我的网络上。但是LAN既不亮,Pi也不知道eth0是什么.我也没有。
ifconfig输出以下内容(ifconfig -a也这样做):
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 10 bytes 1564 (1.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 1564 (1.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether MY-MAC-ADDRESS txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0/etc/网络/接口如下:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*/etc/network/interfaces.d/为空。
就像我说的,它根本不知道eth0是什么:
~$ ifup eth0
ifup: unknown interface eth0
~$ sudo dhclient eth0
Cannot find device "eth0"网络电缆工作,在其他电脑上测试过,并尝试了许多不同的.
发布于 2022-08-26 01:59:50
我相信是在布莱耶引入了一个窃听器。
如果/boot/cmdline.txt没有"net.ifnames=0",那么将其添加到root=行的末尾。那就重新启动。
https://stackoverflow.com/questions/73231965
复制相似问题