usernetctl命令在用于被允许时操作指定的网络接口。在使用上和”ifup”、”ifon”命令有些类似。

语法格式:usernetctl [参数] [网络接口]

常用参数:

up 激活网络接口
down 禁用网络接口
report 报告网络接口

参考实例

激活网络接口:

[root@linuxcool ~]# usernetctl enp1s0 up

禁用网络接口:

[root@linuxcool ~]# usernetctl enp1s0 down

报告网络接口状态:

[root@linuxcool ~]# usernetctl enp1s0 report
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。