nmcli 连接验证失败

nmcli 连接验证失败

我将根据答案粘贴我尝试运行的配置桌面 Ubuntu 18.04 NetworkManager 的命令序列在这个问题中。当我执行以下步骤时在答案中我最终得到了“错误:连接验证失败”

nmcli connection show --active

NAME          UUID                                  TYPE  DEVICE
LINKSYS99999  ...                                   wifi  wlp4s0

nmcli connection edit

Valid connection types: adsl, bluetooth, bond, bridge, cdma, dummy, generic, gsm, infiniband, ip-tunnel, macsec, macvlan, 802-11-olpc-mesh (olpc-mesh), ovs-bridge, ovs-interface, ovs-port, pppoe, team, tun, vlan, vpn, vxlan, wimax, 802-3-ethernet (ethernet), 802-11-wireless (wifi), bond-slave, bridge-slave, team-slave

输入连接类型:wifi

nmcli> remove ipv4.dns  
nmcli> set ipv4.ignore-auto-dns yes
nmcli> set ipv4.dns 8.8.8.8 8.8.4.4
nmcli> save

错误:连接验证失败:802-11-wireless.ssid:缺少属性您可以尝试运行“验证修复”来修复错误。

nmcli> verify fix

验证连接:802-11-wireless.ssid:缺少属性,无法自动修复错误。

发生了什么事?我该如何解决?我是否需要根据这个 SO 指南

答案1

您必须指定连接 ID 或名称来更改现有的连接脚本,或者在创建新的连接脚本时添加 SSID 信息...

命令行工具

edit {[id | uuid | path] ID | [type type] [con-name name] }
    Edit an existing connection or add a new one, using an interactive
    editor.

    The existing connection is identified by its name, UUID or D-Bus
    path. If ID is ambiguous, a keyword id, uuid, or path can be used.
    See connection show above for the description of the ID-specifying
    keywords. Not providing an ID means that a new connection will be
    added.

    The interactive editor will guide you through the connection
    editing and allow you to change connection parameters according to
    your needs by means of a simple menu-driven interface. The editor
    indicates what settings and properties can be modified and provides
    in-line help.

    Available options:

    type
        type of the new connection; valid types are the same as for
        connection add command.

    con-name
        name for the new connection. It can be changed later in the
        editor.

帖子备注:如果这是 Ubuntu桌面安装,更容易使用网络管理器图形用户界面设置这些设置。

相关内容