Home > Windows Server 2008 > Specify the IP Address\Basic Network Settings for Windows 2008 Server Core

Specify the IP Address\Basic Network Settings for Windows 2008 Server Core

To set the server with a static IP address:

Find which Network Adapter to set:

At a command prompt, type the following:netsh interface ipv4 show interfaces

image

Bind Network Settings to a specific Network Adapter:

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.

At a command prompt, type the following:

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

image

To specify DNS

At a command prompt, type the following: netsh interface ipv4 add dnsserver name="<ID>" address=<DNSIP> index=1

image

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.

image

Advertisements
Categories: Windows Server 2008
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: