Windows 전환 IP 게이트웨이 스크립트

간편한 생활, 백업 매뉴얼: Windows IP 및 게이트웨이 전환 스크립트
 
netsh interface ip set address "    " source=static addr=192.168.0.125 mask=255.255.255.0
netsh interface ip add address "    " 192.168.0.125 255.255.255.0
netsh interface ip add address "    " 192.168.0.126 255.255.255.0
netsh interface ip add address "    " 192.168.0.127 255.255.255.0
netsh interface ip add address "    " 192.168.0.128 255.255.255.0
netsh interface ip add address "    " 192.168.0.129 255.255.255.0

netsh interface ip set address name="    " gateway=192.168.0.253 gwmetric=1
netsh interface ip add address name="    " gateway=192.168.0.254 gwmetric=2

netsh interface ip set dns name="    " source=static addr=192.168.0.253
netsh interface ip add dns "    " 192.168.0.254

pause

 
netsh interface ip set address "    " source=static addr=192.168.1.100 mask=255.255.255.0

netsh interface ip set address name="    " gateway=192.168.1.1 gwmetric=1

pause

좋은 웹페이지 즐겨찾기