Advertisement
tomte55

IP Changer

Nov 8th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.96 KB | None | 0 0
  1. @echo off
  2. echo 1:Axema 100
  3. echo 2:Axema 200
  4. echo 3:Bewator
  5. echo 4:DHCP
  6. echo ------------
  7. set input=
  8. set /p input=Input: %=%
  9. if %input%==1 goto axema_100
  10. if %input%==2 goto axema_200
  11. if %input%==3 goto bewator
  12. if %input%==4 goto dhcp
  13.  
  14. :axema_100
  15. 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
  16. echo Changing IP for Axema 100...
  17. goto end
  18.  
  19. :axema_200
  20. 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
  21. echo Changing IP for Axema 200...
  22. goto end
  23.  
  24. :bewator
  25. 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
  26. echo Changing IP for Bewator...
  27. goto end
  28.  
  29. :dhcp
  30. 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
  31. echo Changing IP to DHCP...
  32. goto end
  33.  
  34. :end
  35. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement