@echo off title IP ¼¼ÆÃ mode con cols=43 lines=13 color 1F :_Menu cls echo. echo. echo. echo 1. ¿ï»ê±³À°Ã» IP echo. echo 2. ºÎ»ê´ëÇб³Ä¡°úº´¿ø IP echo. echo 3. DHCP IP(ÀÚµ¿) echo. echo. echo. set /p num=Choose the number : if "%num%"=="1" goto _Ulsan_IP if "%num%"=="2" goto _PNUDH_IP if "%num%"=="3" goto _dhcp_IP goto _Menu :_Ulsan_IP netsh -c int ip set address name="ÀÌ´õ³Ý 3" source=static addr=20.12.1.60 mask=255.255.255.0 gateway=20.12.1.1 gwmetric=0 Rem netsh -c int ip set dns name="ÀÌ´õ³Ý_USB" source=static addr=1.1.1.1 register=PRIMARY Rem netsh -c int ip add dns name="ÀÌ´õ³Ý_USB" 9.9.9.9 goto _Success :_PNUDH_IP netsh -c int ip set address name="ÀÌ´õ³Ý 3" source=static addr=200.9.5.233 mask=255.255.255.0 gateway=200.9.5.1 gwmetric=0 netsh -c int ip set dns name="ÀÌ´õ³Ý 3" source=static addr=200.100.2.60 Rem netsh -c int ip add dns name="ÀÌ´õ³Ý_USB" 9.9.9.9 goto _Success :_dhcp_IP netsh -c int ip set address name="ÀÌ´õ³Ý 3" source=dhcp netsh -c int ip set dns name="ÀÌ´õ³Ý 3" source=dhcp goto _Success2 :_Success cls echo. echo. echo The operation completed successfully. echo. echo ------- ÇöÀç IP ¼³Á¤ ------- netsh interface ip show address "ÀÌ´õ³Ý 3" echo. echo ------- ÇöÀç DNS ¼³Á¤ ------- netsh interface ip show dns "ÀÌ´õ³Ý 3" echo. echo. timeout /t 2 /nobreak > nul #pause > nul goto _Menu :_Success2 cls echo. echo. echo The operation completed successfully. echo. echo ------- ÇöÀç IP ¼³Á¤ ------- netsh interface ip show address "ÀÌ´õ³Ý 3" echo. echo ------- ÇöÀç DNS ¼³Á¤ ------- netsh interface ip show dns "ÀÌ´õ³Ý 3" echo. echo. timeout /t 2 /nobreak > nul goto _Menu