Checked :  Windows 7 Professional with SP1, Windows 8.1 Professional.

 

(1) 명령 프롬프트 (MS-DOS창) 실행후, 명령어 실행  (배치 파일로 작성해서 사용)

     > netsh interface ip show interfaces  // IP 주소를 설정하기 위한 장치 색인 번호 확인 (랜카드)

 

     ※ 입력값

         %NIC%           :  장치 색인 번호  ( 2 )

         %IP%             :  IP주소  ( 192.168.xxx.xxx )

         %SUBNET%    :  서브넷 마스크  ( 255.255.255.0 )

         %GATEWAY% :  게이트웨이  ( 192.168.xxx.1 )

         %WINS%        :  WINS 주소  ( 192.168.xxx.yyy )

 

     > netsh interface ip set address name=%NIC% source=static address=%IP% mask=%SUBNET% gateway=%GATEWAY%
     > netsh interface ip set dnsservers name=%NIC% source=static address=%DNS1% register=none validate=no

     > netsh interface ip add dnsservers name=%NIC% address=%DNS2% index=2 validate=no
     > netsh interface ip set winsservers name=%NIC% source=static address=%WINS%

+ Recent posts