@echo off
echo Choose:
echo [A] Set IP 10.8.14.240
echo [B] Set DHCP
echo [C] Set IP 192.168.1.240
echo [D] Set IP 192.168.0.240
echo [E] Set IP 10.8.91.240
echo [F] Set IP 10.8.90.240
echo [G] Set IP 10.8.51.240
echo [H] Set IP 10.8.191.240
echo [K] Set IP 10.8.57.240
echo.
:choice
SET /P C=[A,B,C,D,E,F,G,H,K]?
for %%? in (A) do if /I "%C%"=="%%?" goto A
for %%? in (B) do if /I "%C%"=="%%?" goto B
for %%? in (C) do if /I "%C%"=="%%?" goto C
for %%? in (D) do if /I "%C%"=="%%?" goto D
for %%? in (E) do if /I "%C%"=="%%?" goto E
for %%? in (F) do if /I "%C%"=="%%?" goto F
for %%? in (G) do if /I "%C%"=="%%?" goto G
for %%? in (H) do if /I "%C%"=="%%?" goto H
for %%? in (K) do if /I "%C%"=="%%?" goto K
goto choice
:A
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet" static 10.8.14.240 255.255.255.0 10.8.14.1
echo "Done"
pause
goto end
:B
@ECHO OFF
ECHO Resetting IP Address and Subnet Mask For DHCP
netsh int ip set address name = "Ethernet" source = dhcp
ipconfig /renew
pause
goto end
:C
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet" static 192.168.1.240 255.255.255.0 192.168.1.1
echo "Done"
pause
goto end
:D
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet" static 192.168.0.240 255.255.255.0 192.168.0.1
echo "Done"
pause
goto end
:E
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet" static IP 10.8.91.240 255.255.255.0 IP 10.8.91.1
echo "Done"
pause
goto end
:F
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet" static 10.8.90.240 255.255.255.0 10.8.90.1
echo "Done"
pause
goto end
:G
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet" static 10.8.51.240 255.255.255.0 10.8.51.1
echo "Done"
pause
goto end
:H
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet 2" static 10.8.191.240 255.255.255.0 10.8.191.1
echo "Done"
pause
goto end
:K
echo "Setting Static IP Information"
netsh interface ip set address "Ethernet 2" static 10.8.57.240 255.255.255.0 10.8.57.1
echo "Done"
pause
goto end
:end
No comments:
Post a Comment