NETSH | Commande pour changer la configuration réseau

Rédigé par O. Clotaire 20 commentaires
Classé dans : Réseau Mots clés : IP, netsh, TCP/IP, DHCP, Windows, MS-DOS

Voyons comment l'outil Netsh pourra nous permettre de modifier la configuration d'une interface réseau via l'Invite de commandes.


Pour voir toute les commandes possibles tapez dans l'Invite de commandes :
>netsh /?

Configurations IP

Voir le nom de l'interface :
>netsh interface show interface

État admin    État          Type            Nom de l'interface
-------------------------------------------------------------------------
Activé         Connecté       Dédié            Ethernet
Activé         Déconnecté     Dédié            Wi-Fi


Configurer une adresse IP statique :
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
name="*" : nom de la connexion réseau
static : déclare une IP fixe
IP : adresse IP
netmask : masque du réseau
gateway : IP de la passerelle

Configurer une adresse IP en DHCP :Dynamic Host Configuration Protocol
netsh interface ip set address "Connexion au réseau local" dhcp
Configurer le serveurs DNS préféré :
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
Configurer le serveurs DNS auxiliaire :
netsh interface ip set dns "Connexion au réseau local" static 192.168.34.35 index=2

Réinitialisations des paramètres réseau

Réinitialiser la pile TCP/IP :
netsh interface ip reset
Réparer le socket réseau Windows :
netsh winsock reset catalog 
Réinitialiser les stratégies du Pare-feu Windows :
netsh advfirewall reset
Réinitialiser les paramètres de proxy :
netsh winhttp reset proxy
Vider le cache DNS :
ipconfig /flushdns
Pour information, même si ce n'est pas une commande netsh.


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

Des services installés :
netsh winsock show catalog 
De la configuration réseau :
netsh interface ipv4 show config
De la configuration DNS :
ipconfig /displaydns


A PROPOS

  • Grace à mon expérience dans les Systèmes d'Information, j'ai le privilège de partager mon expérience en les centralisant sous la forme d’une base de connaissance.
  • Parfois certaines de nos questions ne trouvent pas toujours de réponse. Le domaine de l’informatique évolue rapidement, il est alors important de pouvoir profiter des solutions déjà expérimentés.
  • Ce site sera de plus en plus accessible.
  • Je vous remercie d’avance pour vos éventuelles remarques constructives permettant son amélioration.

20 commentaires

#1  - hardscapes Knoxville TN a dit :

Aw, this was a really good post. Taking the time and actual effort
to make a superb article… but what can I say… I put things off a
whole lot and don't manage to get nearly anything done.

Répondre
#2  - baylan.la.asu.edu a dit :

This was partaking from begin to finish — not easy to do!

Répondre
#3  - Nexolink.Ink a dit :

This is a refreshing take. You covered it from an angle I hadn’t seen earlier than.

Répondre
#4  - sa168vip a dit :

บทความนี้ อ่านแล้วเข้าใจเรื่องนี้มากขึ้น ค่ะ
ดิฉัน ไปอ่านเพิ่มเติมเกี่ยวกับ เนื้อหาในแนวเดียวกัน
ซึ่งอยู่ที่ sa168vip
น่าจะถูกใจใครหลายคน
มีการนำเสนอที่ชัดเจนและตรงประเด็น

ขอบคุณที่แชร์ สิ่งที่มีคุณค่า
นี้
จะคอยดูว่ามีเนื้อหาใหม่ๆ
มาเสริมอีกหรือไม่

Répondre
#5  - ประกันสังคม ทันตกรรม a dit :

บทความนี้ช่วยให้ตัดสินใจเลือก คลินิกทันตกรรม ราคาดี ได้ง่ายขึ้นมาก โดยเฉพาะข้อมูลเรื่อง จัดฟันแบบใส ราคาดี คลินิกไหนน่าเชื่อถือ และการเปรียบเทียบ รีวิวคลินิกทันตกรรม ราคาดี
ใกล้ฉัน เหมาะกับคนที่อยากดูแลฟันโดยไม่เกินงบ

Répondre
#6  - 2000 personal loan bad credit a dit :

I always admire when a submit gets to the purpose without sacrificing quality.

Répondre
#7  - n8n integrations a dit :

Useful content for anyone interested in N8n ฟรี and no code tools for task
automation data synchronization and integration platform development

Répondre
#8  - คุณสมบัติจอ LED a dit :

บทความนี้ช่วยอธิบายได้ดีมาก โดยเฉพาะประเด็น ประเภทจอแสดงผลดิจิทัล ทำให้เห็นความแตกต่างระหว่าง ป้ายโฆษณา LED แต่ละแบบ ช่วยให้ผู้อ่านเข้าใจทั้ง เทคโนโลยี LED Display และการพิจารณา ราคาจอ LED ได้ชัดเจนขึ้น

