IP+DNS 수동설정 배치파일

IT정보 정리 2020. 4. 20. 21:05 Posted by 누우짱

메모장 복사후 CMD로 저장후 우클릭 관리자권한실행 필요함

파일로 다운받으셔도 무관합니다.

 

"이더넷" 연결된 랜카드이름 변경

 

DNS주소변경.CMD
0.00MB
IPDNS자동변경.CMD
0.00MB
IP주소변경.CMD
0.00MB

 

IP주소변경

netsh interface ip set address name="이더넷" static 192.168.1.100 255.255.255.0 gateway=192.168.1.1

                                                                     ( IP주소 )       ( 서브넷 )                 (게이트웨이)

 

 

DNS 주소변경

netsh interface ip set dnsservers "이더넷" static 1.1.1.1 primary
netsh interface ip add dns name="이더넷" 1.0.0.1

 

 

IP DNS 자동변경

netsh interface ip set address name="이더넷" source=dhcp
netsh interface ip set dnsservers "이더넷" source=dhcp

'IT정보 정리' 카테고리의 다른 글

utp 케이블 규격  (0) 2017.12.19
통신선배열 정리  (0) 2017.12.19
tracert 명령어 경로추적  (0) 2017.11.28
nslookup명령어 정리  (0) 2017.11.28
Windows 7 단축키  (0) 2017.11.28