1,修改为自动获取
@echo.
@echo -----------------------------------------
@echo 本命令将自动为“本地连接”填写为自动获取
@echo -----------------------------------------
@echo.
@ pause
@echo off
netsh interface ip set add name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp
2、修改为固定IP
@echo.
@echo -----------------------------------------
@echo 本命令将自动为“本地连接”填写以下内容:
@echo IP地址:10.180.23.59
@echo 网关: 10.180.23.33
@echo DNS: 202.99.224.67
@echo -----------------------------------------
@echo.
@ pause
@echo off
netsh interface ip set add "本地连接" static 10.180.23.59 255.255.255.224 10.180.23.33
netsh interface ip set dns "本地连接" static 202.99.224.67 primary
netsh interface ip set wins "本地连接" static 202.99.224.68
已有 0 位网友参与,快来吐槽:
发表评论