我正在使用Ubuntu 18.04 server (在笔记本电脑上进行开发),并试图将我的wifi配置为与WPA-EAP网络一起工作。
我有一个网络计划可以使用一个开放的网络,即使是一个受密码保护的网络,但是我还没有能够让它在需要身份和密码的WPA-EAP中工作。
我在我的/etc/netplan/config.yaml文件中尝试过这样的方法:
network:
wifis:
wlp1s0:
dhcp4: yes
access-points:
"My-Enterprise-Network":
auth:
key-management: eap
identity: johndoe1
password: pass1234但是当我运行netplan apply时,我得到:
Error in network definition /etc/netplan/config.yaml: unknown key auth来自文档的
来自联机网络计划文档:
The ``auth`` block supports the following properties:
``key-management`` (scalar)
: The supported key management modes are ``none`` (no key management);
``psk`` (WPA with pre-shared key, common for home wifi); ``eap`` (WPA
with EAP, common for enterprise wifi); and ``802.1x`` (used primarily
for wired Ethernet connections).
``password`` (scalar)
: The password string for EAP, or the pre-shared key for WPA-PSK.
The following properties can be used if ``key-management`` is ``eap``
or ``802.1x``:
``method`` (scalar)
: The EAP method to use. The supported EAP methods are ``tls`` (TLS),
``peap`` (Protected EAP), and ``ttls`` (Tunneled TLS).
``identity`` (scalar)
: The identity to use for EAP.man netplanaccess-points (mapping)
This provides pre-configured connections to NetworkManager.
Note that users can of course select other access points/SSIDs.
The keys of the mapping are the SSIDs, and the values are mappings
with the following supported properties:
password (scalar)
Enable WPA2 authentication and set the passphrase for it.
If not given, the network is assumed to be open.
**Other authentication modes are not currently supported.**注意最后一行:Other authentication modes are not currently supported.
netplan --version ),因此,为什么在线文档有man版本没有的选项?wpa_supplicant.conf这样的东西一起使用来指定其他参数?发布于 2019-05-07 18:31:13
您应该升级您的netplan.io包以使其工作。
http://nl.archive.ubuntu.com/ubuntu/pool/main/n/netplan.io/上的ubuntu存储库包含一个类似netplan.io_0.96-0ubuntu0.18.04.4_amd64.deb或任何您可能拥有的体系结构的版本。默认版本太旧了。
我将它安装在我的ubuntu 18.04 LTS上:
dpkg -i netplan.io_0.96-0ubuntu0.18.04.4_amd64.deb
而且它的安装没有进一步的依赖,因此它是一个插入的替代。
您的“网络计划生成”将不再受到未知的'auth键‘的影响。以下是我访问Ziggo公共热点的工作:
wifis: wlp1s0: dhcp4: true access-points: "<SSID>": auth: key-management: eap password: <secret> method: peap identity: <hiddenid> ca-certificate: /etc/WIFI.pem
https://unix.stackexchange.com/questions/489753
复制相似问题