國(guó)外VPS 利用“批處理”修改本機(jī)IP地址
@ECHO OFF@ECHO ———- 設(shè)置本機(jī)IP地址 ———-if {%1}=={} netsh interface IP set address “本地連接” static 192.168.1.88 255.255.255.0 >nulif NOT {%1}=={} netsh interface IP set address “本地連接” static %1 255.255.255.0 >nulnetsh interface IP set address “本地連接” static gateway=192.168.1.1 gwmetric=1 >nul@ECHO.@ECHO 設(shè)置成功!netsh interface IP set dns “本地連接” static 202.96.128.86 >nulnetsh interface ip add dns “本地連接” 202.96.128.166 index=2 >nul