2017. 11. 21. 17:05

IP Change

rem 네트워크 어댑터 "사용 안함" (어댑터명 ex. public)

netsh interface set interface name="public" admin=disabled


rem IP 충돌 방지 위한 네트워크 단절 대기 (ex. 20초)

ping 127.0.0.1 -n 20 -w 1000


rem 네트워크 어댑터 "사용"

netsh interface set interface name="public" admin=enabled


rem 변경할 IP 설정 (ex. 10.0.0.100)

netsh interface ip set address "public" static 222.111.221.112 255.255.255.128 222.111.112.192 1