usernetctl命令 – 操作指定的网络接口

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

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

常用参数:

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

参考实例

激活网络接口:

[root@xtuos.com ~]# usernetctl enp1s0 up

禁用网络接口:

[root@xtuos.com ~]# usernetctl enp1s0 down

报告网络接口状态:

[root@xtuos.com ~]# usernetctl enp1s0 report

原创文章,作者:云东方,如若转载,请注明出处:https://www.yundongfang.com/1650.html

(0)
上一篇 2021年3月19日 上午2:19
下一篇 2021年3月19日 上午2:25

相关推荐