Checked :  Windows XP Professional with SP3

 

(1) 윈도우 서비스 :  Routing and Remote Access

     → 시작 유형 및 서비스 상태 변경 :  자동, 시작됨

 

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

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

 

     ※ 입력값

         %NIC%           :  장치 이름  ( 로컬 영역 연결 )

         %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 addr=%IP% mask=%SUBNET% gateway=%GATEWAY% gwmetric=10
     > netsh interface ip set dns name="%NIC%" source=static addr=%DNS1% register=none
     > netsh interface ip add dns name="%NIC%" addr=%DNS2% index=2
     > netsh interface ip set wins name="%NIC%" source=static addr=%WINS%

+ Recent posts