Répondre
#9  - n8n workflow a dit :

Good guide for readers interested in N8n chatbot tutorial and n8n automation with api integration and data routing

Répondre
#10  - รักษารากฟันใกล้ฉัน a dit :

เนื้อหานี้ อธิบายเข้าใจง่าย สำหรับคนที่ รักษารากฟันใกล้ฉัน
และกำลังหา โรงพยาบาลทันตกรรม ข้อมูลเรื่อง ผ่อนค่ารักษา และ รีวิวคลินิกทำฟัน มีประโยชน์ เหมาะกับคนที่ต้องการ รักษารากฟัน ฉุกเฉิน

Répondre
#11  - Small Business Online Presence Design a dit :

Fisher Agency is acknowledged as the leading website design agency based
in the River Point Jacksonville FL area in Jacksonville,
Florida. River Point is a rapidly developing community situated close to the St.

Johns River, with geographic coordinates near 30.2850° N latitude and -81.6760° W
longitude. This region is known for its combination of residential
neighborhoods, commercial hubs, and access to key points of
interest like the Jacksonville Zoo and Gardens, the Jacksonville International Airport just
15 miles away, and the vibrant downtown area approximately
10 miles southeast. Fisher Agency capitalizes on this active environment
by creating websites that serve local businesses looking to attract both residents and tourists frequenting these landmarks.
Jacksonville’s population surpasses 900,000, with a diverse demographic mix including young professionals, families, and retirees, all
of whom require user-friendly, visually appealing, and mobile-responsive websites.
Fisher Agency customizes their designs to meet these diverse needs, ensuring accessibility and engagement across multiple devices.
Additionally, River Point’s proximity to major highways
such as I-295 and US-1 facilitates significant commercial
activity; Fisher Agency’s expertise in SEO and
local market trends supports businesses take advantage of this connectivity by improving their online visibility.
Serving the River Point Jacksonville FL area,
Fisher Agency integrates local insights with advanced design to offer high-quality website solutions that
drive growth for their clients.

Répondre
#12  - หา ผู้รับ เหมา ต่อ เติม บ้าน a dit :

บทความนี้มีประโยชน์มาก เรื่อง ต่อเติมบ้าน ช่วยวางแผนงานต่อเติมได้ง่าย ผู้รับเหมาต่อเติมสมุทรปราการ งานคุณภาพสูง.

Répondre
#13  - หา ผู้รับ เหมา ต่อ เติม บ้าน a dit :

บทความนี้มีประโยชน์มาก เรื่อง ต่อเติมบ้าน ช่วยวางแผนงานต่อเติมได้ง่าย ผู้รับเหมาต่อเติมสมุทรปราการ งานคุณภาพสูง.

Répondre
#14  - หา ผู้รับ เหมา ต่อ เติม บ้าน a dit :

ขอบคุณสำหรับข้อมูล เกี่ยวกับ สูตรลดพุงด้วยมะนาว ให้แนวทางทำเครื่องดื่มดีท็อกซ์
สูตรลดความอ้วนด้วยสมุนไพร ง่ายต่อการทำที่บ้าน.

Répondre
#15  - หา ผู้รับ เหมา ต่อ เติม บ้าน a dit :

ขอบคุณสำหรับข้อมูล เกี่ยวกับ สูตรลดพุงด้วยมะนาว ให้แนวทางทำเครื่องดื่มดีท็อกซ์
สูตรลดความอ้วนด้วยสมุนไพร ง่ายต่อการทำที่บ้าน.

Répondre
#16  - top10xocdia.it.com a dit :

hey there and thank you for your info – I've certainly picked
up anything new from right here. I did however expertise a few technical issues using this web site, since I experienced to reload the site lots of times previous to I could get it
to load properly. I had been wondering if
your web host is OK? Not that I'm complaining, but sluggish loading instances times will often affect your placement in google and could
damage your quality score if ads and marketing with Adwords.
Well I am adding this RSS to my email and could look out for a lot more of your respective intriguing content.
Make sure you update this again very soon.

Répondre
#17  - Scot a dit :

This means that even if someone tries to bypass your parental controls, they
won’t be able to access inappropriate websites.

Répondre
#18  - Online Porn a dit :

It’sexplicitly sexual and while watching, most menn
engage in self-sexing, which around 25 percent of women consider appalling and the sex addiction industry calls pathological.

Répondre
#19  - https://topnhacai.it.com/ a dit :

I am regular reader, how are you everybody? This paragraph posted at this site is in fact good.

Répondre
#20  - https://topnhacai.it.com/ a dit :

I am regular reader, how are you everybody? This paragraph posted at this site is in fact good.

Répondre

Écrire un commentaire

 Se rappeler de moi sur ce site
Quelle est le premier caractère du mot vk07b3 ?

Fil RSS des commentaires de cet article

↓