Windows : How to configure network interface from command line

By | June 6, 2012

Basically, we’ll use the “netsh.exe” builtin utility here to achieve theses tasks.

Show TCP/IP settings :

Set the interface as DHCP :

Set interface DNS server address :

Export the current configuration :

Import a configuration :