Microsoft Windows Netsh Commands for Interface IPv4 (NETSH.exe) – to configure the TCP/IP protocol including addresses, default gateways, DNS servers and to display configuration and statistical information

netsh interface ipv4 show interface
netsh interface ipv4 set address name=“<Local Area Connection>“ source=dhcp
netsh interface ipv4 set address name=“<Local Area Connection>“ source=static address=192.168.0.55 mask=255.255.255.0 gateway=192.168.0.1
netsh interface ipv4 set dnsservers „<Local Area Connection>“ static 192.168.0.1 primary
netsh interface ipv4 show interface

Leave a Reply

You must be logged in to post a comment.