NETSH | Commande pour changer la configuration réseau
Configurations IP
>netsh interface show interface
État admin État Type Nom de l'interface
-------------------------------------------------------------------------
Activé Connecté Dédié Ethernet
Activé Déconnecté Dédié Wi-Fi
netsh interface ipv4 set address name="nomdelinterface" static IP netmask passerelle
netsh interface ipv4 set address name="Ethernet" static 192.168.68.69 255.255.255.0 192.168.20.07
netsh interface ip set address "Connexion au réseau local" dhcp
netsh interface ip set dns "Connexion au réseau local" static 192.168.34.35 index=1
netsh interface ipv4 add dns "Connexion au r‚seau local 2" static 212.27.40.240 index=1
netsh interface ipv4 add dns "Connexion au r‚seau local 2" static 212.27.40.241 index=2
netsh interface ipv4 add dnsserver name="Ethernet" address=192.168.68.69 index=1
netsh interface ip set dns "Connexion au réseau local" static 192.168.34.35 index=2
Réinitialisations des paramètres réseau
netsh interface ip reset
netsh winsock reset catalog
netsh advfirewall reset
netsh winhttp reset proxy
ipconfig /flushdns
Configuration du proxy
Voir la configuration du proxy :
netsh WinHTTP show proxy
Configurer le proxy :
netsh winhttp set proxy xx.xx.xx.xx:8080
Pour ajouter une exception pour les ressources local :
netsh winhttp set proxy xx.xx.xx.xx:8080 bypass-list-"<local>"
Vérification
netsh winsock show catalog
netsh interface ipv4 show config
ipconfig /displaydns