(相关资料图)
usernetctl 用于被允许时操作指定的网络接口。
在使用上和 ifup 、ifdown 命令有些类似。
usernetctl up|down|report
up激活网络接口。down禁用网络接口。report报告用户是否可以打开或关闭网络接口。
(1)激活网卡。
usernetctl ens33 up
(2)禁用网卡。
usernetctl ens33 down
(3)报告网卡状态。
usernetctl ens33 report
usernetctl(8) manual - linux.org
X 关闭