By Kardi Teknomo, PhD .

Networking

< Previous | Next | Contents >

NETSH Commands

Most often NETSH commands that also used in this tutorial are listed below

To view your TCP/IP setting, use the following command:

netsh interface ip show config

To set into manually assigned IP settings, type the IP address followed by subnet mask and default gateway and end with 1, then the following commands are to set DNS and WINS address

netsh interface ip set address name="Local Area Connection" static 100.2.10.132 255.255.0.0 100.2.254.254 1

netsh interface ip set dns name="Local Area Connection" static 100.0.1.1

rem netsh interface ip set wins name="Local Area Connection" static 100.0.1.1

Above IP settings are equivalent to the following GUI

Using NETSH to switch between two LAN connections Using NETSH to switch between two LAN connections

To set into DHCP (dynamic IP address that usually used in Broadband LAN), use the following commands

netsh interface ip set address name="Local Area Connection" dhcp

netsh interface ip set dns name="Local Area Connection" dhcp

netsh interface ip set wins name="Local Area Connection" dhcp

Above DHCP settings are equivalent to the following GUI

Using NETSH to switch between two LAN connections

< Previous | Next | Contents >

Rate this tutorial or give your comments about this tutorial

This tutorial is copyrighted .