創(chuàng)新互聯(lián)www.cdcxhl.cn八線動態(tài)BGP香港云服務(wù)器提供商,新人活動買多久送多久,劃算不套路!
這篇文章將為大家詳細(xì)講解有關(guān)使用linux中usernetctl命令操作指定的網(wǎng)絡(luò)接口,小編覺得挺實(shí)用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
usernetctl命令在用于被允許時操作指定的網(wǎng)絡(luò)接口。在使用上和”ifup”、”ifon”命令有些類似。
語法格式:usernetctl [參數(shù)] [網(wǎng)絡(luò)接口]
常用參數(shù):
up | 激活網(wǎng)絡(luò)接口 |
down | 禁用網(wǎng)絡(luò)接口 |
report | 報告網(wǎng)絡(luò)接口 |
參考實(shí)例
激活網(wǎng)絡(luò)接口:
[root@linuxcool ~]# usernetctl enp1s0 up
禁用網(wǎng)絡(luò)接口:
[root@linuxcool ~]# usernetctl enp1s0 down
報告網(wǎng)絡(luò)接口狀態(tài):
[root@linuxcool ~]# usernetctl enp1s0 report
關(guān)于使用linux中usernetctl命令操作指定的網(wǎng)絡(luò)接口就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。