使用 connman 连接到我的私人 WPA2 Wifi 效果非常好(接下来这指示)。但是当我尝试连接到 ieee8021x 网络时,我总是收到此错误:
错误 /net/connman/service/wifi_801f024ae577_556e6974796d65646961205769666953706f74_driven_ieee8021x:参数无效
我认为放置在 /var/lib/connman 中的配置文件有问题:
[global]
Name = UnityMedia
[service_umWifiSpot]
Type = wifi
SSID = 556e6974796d65646961205769666953706f74
EAP = peap
Phase2 = MSCHAPV2
Iddentit=unitymedia/myUsername
#[email protected]
Passphrase=myPassword
这就是我尝试连接的方式:
connmanctl> agent on
Agent registered
connmanctl> scan wifi
connmanctl> services
*AO Wired ethernet_b827eb8920a9_cable
*AR ¯\_(ツ)_/¯ wifi_801f024ae577_c2af5c5f28e38384295f2fc2af_managed_psk
furb wifi_801f024ae577_66757262_managed_psk
Unitymedia WifiSpot wifi_801f024ae577_556e6974796d65646961205769666953706f74_managed_ieee8021x
:o) wifi_801f024ae577_3a6f29_managed_psk
ʕ•ᴥ•ʔ wifi_801f024ae577_ca95e280a2e1b4a5e280a2ca94_managed_psk
DIRECT-eE-Sonja's Fire TV wifi_801f024ae577_4449524543542d65452d536f6e6a6127732046697265205456_managed_psk
DIRECT-B9-HP ENVY 4520 series wifi_801f024ae577_4449524543542d42392d485020454e5659203435323020736572696573_managed_psk
SoHigh-WG wifi_801f024ae577_536f486967682d5747_managed_psk
o2-WLAN42 wifi_801f024ae577_6f322d574c414e3432_managed_psk
wifi_801f024ae577_hidden_managed_psk
UPC1989729 wifi_801f024ae577_55504331393839373239_managed_psk
wildline wifi_801f024ae577_77696c646c696e65_managed_psk
Internet wifi_801f024ae577_496e7465726e6574_managed_psk
UPC317EB59 wifi_801f024ae577_55504333313745423539_managed_psk
HP-Print-BE-Officejet Pro 8610 wifi_801f024ae577_48502d5072696e742d42452d4f66666963656a65742050726f2038363130_managed_none
UPC1BD68AB wifi_801f024ae577_55504331424436384142_managed_psk
Scan completed for wifi
connmanctl> connect wifi_801f024ae577_556e6974796d65646961205769666953706f74_managed_ieee8021x
Error /net/connman/service/wifi_801f024ae577_556e6974796d65646961205769666953706f74_managed_ieee8021x: Invalid arguments
通过此 wpa_supplicant.conf 的连接有效:
network={ ssid=”Unitymedia WifiSpot” key_mgmt=WPA-EAP eap=PEAP identity=”unitymedia/myUsername” password=”myPassword” }
希望有人知道我做错了什么?
答案1
您是否尝试过英特尔的说明康曼页面? (由于此页面被删除,我不得不从 Wayback Machine 获取旧版本)
cat > /var/lib/connman/<pick_a_name>.config <<EOF
[global]
Name = <SSID>
Description = <fill in something descriptive>
[service_peap]
Type = wifi
Name = <SSID - like above>
EAP = peap
Phase2 = MSCHAPV2
Identity = <login>
Passphrase = <password>
EOF
之后,只需运行即可connmanctl connect <IEEE802.1x service>
,而可以通过调用以下命令找到服务名称:
connmanctl enable wifi
connmanctl scan wifi
connmanctl services
再次引用英特尔页面,如果第一次尝试不起作用,请重试。 (我只用了 2 次尝试就用 Edison 成功登录了 IEEE 802.1x 热点)。