首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用nmcli打开接口

使用nmcli打开接口
EN

Ask Ubuntu用户
提问于 2019-05-26 17:43:41
回答 1查看 6.7K关注 0票数 4

我想使用nmcli命令打开我的接口。命令nmcli device connect wlp2s0不适用于我,它给出了以下错误:Error: Failed to add/activate new connection: A 'wireless' setting is required if no AP path was given.

有什么想法吗?谢谢。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-05-26 18:22:19

根据手册页

代码语言:javascript
复制
   nmcli radio {all | wifi | wwan} [ARGUMENTS...]

   Show radio switches status, or enable and disable the switches.

   wifi [on | off]
       Show or set status of Wi-Fi in NetworkManager. If no arguments are supplied, Wi-Fi
       status is printed; on enables Wi-Fi; off disables Wi-Fi.

   wwan [on | off]
       Show or set status of WWAN (mobile broadband) in NetworkManager. If no arguments are
       supplied, mobile broadband status is printed; on enables mobile broadband, off
       disables it.

   all [on | off]
       Show or set all previously mentioned radio switches at the same time.

nmcli radio wifi on

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

https://askubuntu.com/questions/1146363

复制
相关文章

相似问题

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