Keywords: script, IP address
ChangeIP.bat
Rem: This file is a bat file, can help you change your ip automatically. please change the bold part depended your condition.
@echo off
rem Local Area Connection 3 is your connection name in your windows network connections.
netsh interface ip set address name="Local Area Connection 3" static 10.225.79.181 255.255.255.0 10.225.79.1 1
Rem the following 2 lines will set dns for given connection
netsh interface ip set dns "Local Area Connection 3" static 10.225.68.3
netsh interface ip add dns "Local Area Connection 3" 10.237.5.79 index=2
@echo off
No comments:
Post a Comment