ETC
명령창에서 IP 설정
H. An
2009. 11. 11. 08:00
NETSH
2009. 11. 11.
안혁
http://hyok.kr
가끔 명령창으로 IP를 설정해야만 하는 경우가 생기죠? 방법은 다음과 같습니다.
netsh -c int ip set address name=<네트워크 이름> source=static addr=<IP 주소> mask=<MASK> gateway=<게이트웨이 주소>
사용 예)
netsh -c int ip set address name="로컬 영역 연결" source=static addr=192.168.0.10 mask=255.255.255.0 gateway=192.168.0.1
source에 static대신 dhcp를 넣는다면 동적 IP 설정이 되겠죠? 환경에 맞게 사용하면 되겠습니다.