route change -p 0.0.0.0 mask 0.0.0.0 192.168.1.1
Eu preciso colar o resultado do comando clip no endereço IP da interface netsh
FOR /F "tokens=*" %%i in ('ipconfig ^| find "IPv4"') do SET result=%%i
echo %result:IPv4 Address. . . . . . . . . . . : =% | clip
netsh interface ip set address name="Local Area Connection" static %clip% 255.255.255.0 192.168.1.1
route change -p 0.0.0.0 mask 0.0.0.0 192.168.1.1
setlocal
FOR /F "tokens=*" %%i in ('ipconfig ^| find "IPv4"') do SET result=%%i
SET result=%result:IPv4 Address. . . . . . . . . . . : =%
echo %result% | clip
netsh interface ip set address name="Local Area Connection" static %result% 255.255.255.0 192.168.1.1
endlocal