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

2023年 7月 22日 42.0k 0

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

相关文章

服务器端口转发,带你了解服务器端口转发
服务器开放端口,服务器开放端口的步骤
产品推荐:7月受欢迎AI容器镜像来了,有Qwen系列大模型镜像
如何使用 WinGet 下载 Microsoft Store 应用
百度搜索:蓝易云 – 熟悉ubuntu apt-get命令详解
百度搜索:蓝易云 – 域名解析成功但ping不通解决方案

发布评论