Manually configuring IP addressing in Windows via Command Prompt


Configuring static IP address on an interface:

1. For IPv4: “netsh interface ip set address “Connection_Name” static IPaddress SubnetMask”

2. For IPv6: “netsh interface ipv6 set address “Connection_Name” IPv6address”

(e.g.)

c:\netsh interface ip set address “local area connection” static 192.168.1.100 255.255.255.0 192.168.1.254

Where 192.168.1.254 is the default gateway.

Configuring automatic obtaining of IP address (via DHCP):

(e.g.)

c:\netsh interface ip set address “local area connection” dhcp

Configuring DNS address staticly:

(e.g.)

c:\netsh interface ip set dns “Local Area Connection” static 192.168.1.1

Ref: http://nj180degree.net/2011/04/08/manuallyconfiguringipaddressing/

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: