@echo off

title Otimizando a Rede - RENOVAR
color 0A

echo.

netsh interface ip set address name="Ethernet" source=dhcp
netsh interface ip set dns "Ethernet" static 1.1.1.1
netsh interface ip add dns "Ethernet" 1.0.0.1 index=2

echo Configurações de IP alteradas para automatico e DNS definido com sucesso!

rem netsh interface ip show config 

echo ======= LIBERANDO E RENOVANDO IP =======
ipconfig /release
ipconfig /renew
echo.


echo ======= LIMPANDO CACHE DE DNS =======
ipconfig /flushdns
nbtstat -R
net stop dnscache
net start dnscache

echo.


echo ======= RESETANDO CONFIGURACOES DE REDE =======
netsh int ip reset
netsh winsock reset
echo.

echo ======= TESTANDO CONEXAO COM GOOGLE =======
ping -n 4 google.com

echo.

echo ======= ABRINDO SPEED TESTE =======

start msedge https://suportecomsistemas.com.br/speedteste.php

echo.



exit