首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WPA的Ubuntu18.04网络计划配置

WPA的Ubuntu18.04网络计划配置
EN

Unix & Linux用户
提问于 2018-12-18 19:23:18
回答 1查看 10.1K关注 0票数 1

背景

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

我有一个网络计划可以使用一个开放的网络,即使是一个受密码保护的网络,但是我还没有能够让它在需要身份和密码的WPA-EAP中工作。

尝试配置

我在我的/etc/netplan/config.yaml文件中尝试过这样的方法:

代码语言:javascript
复制
network:
    wifis:
      wlp1s0:
        dhcp4: yes
        access-points:
          "My-Enterprise-Network":
            auth:
              key-management: eap
              identity: johndoe1
              password: pass1234

但是当我运行netplan apply时,我得到:

代码语言:javascript
复制
Error in network definition /etc/netplan/config.yaml: unknown key auth

来自文档的

来自联机网络计划文档

代码语言:javascript
复制
 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

代码语言:javascript
复制
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. 在WPA中使用netplan的正确方法是什么?
  2. Ubuntu18.04是否附带过时版本的netplan?(不支持netplan --version ),因此,为什么在线文档有man版本没有的选项?
  3. 如果是的话,我是否可以将netplan升级到更先进的版本?
  4. 或者,网络计划是否需要与wpa_supplicant.conf这样的东西一起使用来指定其他参数?
EN

回答 1

Unix & Linux用户

发布于 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

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/489753

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档