netzwerk:ip_switch_scripts
IP Switch Script
Windows
- ip_switch.bat
@echo off :start echo ------------------------------------------------ echo Netzwerkkonfig-Tool echo ------------------------------------------------ echo. echo 1 gsys.lab echo 2 dhcp echo 3 Google DNS-Server echo 4 ipconfig echo 5 Exit echo. CHOICE /C 12345 /M "Option waehlen: " echo. if errorlevel 5 goto m1 if errorlevel 4 goto m2 if errorlevel 3 goto m3 if errorlevel 2 goto m4 if errorlevel 1 goto m5 :m5 echo ------------------------------------------------ echo Netzwerkadresse wird auf 10.0.0.2 geaendert echo ------------------------------------------------ netsh interface ip set address "WLAN" static 10.0.0.3 255.0.0.0 10.0.0.100 256 netsh interface ip set dns "WLAN" static addr=10.0.0.100 netsh interface ip add dns "WLAN" addr=10.0.0.2 reg add HKLM\System\CurrentControlSet\Services\Tcpip\Parameters /v "SearchList" /d "gsys.lab" /f ping localhost >nul ping localhost >nul ping dev.gsys.lab echo. echo ------------------------------------------------ echo Erfolgreich mit dem Netz "gsys.lab" verbunden! echo ------------------------------------------------ goto start :m4 echo ------------------------------------------------ echo Netzwerkadresse wird auf dhcp gestellt echo ------------------------------------------------ netsh interface ip set address "WLAN" dhcp netsh interface ip set dns "WLAN" dhcp goto start :m3 echo ------------------------------------------------ echo Google DNS-Server werden eingestellt echo ------------------------------------------------ netsh interface ip set dns "WLAN" static addr=8.8.8.8 netsh interface ip add dns "WLAN" addr=8.8.4.4 goto start :m2 echo ------------------------------------------------ echo Netzwerkkonfiguration echo ------------------------------------------------ ipconfig goto start :m1 exit
netzwerk/ip_switch_scripts.txt · Last modified: 2024/02/17 19:03 by 127.0.0.1