IP Settings: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
(New page: To set the server with a static IP address <pre> netsh interface ipv4 show interfaces </pre> Look at the number shown in the Idx column of the output for your network adapter. If your c...)
 
No edit summary
 
Line 1: Line 1:
To set the server with a static IP address
= Static Address =
<pre>
<pre>
netsh interface ipv4 show interfaces
netsh interface ipv4 show interfaces
Line 27: Line 27:
    
    
Verify by typing ipconfig /all and checking that all the addresses are correct.  
Verify by typing ipconfig /all and checking that all the addresses are correct.  
= DHCP =
To set the network card IP settings to DHCP
<pre>
netsh interface ipv4 set address name="<ID>" source=dhcp
</pre>


[[Category : Windows 2008 Server Core]]
[[Category : Windows 2008 Server Core]]

Latest revision as of 05:27, 15 May 2008

Static Address

netsh interface ipv4 show interfaces

Look at the number shown in the Idx column of the output for your network adapter. If your computer has more than one network adapter, make a note of the number corresponding to the network adapter for which you wish to set a static IP address.

netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>

Where:

  • ID is the number from step 2 above
  • StaticIP is the static IP address that you are setting
  • SubnetMask is the subnet mask for the IP address
  • DefaultGateway is the default gateway
netsh interface ipv4 add dnsserver name="<ID>" address=<DNSIP> index=1

Where:

  • ID is the number from step 2 above
  • DNSIP is the IP address of your DNS server

Repeat step 4 for each DNS server that you want to set, incrementing the index= number each time.

Verify by typing ipconfig /all and checking that all the addresses are correct.


DHCP

To set the network card IP settings to DHCP

netsh interface ipv4 set address name="<ID>" source=dhcp