Wpa supplicant/zh-cn

wpa_supplicant 是 Article description::一个处理网络认证的 wifi 请求者程序（supplicant）.

安装
作为前提条件，无线支持可能需要在内核中激活在IEEE_802.11中介绍的内容，以及必要的 无线设备驱动.

Emerge
检查了 USE 标记之后，使用 Portage 的 命令安装 ：

文件
请务必选择相应的设置.

全局
对于单一无线接口的使用，只需要一个配置文件. 默认情况下该文件不存在，可以从  复制一个配置文件模板，其中 P 变量的值是当前 emerge 的 Wpa supplicant 的名称和版本：

接下来，编辑此文件：

为了允许非特权用户使用 wpa_gui / wpa_cli 控制连接，确保用户在 用户组中.

设置为 dhcpcd 的网络管理器
In case the deprecated WEXT driver is needed, changing the wireless driver can help resolve cases where it associates then immediately disconnects with reason 3. Run wpa_supplicant -h to see a list of the available drivers that were built at compile-time.

在Gentoo 中设置 net.* 脚本
告诉网络脚本使用 wpa_supplicant：

完成下面的配置后，最好更改权限，确保使用计算机的任何人都不能以明文形式查看WiFi密码：

使用 wpa_gui
The simplest way to use wpa_supplicant is by using its interface called. To enable it, build wpa_supplicant with the USE flag enabled.

使用 wpa_cli
Wpa_supplicant also has a command-line user interface. Typing starts its interactive mode with tab-completion. Typing  at this prompt will list the commands available (click "Expand" to view the output for the  command below):

更多有关与如何连接的详细信息，可以在 Arch Linux Wiki 中找到.

使用 wpa_passphrase
wpa_supplicant includes a tool to quickly write a network block from the command line for Preshared-Key (PSK aka password) networks,.

The SSID is required. If omitted, the passphrase can be entered when prompted.

输出的结果可以复制或使用管道命令输出到.

手动编辑
Of course, the configuration file could also be edited manually. However this can be very laborious if the computer needs to connect to many different access points.

Examples can be found in and.

WPA2 with wpa_supplicant
Connecting to any wireless access point serving YourSSID

Using bssid to specify which access point it should connect to using its MAC address, in case there are repeaters in place. Remember to use wpa_passphrase [passphrase] to generate the psk

故障排除
如果它不能像你预期的那样运行，请尝试下面的一些操作并分析输出.

检索已知 bug

 * 上游邮件列表存档
 * 上游邮件列表存档

以调试模式运行 wpa_supplicant
区别已停止所有运行的请求者 (supplicant) 实例：

Something like the following options can be used for debugging (click "Expand" to view the output below):

在 Gentoo 中启用 net.* 脚本日志
Now, within one terminal issue a command to monitor output and restart the  device in another:

另请参阅

 * iwd is the intended replacement for wpa_supplicant.

External resources

 * HOWTO: Remote access point with wpa_supplicant (Gentoo Forums)
 * Extensible Authentication Protocol (Wikipedia)
 * Extensible Authentication Protocol (wiki.freeradius.org)
 * wpa_supplicant upstream just accepted patch to allow interface matching
 * http://www.kb.cert.org/vuls/id/CHEU-AQNN3Z