1. 윈도우에서 Command(cmd)를 이용해 IP를 변경하는 방법 (Windows 2000 이상)
[고정 IP]
netsh interface ip set address "[Network Interface Name]" static [IP Address] [Subnet Mask] [Default Gateway] [Metric]
* Metric - 라우팅 경로가 여러개일 경우 우선순위를 나타냄.
ex) netsh interface ip set address "로컬 영역 연결" static 210.115.33.110 255.255.255.0 210.115.33.1 1
* Metric - 라우팅 경로가 여러개일 경우 우선순위를 나타냄.
ex) netsh interface ip set address "로컬 영역 연결" static 210.115.33.110 255.255.255.0 210.115.33.1 1
[유동 IP]
netsh interface ip set address "[Network Interface Name]" dhcp
ex) netsh interface ip set address "로컬 영역 연결" dhcp
ex) netsh interface ip set address "로컬 영역 연결" dhcp
[DNS 입력]
netsh interface ip add dns "[Network Interface Name]" static [DNS]
ex) netsh interface ip add dns "로컬 영역 연결" static 168.126.63.1
ex) netsh interface ip add dns "로컬 영역 연결" static 168.126.63.1
[DNS 추가 입력]
netsh interface ip add dns "[Network Interface Name]" [DNS]
ex) netsh interface ip add dns "로컬 영역 연결" 168.126.63.2
ex) netsh interface ip add dns "로컬 영역 연결" 168.126.63.2
[WINS Server 입력]
netsh interface ip set wins "[Network Interface Name]" static [WINS Server IP Address]
[유동 DNS]
netsh interface ip add dns "[Network Interface Name]" dhcp
[유동 WINS]
netsh interface ip set wins "[Network Interface Name]" dhcp
[WINS 설정 삭제]
netsh interface ip set wins "[Network Interface Name]" none
2. 윈도우에서 배치(bat)파일을 이용해 IP를 변경하는 방법 (Windows 2000 이상)
[고정 IP]
netsh interface ip set address
name="[Network Interface Name]"
static [IP Address] [Subnet Mask] [Gateway] [Metric]
netsh interface ip set dns name="[Network Interface Name]" static [DNS1] primary
netsh interface ip set dns name="[Network Interface Name]" [DNS2] index=2
name="[Network Interface Name]"
static [IP Address] [Subnet Mask] [Gateway] [Metric]
netsh interface ip set dns name="[Network Interface Name]" static [DNS1] primary
netsh interface ip set dns name="[Network Interface Name]" [DNS2] index=2
[유동 IP]
netsh interface ip set address
name="[Network Interface Name]"
source=dhcp
netsh interface ip set dns name="[Network Interface Name]" source=dhcp
name="[Network Interface Name]"
source=dhcp
netsh interface ip set dns name="[Network Interface Name]" source=dhcp
* 위 내용을 텍스트파일에 기입한 후, 확장자를 bat로 변경하여 배치파일로 만들어 사용하세요.
[예제 파일]
"Network" 카테고리의 다른 글
- Dynagen / Dynamips 사용하기 (0)2007/10/07
- 네트워크 프로토콜 참고 사이트 (RFC) (0)2007/08/08
- netsh을 이용한 윈도우상에서의 IP 변경 (0)2007/05/31
- TCP 자세히 보기 (0)2007/05/14
- ROUTER(시스코) 명령어 모음 (0)2007/05/02

수안이의 컴퓨터 연구실
Dynamic_IP_Setting.bat



Leave your greetings.