我已经构建了 BLFS 8.4,但 WIFI 无法在其上工作。开机出现错误信息
Starting wpa_supplicant on the wlan0 interface...Could not read interface wlan0 flags: No such device
Could not read interface wlan0 flags: No such device
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
*****
*****face wlan0 doesn't exist.
我用 wlp2s0 再次进行了配置,因为那是我的接口。现在开机不再报错,但仍然无法通过wifi上网。
的输出ip link
是
bash-5.0# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 70:5a:b6:8f:2b:56 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
4: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether d6:c3:d9:15:c1:dc brd ff:ff:ff:ff:ff:ff
下面是输出iwconfig
bash-5.0# iwconfig
sit0 no wireless extensions.
lo no wireless extensions.
enp3s0 no wireless extensions.
wlp2s0 IEEE 802.11 ESSID:"iBall-Baton"
Mode:Managed Frequency:2.437 GHz Access Point: 00:1E:A6:DF:94:F4
Bit Rate=1 Mb/s Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=50/70 Signal level=-60 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:6 Missed beacon:0
以下是输出ifup wlp2s0
* Bringing up the wlp2s0 interface... [ OK ]
* ting wpa_supplicant on the wlp2s0 interface... [ OK ]
* Adding IPv4 address 192.168.1.216 to the wlp2s0 interface... [ OK ]
S Gateway already setup; skipping. [ SKIP ]
输出/etc/sysconfig/ifconfig.wlp2s0
ONBOOT="yes"
IFACE="wlp2s0"
SERVICE="wpa"
# Additional arguments to wpa_supplicant
WPA_ARGS=""
WPA_SERVICE="ipv4-static"
IP="192.168.1.216"
GATEWAY="192.168.1.1"
PREFIX="24"
BROADCAST="192.168.1.255"
输出/etc/sysconfig/wpa_supplicant-wlp2s0.conf
network={
ssid="iBall-Baton"
#psk="hamburger"
psk=98562f1a2fa154c127a1ebe9daeecce837edcc57365b6b9b05ffcf2c50bbea0c
}
输出/etc/resolv.conf
cat /etc/resolv.conf
domain ib-wrb304n.setup.in
search ib-wrb304n.setup.in
nameserver 192.168.1.1
输出ping 8.8.8.8
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
92 bytes from 192.168.1.213: Destination Host Unreachable
92 bytes from 192.168.1.213: Destination Host Unreachable
92 bytes from 192.168.1.213: Destination Host Unreachable
^C92 bytes from 192.168.1.213: Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss