Configure TCP/IP from Command Prompt

Posted on

Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh.exe can also save a configuration script in a text file for archival purposes or to help you configure other servers.

Netsh.exe is available on Windows 2000, Windows XP and Windows Server 2003.

Example:

  • To view your TCP/IP settings:  netsh interface ip show config

  • To export your current IP settings: netsh -c interface dump > c:\location1.txt

  • To import your IP settings:  netsh -f c:\location1.txt

  • To reserve TCP/IP Address: netsh dhcp server 192.168.3.6 scope 192.168.3.0 add reservdip 192.168.3.201 0004764527a8

  • To configure DNS addresses: netsh interface ip set dns “Local Area Connection” static 192.168.0.200

  • To configure WINS addresses: netsh interface ip set wins “Local Area Connection” static 192.168.0.200

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s