BLOG main image
전체 (276)
[Computer] (42)
[Programming] (62)
[DBMS] (26)
[Operating System] (21)
[Study English] (8)
[For money] (28)
[Interest] (89)
«   2009/11   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
78007 Visitors up to today!
Today 21 hit, Yesterday 83 hit
[폭주기관차, 2007/02/08 09:07, [Operating System]/Windows XP]
출처 : 비타민님의 블로그 원문글 보러 가기

노트북에서 자주 IP 변경할 때 유용함.

[IP 변경하기]

Netsh 명령어
netsh -c int ip set address name="변경하고자하는 Interface명" source=static addr=127.0.0.1
 mask=255.255.255.0 gateway=127.0.0.1 gwmetric=0



int = interface
name = 보통 "로컬 영역 연결" 이라고 되어있음
addr = 변경하고자하는 IP주소
mask = 변경하고자하는 Subnet Mask 주소
gateway = 변경하고자하는 Gatewas 주소


netsh -c int ip set address name="로컬 영역 연결" source=static addr=127.0.0.1 mask=255.255.255.0
 gateway=127.0.0.1 gwmetric=0


자동 아이피의 경우 source를 dhcp로 해주면 된다.

netsh -c int ip set address name="로컬 영역 연결" source=dhcp addr=127.0.0.1 mask=255.255.255.0
 gateway=127.0.0.1 gwmetric=0


[DNS 변경하는 방법]
set을 dns로 해주면 된다.

netsh -c int ip set dns name="로컬 영역 연결" source=static addr=127.0.0.1 register=PRIMARY


자동일 경우는 역시 끝에 source=dhcp로 해주면 된다.
이런 명령어를 Batch파일로 저장해두면 IP를 쉽고 빠르게 변경할 수가 있다.

netsh -c int ip set dns name="로컬 영역 연결" source=dhcp


[현재 설정을 저장해서 불러오기]
- 현재 IP설정을 사무실.txt파일에 저장하기
netsh -c interface dump 사무실.txt


- 사무실.txt파일에 저장된 IP설정 적용하기
netsh exec 사무실.txt


주의 : Windows 98에서는 적용되지 않음. XP에서만 실험해봄

 
Trackback Address :: http://kongmks.cafe24.com/trackback/90
spacex@naver.com | 2009/08/19 14:51 | PERMALINK | EDIT/DEL | REPLY
와!!감사합니다.!! 찾던 자료예요!!
BlogIcon 폭주기관차 | 2009/09/14 16:26 | PERMALINK | EDIT/DEL
아~ 다행이네요^^

참고로 아예 자동으로 IP변경해주는 프로그램도 있어요

아래 주소 가보시면 프로그램도 있어요^^

http://kongmks.cafe24.com/131
Name
Password
Homepage
Secret