@echo off
netsh interface set interface name="以太网" admin=DISABLED
netsh interface set interface name="以太网" admin=ENABLED
netsh interface ip set address name="以太网" source=static address=192.168.168.168 mask=255.255.255.0netsh interface ip add address name="以太网" 192.168.5.5 255.255.255.0
netsh interface ip add address name="以太网" 192.111.6.6 255.255.255.0
netsh interface ip add dnsserver name="以太网" address=114.114.114.114
pause
@echo off
netsh interface set interface name="以太网" admin=DISABLED
netsh interface set interface name="以太网" admin=ENABLED
netsh interface ip set address name="以太网" source=dhcp
pause
保存为.bat文件,以管理员权限运行;
注:保存文件使用ANSI格式;
win11手动设置:
设置 -> 网络和Internet -> 高级网络设置 -> 以太网 -> 更多适配器选项

1027

被折叠的 条评论
为什么被折叠?



