| 
 成长值: 189
 签到天数: 5049 天 [LV.Master]伴坛终老 | 
 
 发表于 2017/6/21 20:28
|
显示全部楼层
|阅读模式
|  Google Chrome 59.0.3071.109|  Windows 8.1 
 
| windows 利用cmd方式重启网卡命令,修改网卡工作速率 bat 
 比如说机房调整了交换机,100M到1000M,就需要重启网卡,然后我们就用命令重启下就可以变成1000Mbps
 
 立即重启网卡
 
 复制代码@echo off
netsh interface set interface "以太网" disabled
netsh interface set interface "以太网" enabled
echo OK
 180秒后重启网卡,适合ip冲突解绑ip所用的时间,因为Windows如果ip冲突后无法联网,解绑ip后依旧无法正常获得网络,所以需要延迟去重启网卡
 
 复制代码@echo off
ping /n 180 127.1>nul
netsh interface set interface "以太网" disabled
netsh interface set interface "以太网" enabled
echo OK
 
 | 
 |