在cmd中对网卡进行操作
查看接口信息
ipconfig /all
netsh interface show interface
route -4 print
禁用 、开启某网卡
rem 禁用网卡
netsh interface set interface 以太网 disabled
rem 启用网卡
netsh interface set interface 以太网 enabled
查看接口信息
ipconfig /all
netsh interface show interface
route -4 print
禁用 、开启某网卡
rem 禁用网卡
netsh interface set interface 以太网 disabled
rem 启用网卡
netsh interface set interface 以太网 enabled