Windows Server Core IP Configuration, Part 1

Posted by Bink on on July 17 2008, 12:46 PM with 1 comment(s)

Networking services are a big part of the services you can make your Server Core box perform. Having properly configured network connections are prerequisites to offering these services, so I feel it's time to explain how to properly configure the networking connections on Server Core installations of Windows Server 2008.

I'll start with configuring the basic IP version 4 settings in the first part of this series. These are the settings you'd find in a full installation when you double click your Network Area Connection, Click on the Properties button and then open the properties for Internet Protocol Version 4 (TCP/IP v4) I'll cover the tabs behind the Advanced button in later parts of this series.

IPv4 Addressing

To enable traffic over a TCP-IP connection you'd formally only need to supply an IP Address, a Subnet Mask (although this is usually auto-configurable with the use of Network classes) and the address of the nearest router. (called the Default Gateway in Windows)

For client computers you can rely on the Dynamic Host Configuration Protocol (DHCP) to automatically assign IP addresses from a pool of addresses and direct computers to the nearest router using DHCP option 003. Using DHCP for servers is usually not a very good idea and in most Windows Server scenarios not recommended nor supported.

By default Windows Server 2008 Networking Connections are configured to use an IP address, assigned by DHCP. This will enable you to update and rename the server before giving it its firm place in your network.

Setting the IP Address, Subnet Mask and Default Gateway for your IPv4 enabled Network Connection is rather easy using the NetSh command. The command looks like this:

netsh interface ipv4 set address [name=]"IDx" [source=]static [address=]IPAddress [mask=]SubnetMask [gateway=]DefaultGateway

Where:

  • IDx is the Identification of the Networking Interface for which you want to change the address. You can view the identification flags when you use the command

    netsh interface ipv4 show interfaces.

    When you only have one Networking Interface Card (NIC) the IDx of this card will be Local Area Connection.
  • IPAddress is the static IPv4 Address you want to provide to your Network Connection in the form of four bytes separated by dots.
  • SubnetMask is the SubnetMask for the connection, which describes the boundary for the local network on your side of the Default Gateway. The notation of the SubnetMask is also four bytes separated by dots.
  • DefaultGateway is the IPv4 address of the nearest router.

Example:

netsh interface ipv4 set address name="Local Area Connection" source=static address=192.168.1.1 mask=255.255.255.0 gateway=192.168.1.254

or (with the same effect, but shorter)

netsh interface ipv4 set address "Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.254

Continue At Source

13008 Views

Comments

Rinie wrote re: Windows Server Core IP Configuration, Part 1
on 07-18-2008 10:48 AM

When I click one of these links:

- Configuring an IPv4 Address, Subnet Mask and Default Gateway

- Configuring DNS Server settings

I get

Access Denied: Post Permission Denied

Either this forum does not exist or you are not allowed to post

2008 (C) Steven Bink, Bink.nu BV
Microsoft and Microsoft Logo’s are trademarks of Microsoft Corporation.