¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 12°Ç
   
DHCP --> STATIC º¯°æ2
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-11-17 (¸ñ) 17:12 Á¶È¸ : 6138
±ÛÁÖ¼Ò :
                          

½ÃÀÛÇÁ·Î±×·¥ µî·Ï (WINDOW 2008)
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
 
 
DHCP ÇÒ´ç¾ÆÀÌÇÇ °íÁ¤À¸·Î º¯°æ(BATCH)
@echo off
for /f "tokens=2 delims=:" %%G in ('ipconfig ^| find "IPv4"') do set ip=%%G%
for /f "tokens=2 delims=:" %%G in ('ipconfig ^| find "¼­ºê³Ý"') do set mask=%%G%
for /f "tokens=6 delims= " %%G in ('ipconfig ^| find "ÀÌ´õ³Ý"') do set dev=%%G%
 
::IP, Subnet Mask, Default Gateway, DNS Servers º¯¼ö ¼±¾ð
set ip=%ip:~1%
set mask=%mask:~1%
set gate=218.236.115.193
set dns=220.90.215.11
set dev=%dev:~0,1%

::°íÁ¤À¸·Î º¯°æÇÏ´Â ºÎºÐ
netsh -c int ip set address name="·ÎÄà ¿µ¿ª ¿¬°á %dev%" source=static addr=%ip% mask=%mask% gateway=%gate% gwmetric=0
netsh -c int ip set dns name="·ÎÄà ¿µ¿ª ¿¬°á %dev%" source=static addr=%dns% register=PRIMARY

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.