启用与禁用网卡dos命令cmd

win10
netsh interface set interface 以太网 disabled

netsh interface set interface 以太网 enabled

自动获取ip:

netsh interface ip set address 以太网 dhcp
配置ip:
netsh interface ip set address 以太网 static 192.168.1.188 255.255.255.0

以太网是自己网卡的名字,网卡名字不能有空格

猜你喜欢

转载自blog.csdn.net/txwtech/article/details/113238651