在cmd中對網卡進行操作

查看接口信息

ipconfig /all

在這裏插入圖片描述

netsh interface show interface

在這裏插入圖片描述在這裏插入圖片描述

route -4 print

在這裏插入圖片描述禁用 、開啓某網卡

rem 禁用網卡
netsh interface set interface 以太網 disabled
rem 啓用網卡
netsh interface set interface 以太網 enabled

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章