Configure Static IP Addressing on Server Computers

Applies To: Windows Server 2012

When you configure branch office IP addressing, it is recommended that you configure server computers with a static IP address, while automatically configuring client computers by using a DHCP server.

This topic provides procedures for configuring static IP addresses on server computers running the following operating systems:

  • Windows Server 2012

  • Windows Server 2008 R2

  • Windows Server 2008

  • Windows Server 2003

Windows Server 2012

Membership in Administrators, or equivalent, is the minimum required to perform this procedure.

Note

To perform this procedure by using Windows PowerShell on BRANCH1-DHCP1, open PowerShell and type the following cmdlets on separate lines, and then press ENTER. You must also replace interface names and IP addresses in this example with the values that you want to use to configure your computer.

New-NetIPAddress -IPAddress 192.168.11.3 -InterfaceAlias "Ethernet" -DefaultGateway 192.168.11.1 -AddressFamily IPv4 -PrefixLength 24

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 192.168.11.2

To configure a static IP address on a computer running Windows Server 2012

  1. In the task bar, right-click the Network icon, and then click Open Network and Sharing Center.

  2. In Network and Sharing Center, click Change adapter settings. The Network Connections folder opens and displays the available network connections.

  3. In Network Connections, right-click the connection that you want to configure, and then click Properties. The network connection Properties dialog box opens.

  4. In the network connection Properties dialog box, in This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties. The Internet Protocol Version 4 (TCP/IPv4) Properties dialog box opens.

  5. In Internet Protocol Version 4 (TCP/IPv4) Properties, on the General tab, click Use the following IP address. In IP address, type the IP address that you want to use.

  6. Press tab to place the cursor in Subnet mask. A default value for subnet mask is entered automatically. Either accept the default subnet mask, or type the subnet mask that you want to use.

  7. In Default gateway, type the IP address of your default gateway.

    Note

    You must configure Default gateway with the same IP address that you use on the local area network (LAN) interface of your router. For example, if you have a router that is connected to a wide area network (WAN) such as the Internet as well as to your LAN, configure the LAN interface with the same IP address that you will then specify as the Default gateway. In another example, if you have a router that is connected to two LANs, where LAN A uses the address range 10.0.0.0/24 and LAN B uses the address range 192.168.0.0/24, configure the LAN A router IP address with an address from that address range, such as 10.0.0.1. In addition, in the DHCP scope for this address range, configure Default gateway with the IP address 10.0.0.1. For the LAN B, configure the LAN B router interface with an address from that address range, such as 192.168.0.1, and then configure the LAN B scope 192.168.0.0/24 with a Default gateway value of 192.168.0.1.

  8. In Preferred DNS server, type the IP address of your DNS server. If you plan to use the local computer as the preferred DNS server, type the IP address of the local computer.

  9. In Alternate DNS Server, type the IP address of your alternate DNS server, if any. If you plan to use the local computer as an alternate DNS server, type the IP address of the local computer.

  10. Click OK, and then click Close.

Windows Server 2008 R2

Membership in Administrators, or equivalent, is the minimum required to perform this procedure.

To configure a static IP address on a computer running Windows Server 2008 R2

  1. Click Start, and then click Control Panel.

  2. In Control Panel, click Network and Internet. Network and Internet opens.

    In Network and Internet, click Network and Sharing Center. Network and Sharing Center opens.

  3. In Network and Sharing Center, click Change adapter settings. Network Connections opens.

  4. In Network Connections, right-click the network connection that you want to configure, and then click Properties.

  5. In Local Area Connection Properties, in This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties. The Internet Protocol Version 4 (TCP/IPv4) Properties dialog box opens.

  6. In Internet Protocol Version 4 (TCP/IPv4) Properties, on the General tab, click Use the following IP address. In IP address, type the IP address that you want to use.

  7. Press tab to place the cursor in Subnet mask. A default value for subnet mask is entered automatically. Either accept the default subnet mask, or type the subnet mask that you want to use.

  8. In Default gateway, type the IP address of your default gateway.

  9. In Preferred DNS server, type the IP address of your DNS server. If you plan to use the local computer as the preferred DNS server, type the IP address of the local computer.

  10. In Alternate DNS Server, type the IP address of your alternate DNS server, if any. If you plan to use the local computer as an alternate DNS server, type the IP address of the local computer.

  11. Click OK, and then click Close.

Windows Server 2008

Membership in Administrators, or equivalent, is the minimum required to perform these procedures.

To configure a static IP address on a computer running Windows Server 2008

  1. Click Start, and then click Control Panel.

  2. In Control Panel, verify that Classic View is selected, and then double-click Network and Sharing Center.

  3. In Network and Sharing Center, in Tasks, click Manage Network Connections.

  4. In Network Connections, right-click the network connection that you want to configure, and then click Properties.

  5. In Local Area Connection Properties, in This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties. The Internet Protocol Version 4 (TCP/IPv4) Properties dialog box opens.

  6. In Internet Protocol Version 4 (TCP/IPv4) Properties, on the General tab, click Use the following IP address. In IP address, type the IP address that you want to use.

  7. Press tab to place the cursor in Subnet mask. A default value for subnet mask is entered automatically. Either accept the default subnet mask, or type the subnet mask that you want to use.

  8. In Default gateway, type the IP address of your default gateway.

  9. In Preferred DNS server, type the IP address of your DNS server. If you plan to use the local computer as the preferred DNS server, type the IP address of the local computer.

  10. In Alternate DNS Server, type the IP address of your alternate DNS server, if any. If you plan to use the local computer as an alternate DNS server, type the IP address of the local computer.

  11. Click OK, and then click Close.

Windows Server 2003

Membership in Administrators, or equivalent, is the minimum required to perform these procedures.

To configure a static IP address on a computer running Windows Server 2003

  1. Click Start, click Control Panel, right-click Network Connections, and then click Open.

  2. In Network Connections, right-click the network connection that you want to configure, and then click Properties.

  3. In Local Area Connection Properties, in This Connection uses the following Items, select Internet Protocol (TCP/IP), and then click Properties. The Internet Protocol (TCP) Properties dialog box opens.

  4. In Internet Protocol Version 4 (TCP/IPv4) Properties, on the General tab, click Use the following IP address. In IP address, type the IP address that you want to use.

  5. In Subnet mask, either accept the default subnet mask, or type the subnet mask that you want to use.

  6. In Default gateway, type the IP address of your default gateway.

  7. In Preferred DNS server, type the IP address of your DNS server.

  8. In Alternate DNS Server, type the IP address of your alternate DNS server, if any.

  9. Click OK, and then click Close.