2,089
社区成员
发帖
与我相关
我的任务
分享
netsh interface ip set address name="本地连接" source=static 192.168.1.107 255.255.255.0 192.168.1.1
netsh interface ip set dns "本地连接" static 192.168.1.1 primary
netsh interface ip add dns "本地连接" 192.168.1.1
从上往下依次是静态ip,子网掩码,网管,主dns地址,备用dns地址。
命令行。保存为.bat批处理文件,用管理员身份运行即可。