CMD下修改IP地址

@echo off
netsh interface ip set address name="本地连接" static 192.168.1.55 255.255.255.0 192.168.1.1 auto >nul
netsh interface ip add dns "本地连接" 202.98.96.68 index=1 >nul
netsh interface ip add dns "本地连接" 61.139.2.69 index=2 >nul
netsh interface ip set address name="本地连接2" static 192.168.1.55 255.255.255.0 192.168.1.1 auto >nul
netsh interface ip add dns "本地连接2" 202.98.96.68 index=1 >nul
netsh interface ip add dns "本地连接2" 61.139.2.69 index=2 >nul
netsh interface ip set address name="本地连接3" static 192.168.1.55 255.255.255.0 192.168.1.1 auto >nul
netsh interface ip add dns "本地连接3" 202.98.96.68 index=1 >nul
netsh interface ip add dns "本地连接3" 61.139.2.69 index=2 >nul
echo IP地址已经设定修改完毕,按任意键关闭此窗口
pause >nul 

原文地址:https://www.cnblogs.com/websocket/p/4796716.html