mercredi 25 janvier 2012

netsh ou la configuration ip via dos

Set a static IP address (e.g. for a laptop)
Netsh interface ip set address name="Local Area Connection" source=static addr=192.168.0.10 mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1

Set a dynamic IP address with DHCP
Netsh interface ip set address name="Local Area Connection" source=dhcp

Add multiple DNS servers:
Netsh interface ipv4 add dns "Local Area Connection" 10.0.0.1

Aucun commentaire:

Enregistrer un commentaire