Ubuntu 18.04 WPA-EAP 的网络规划配置

Ubuntu 18.04 WPA-EAP 的网络规划配置

背景

我正在使用Ubuntu 18.04 server(在笔记本电脑上,用于开发)并尝试将我的 wifi 配置为与WPA-EAP网络一起使用。

我已经让 netplan 可以与开放网络一起使用,甚至可以使用密码保护的网络,但无法使其在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 netplan

access-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.

问题

  1. 将 netplan 与 WPA-EAP 结合使用的正确方法是什么?
  2. Ubuntu 18.04 是否附带了过时版本的 netplan? (netplan --version不支持)因此,也许为什么在线文档有该man版本没有的选项?
  3. 如果是这样,我可以将 netplan 升级到更前沿的版本吗?
  4. 或者 netplan 是否需要与 a 之类的东西一起使用来wpa_supplicant.conf指定其他参数?

答案1

您应该升级您的 netplan.io 软件包才能使其正常工作。

ubuntu 存储库位于http://nl.archive.ubuntu.com/ubuntu/pool/main/n/netplan.io/包含类似 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

并且它的安装无需进一步的依赖项,因此它是一个直接替代品。

您的“netplan generated”将不再受到未知“auth key”的困扰。以下内容适用于我访问公共 Ziggo 热点:

wifis: wlp1s0: dhcp4: true access-points: "<SSID>": auth: key-management: eap password: <secret> method: peap identity: <hiddenid> ca-certificate: /etc/WIFI.pem

相关内容