无法连接到家庭 WiFi - DHCP 问题?

无法连接到家庭 WiFi - DHCP 问题?

我正在使用 wicd 进行 wifi 连接。一切工作正常,但现在我突然无法再连接到我的家庭网络。在排除故障时,我尝试从我的智能手机设置一个热点,该热点连接良好并提供互联网访问权限。会不会是DHCP的问题?我附上了 wicd.log 文件的一部分。

2016/02/08 13:21:37 :: Connecting to wireless network asd23 2016/02/08 13:21:37 :: attempting to set hostname with dhclient 2016/02/08 13:21:37 :: using dhcpcd or another supported client may work better 2016/02/08 13:21:39 :: attempting to set hostname with dhclient 2016/02/08 13:21:39 :: using dhcpcd or another supported client may work better 2016/02/08 13:21:39 :: Putting interface down 2016/02/08 13:21:39 :: Releasing DHCP leases... 2016/02/08 13:21:39 :: attempting to set hostname with dhclient 2016/02/08 13:21:39 :: using dhcpcd or another supported client may work better 2016/02/08 13:21:40 :: Setting false IP... 2016/02/08 13:21:40 :: Stopping wpa_supplicant 2016/02/08 13:21:40 :: Flushing the routing table... 2016/02/08 13:21:40 :: Putting interface up... 2016/02/08 13:21:42 :: Generating psk... 2016/02/08 13:21:42 :: Attempting to authenticate... 2016/02/08 13:22:17 :: wpa_supplicant authentication may have failed. 2016/02/08 13:22:17 :: connect result is failed 2016/02/08 13:22:17 :: exiting connection thread 2016/02/08 13:22:18 :: Sending connection attempt result bad_pass 2016/02/08 13:22:18 :: attempting to set hostname with dhclient 2016/02/08 13:22:18 :: using dhcpcd or another supported client may work better 2016/02/08 13:22:19 :: attempting to set hostname with dhclient 2016/02/08 13:22:19 :: using dhcpcd or another supported client may work better

尽管它说“身份验证可能失败”,但我很确定我的密码是正确的。

所有的麻烦都是在我的 VPN 连接出现问题并尝试在 /etc/resolv.conf 中手动设置 DNS 服务器时开始的

如果您需要更多信息,请告诉我。

亲切的问候,萨米

答案1

删除 wicd 和 wpa_supplicant

重新安装wpa_supplicant

sudo apt-get install wpasupplicant

在文件 /etc/apt/sources.list 中添加“非自由”源,例如:

# Debian 8 "Jessie"
deb http://http.debian.net/debian/ jessie main contrib non-free

更新可用软件包列表并安装该软件包

apt-get update && apt-get install firmware-iwlwifi

加载模块

modprobe -r iwlwifi ; modprobe iwlwifi

配置WPA2

 nano /etc/network/interfaces

使用 SSID 和 PSK 设置 wlan0,如下所示:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid YOUR-SSID-HERE
wpa-psk YOUR-PASSWORD-HERE

调出 wlan0:

ifup wlan0

使用以下任一方法重新启动网络服务:

/etc/init.d/networking restart

相关内容