Sunday, May 1, 2011

Windows Server: Configuring IPv4 address using command line

Sponsored Links

Command line tool ‘Netsh’ can be used to set up IP address and DNS address for the server. This option will be useful especially for Server Core version of Windows Server 2008.

Run the below command line syntax to configure IP address:

Netsh interface ipv4 set address name=”Local Area Connection” source=static address= mask= gateway=

Make sure that you change the and Local Area Connection name to your current adapter name, although for most fresh installation the adapter name will be ‘Local Area Connection’. 

Below screenshot shows the command line and the output:

DNS address also can be configured using this command line tool as follows:

Netsh interface ipv4 set dns name=”Local Area Connection” source=static address= primary

Please note that the server has to be connected to the network to assign the DNS address.

blog comments powered by Disqus
Related Posts Plugin for WordPress, Blogger...