![WiFi 有效且连接正常,但没有 eth0 或 wlan0](https://linux22.com/image/76964/WiFi%20%E6%9C%89%E6%95%88%E4%B8%94%E8%BF%9E%E6%8E%A5%E6%AD%A3%E5%B8%B8%EF%BC%8C%E4%BD%86%E6%B2%A1%E6%9C%89%20eth0%20%E6%88%96%20wlan0.png)
我在 Fedora 上,并试图找到我的本地 IP 地址,所以我运行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 0 (Local Loopback)
RX packets 96855 bytes 3248510 (3.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 96855 bytes 3248510 (3.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
p3p1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f0:bf:97:1c:06:47 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
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.16 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::6680:99ff:fe24:2b70 prefixlen 64 scopeid 0x20<link>
ether 64:80:99:24:2b:70 txqueuelen 1000 (Ethernet)
RX packets 6320917 bytes 7972484964 (7.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2394386 bytes 343585425 (327.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
似乎正确的信息在下面,wlp2s0
但首先,我不确定这三个是什么,其次,我习惯于看到eth0
和/或wlan0
或其他东西。
答案1
最近的 Fedora 版本使用 systemd 和新型可预测网络接口名称。
http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
如果您确实想要使用 udev 规则,您可以覆盖它们,但可能值得付出努力来习惯新名称 - 它们不会再次更改,这就是它们的重点。