Server Core: Setting a Static IP address
Well this not as technical as it can get but here are some basic configuration that I’ve played around earlier today…
Setting a Static IP Address: At the command prompt type: netsh interface ipv4 show interfaces
Review the Idx column of the output for your network adapter this will be your address name.
Setting the IP Address, Subnet Mask, and Default Gateway type:
netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>
netsh interface ipv4 set address name="2" source=static address=192.168.1.30 mask=255.255.255.0 gateway=192.168.1.1 and type: the IPCONFIG command to confirm the change
Same goes for the DNS setup netsh interface ipv4 add dnsserver name="<ID>" address=<DNSIP>index=1
netsh interface ipv4 add dnsserver name="2" address=192.168.1.1 index=1
Summary:
StaticIP is the static IP address that you are setting
SubnetMask is the subnet mask for the IP address
DefaultGateway is the default gateway
ID is the number your ldxDNSIP is the IP of your DNS server (in my case my DNS IP Address is 192.168.1.1)To add another DNS repeat the process, just increment the index= number.
Again type IPCONFIG command to confirm the change on the DNS.