我需要在我的 RPi 3 中添加一个 wifi-USB 模块。最初,它内置了一个有线网卡。因此,我可以从“ifconfig”命令的响应中找到“eth0”和“lo”。我通过“apt-get install firmware-realtek”安装了wifi驱动程序,然后我可以看到wlan0出现在“ifconfig”中。问题是我在 ifconfig 的响应列表中找不到 wlan0 的 IP 地址。
经过让 wlan0 显示 IP 地址的一些努力,我发现 'eth0' 和 'wlan0' 意外消失了。它显示error fetching interface information: Device not found
命令“ ifconfig wlan0
”的“ ”我怎样才能恢复它们?在我发现问题之前,我已经wlan0
在响应中出现了ifconfig
。我还在 iwlist 的响应中发现了我办公室的所有 Wifi AP。
我使用了命令 ' systemctl status networking.service
',我得到了 ....
Loaded: loaded (/lib/systemd/system/neworking.service: enabled: vendor preset:enabled)
Active: failed (Result: exit-code) since Thu 2020-06-04 22:33:12 BST: 1h 21min agon
Docs:man: interfaces(5)
Process: 844 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
....
我不记得我做了什么造成这样的麻烦。我能做些什么,使eth0
和wlan0
回来吗?
那是我的错误。eth0 和 wlan0 这两个设备并没有消失。它们刚刚被 raspi-config 重命名为 enxxxxxxxxxxxx 和 wlwwwwwwwwwwww;其中 xxxx* 和 www* 分别是它们的 MAC 地址。我误认为它们是错误的设备。我在 Ubuntu 16.04 中使用 systemd 重命名网络接口的方法无法将它们重命名回 eth0 和 wlan0。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句