[re] ¹èÄ¡È­ÀÏ °ü·Ã Áú¹®ÀÔ´Ï´Ù.

Á¤¿øÀç   
   Á¶È¸ 5654   Ãßõ 19    

¾È³çÇϼ¼¿ä? kia66662000 ´ÔÀÌ ¿Ã·ÁÁֽŠÀڷḦ ¹ÙÅÁÀ¸·Î º¹»çÇÏ¿© ^^¹®Á¦ ÇØ°áµÇ¾ú½À´Ï´Ù ÃÖÁ¾ ¹èÄ¡´Â ¾Æ·¡¿Í °°½À´Ï´Ù.

@ECHO off
set /p ren=º¯°æÇÒ ÄÄÇ»ÅÍ À̸§:TEST-

echo y|reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v Hostname /t REG_SZ /d TEST-%ren%
echo y|reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v "NV Hostname" /t REG_SZ /d TEST-%ren%
echo y|reg add HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /v ComputerName /t REG_SZ /d TEST-%ren%


endlocal

SET _IP=


cls
echo.
echo.
echo.
echo                     ¾ÆÀÌÇÇ(IP) ³¡¹øÈ£¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä.....
echo.
echo.
echo.
set /p _IP= ¾ÆÀÌÇǸ¦ ÀÔ·ÂÇÒ ¹øÈ£¸¦ ÀÔ·Â :
SET IP=192.168.0.%_IP%
SET NAME=TEST-%_NAME%
SET SUBNETMASK=255.255.255.255
SET GATEWAY=192.168.0.1
SET stDNS=0.0.0.0
SET ndDNS=0.0.0.0
SET NICName="·ÎÄà ¿µ¿ª ¿¬°á"


Echo *** IP and GATEWAY ¼¼Æà Áß.. ±â´Ù·ÁÁÖ¼¼¿ä.. ***
netsh interface ip set address %NICName% static %IP% %subnetmask% %gateway% 1


Echo *** DNS »èÁ¦ ***
REM netsh interface ip delete dns %NICName% all


Echo *** 1Â÷ DNS ¼¼Æà Áß.. ±â´Ù·ÁÁÖ¼¼¿ä.. ***
REM netsh interface ip set dns name=%NICName% source=static addr=%stDNS% register=PRIMARY

Echo *** 2Â÷ DNS ¼¼Æà Áß.. ±â´Ù·ÁÁÖ¼¼¿ä.. ***
REM netsh interface ip add dns name=%NICName% addr=%ndDNS% index=2


echo *** WINS »èÁ¦ ***
REM netsh interface ip delete wins %NICName% all


Echo *** WINS ¼¼Æà Áß.. ±â´Ù·ÁÁÖ¼¼¿ä.. ***
REM netsh interface ip set wins %NICName% static %WINS%
1

ipconfig /all
pause

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


QnA
Á¦¸ñPage 4227/5680
2014-05   4946813   Á¤ÀºÁØ1
2015-12   1483474   ¹é¸Þ°¡
2010-02   13744   ÀÌÁ¤µ¿
2014-10   6741   Å×µ¹¾ÆÀÌ
2016-12   12640   ÀÌÅ¿í
2013-04   6244   Æĸ®´ë¿Õ
2014-10   4316   Çö»óÀÌ
2020-07   8487   ¿Àµ¹¶Ñ±â
2010-03   8044   x105
2023-07   2951   ¸¶¹ý»ç¿ÀÁî
2016-02   6514   ÁÒ½´¾Æ
2014-10   6088   clover
2020-07   4209   ¸á¶û²Ã¸µ
2019-05   4167   2CPUÃÖÁÖÈñ
2023-08   2439   heck
2017-01   4437   Gooos
2022-01   1572   Noname1
2017-01   6169   ±è°Ç¿ì
2023-08   1702   ÇÁ·Î°ÔÀ̸Ó
2023-08   2601   °ËÀºÄá
2018-04   4549   ±è½Â±Ç
2014-11   4005   ¹Ì¼ö¸Ç