Assign IP Address in ServerCore


DHCP ADDRESS
Type: netsh interface ipv4 set address name=”local area connection” source=DHCP
NOTE: For IPv6 just replace ipv4 with ipv6

SET STATIC IP ADDRESS
To see the network interface
Type: netsh interface ipv4 show interface and enter.

Look at the number shown in the idx column of the output for your network adapter.

Type: netsh interface ipv4 set address name=”local area connection” source=static address=192.168.0.1 mask=255.255.255.0 gateway=192.168.0.10 and  enter.

NOTE: If you don't you have a default getaway then there is no need for you to bring the default getaway.  For IPv6 just replace ipv4 with ipv6 and the IP addresses put IPv6 addresses in there.
 
SET DNS IP ADDRESS
Type: netsh interface ipv4 add dnsserver name=”local area connection” address=192.168.0.1 index=1

NOTE: index=1 is the preferred DNS ip address and index=2 is the alternative DNS ip address.
Verify by typing ipconfig /all and check that all the ip addresses are correct.For IPv6 just replace ipv4 with ipv6.

Comments

Popular posts from this blog

How to transfer apps on Andriod phone-to-phone

Here's the Facebook Hacking Tool that Can Really Hack Accounts.