Home arrow Howto's arrow Howto - Networking Basics arrow Howto use the command line to configure Windows Server 2008 and Windows Vista IPv4 static IP info
Home
Tools
Knowledge Center
Howto's
Latest Jobs
Latest jobs from IT Contractor Jobs
The latest jobs registered on the IT Contractor Jobs web site.
  • Business Analyst

    - Business Analyst (New Zealand, Wellington - Wellington CBD)

    Business Analyst Intermediate to senior level Business Analyst 6 months initial term Start ASAP..... Major financial services organisation requires an intermediate to senior level Business...

  • Desktop Engineer

    - Desktop Engineer (New Zealand, Auckland - Auckland CBD)

    Desktop Engineer We are looking for an experienced Desktop Engineer to provide on-site technical PC support.   The successful candidate will demonstrate the following experience and...

  • IT Support/ Helpdesk

    - IT Support/ Helpdesk (New Zealand, Christchurch - Christchu5rch CBD)

    IT Support/ Helpdesk - Contract Roles   My client is searching for a highly skilled allrounder to join their team at a time when...


Howto use the command line to configure Windows Server 2008 and Windows Vista IPv4 static IP info PDF Print E-mail
The syntax used with the Netsh interface to configure Server 2008 and Vista static IP information has changed due to IPv6 inclusion. Here's how I used the command line to configure Server 2008 and Vista IPv4 static IP information.
  1. I determined the interface to configure (because Server 2008 and Vista have several). I listed the interfaces using the command
netsh interface ipv4 show interfaces

This is the output:

Image

 I designated the physical adapter index 2.
  1. Then I configured a static IP address.
netsh interface ipv4 set address name="2" source=static address=10.1.1.11 mask=255.255.255.0 gateway=10.1.1.10
  1. Next I added the DNS servers. The primary DNS server's index is 1.
netsh interface ipv4 add dnsserver name="2" address=192.168.1.230 index=1
  1. To add a secondary DNS server, I repeated the add dnsserver command but designated the new server's index as 2.
netsh interface ipv4 add dnsserver name="2" address=192.168.1.230 index=2

To configure primary and secondary WINS servers, I'd utilize exactly the same syntax I employed to add the DNS servers, but in the code I'd substitute winsserver for dnsserver. The first index would be the primary WINS server and the second index would be the secondary WINS server.

 
Next >
Powered by IT CONTRACTORS and designed by EZPrinting web hosting