Skip to content

Commit

Permalink
change static ip to match team 9992
Browse files Browse the repository at this point in the history
  • Loading branch information
JayK445 committed Nov 10, 2023
1 parent e14359c commit 3c0aeff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/SetStaticEthernetIP.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo off
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )

netsh interface ip set address name="Ethernet 5" source=static ^ address=10.50.26.5 mask=255.255.255.0 gate=10.10.0.1
netsh interface ip set address name="Ethernet 5" source=static ^ address=10.99.92.5 mask=255.255.255.0 gate=10.10.0.1


exit
2 changes: 1 addition & 1 deletion scripts/SetStaticIP.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo off
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )

netsh interface ip set address name="Wi-Fi" source=static ^ address=10.50.26.5 mask=255.255.255.0 gate=10.10.0.1
netsh interface ip set address name="Wi-Fi" source=static ^ address=10.99.92.5 mask=255.255.255.0 gate=10.10.0.1

netsh interface ip set dnsservers "Wi-Fi" static 8.8.8.8 validate=no

Expand Down

0 comments on commit 3c0aeff

Please sign in to comment.