Skip to content

network_nmcli_802.1x

复制本地路径 | 在线编辑

连接 802.1X 安全认证的网络. 例子说明: SSID 为 Tsinghua-Secure, 接口为 wlan0

注意: 请一定要检查内核版本有没有对应上(uname -r 和 /lib/modules 是否匹配)!!
血的教训, 开机更新后忘记重启, 导致连接网络一直连不上..

  1. 删除已有的存储信息, 防止干扰
    nmcli con delete id

  2. 新加入网络
    nmcli connection edit type wifi con-name Tsinghua-Secure

    > set 802-11-wireless.ssid Tsinghua-Secure
    > set 802-11-wireless-security.key-mgmt wpa-eap
    > set 802-1x.eap peap
    > set 802-1x.identity <USERNAME>
    > set 802-1x.password <PASSWORD>
    > set 802-1x.phase2-auth mschapv2
    > set ipv4.method auto
    > set ipv6.method auto
    > save
    

  3. 查看已经存在的网络
    nmcli con show

  4. 连接
    nmcli con up Tsinghua-Secure

Comments