Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo 1:Axema 100
- echo 2:Axema 200
- echo 3:Bewator
- echo 4:DHCP
- echo ------------
- set input=
- set /p input=Input: %=%
- if %input%==1 goto axema_100
- if %input%==2 goto axema_200
- if %input%==3 goto bewator
- if %input%==4 goto dhcp
- :axema_100
- netsh int ipv4 set address name="Local Area Connection" source=static address=10.0.0.100 mask=255.255.255.0 gateway=10.0.0.1
- echo Changing IP for Axema 100...
- goto end
- :axema_200
- netsh int ipv4 set address name="Local Area Connection" source=static address=10.0.0.200 mask=255.255.255.0 gateway=10.0.0.1
- echo Changing IP for Axema 200...
- goto end
- :bewator
- netsh int ipv4 set address name="Local Area Connection" source=static address=10.127.86.25 mask=255.255.255.240 gateway=10.0.86.30
- echo Changing IP for Bewator...
- goto end
- :dhcp
- netsh int ipv4 set address name="Local Area Connection" source=dhcp address=10.0.0.200 mask=255.255.255.0 gateway=10.0.0.1
- echo Changing IP to DHCP...
- goto end
- :end
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement