It is common to configure server machines to have a static IP. This avoids having to rely on DNS resolution to find the server when its IP address changes, and it also allows you to associate the hostname to the server's static IP address on the machine to skip DNS resolution altogether, increasing network performance.
If your machine is currently connected to a DHCP server that dynamically assigns IP addresses, you can configure your machine to permanently use its current IP address. To do this, you can start by making note of the information for your current network connection, then using these parameters for a permanent IP address.
How to obtain the information about your current connection
-
Open Command Prompt and enter the following command:.
> ipconfig /all
This will output information about your current connection:
Windows IP Configuration Host Name . . . . . . . . : <hostname>
-
Primary Dns Suffix . . . . . . . . . . . . . . . . : <domain name>
-
Node Type . . . . . . . . . . . . . . . . . . . . . : Peer-Peer
-
IP Routing Enabled. . . . . . . . . . . . . . . . . : No
-
WINS Proxy Enabled. . . . . . . . . . . . . . . . . : No
-
DNS Suffix Search List. . . . . . . . . . . . . . . : <domaine names>
-
Ethernet adapter Ethernet:
-
Connection-specific DNS Suffix . . . . . . . . . . : <domain name> Description . . . . . . . . . . . . . . . . . . . . : <adapter name>
-
Physical Address. . . . . . . . . . . . . . . . . . : <MAC address>
-
DHCP Enabled. . . . . . . . . . . . . . . . . . . . : Yes
-
Autoconfiguration Enabled . . . . . . . . . . . . . : Yes
-
Link-local IPv6 Address . . . . . . . . . . . . . . : <IPv6 address>
-
IPv4 Address. . . . . . . . . . . . . . . . . . . . : <IPv4 address>
-
Subnet Mask . . . . . . . . . . . . . . . . . . . . : <subnet mask>
-
Lease Obtained. . . . . . . . . . . . . . . . . . . : <date of lease>
-
Lease Expires . . . . . . . . . . . . . . . . . . . : <date of expiration>
-
Default Gateway . . . . . . . . . . . . . . . . . . : <default gateway>
-
DHCP Server . . . . . . . . . . . . . . . . . . . . : <DHCP server address>
-
DHCPv6 IAID . . . . . . . . . . . . . . . . . . . . : <DHCPv6 IAID>
-
DHCPv6 Client DUID. . . . . . . . . . . . . . . . . : <DHCPv6 Client DUID>
-
DNS Servers . . . . . . . . . . . . . . . . . . . . : <DNS server addresses>
-
Primary WINS Server . . . . . . . . . . . . . . . . : <WINS server address>
-
NetBIOS over Tcpip. . . . . . . . . . . . . . . . . : Enabled
-
- In the output, under Ethernet adapter Ethernet, make note of the following data:
- The domains in the DNS Suffix Search List
- The IPv4 Address
- The Subnet Mask
- The Default Gateway address
- The addresses for the DNS Servers
How to configure a Windows server to use a static IP
- Open the Windows Control Panel:
- On Windows 7: Open the Start menu and select All Programs > Accessories > System Tools > Control Panel.
- On Windows 8.1 or Windows 10: Open the Start menu and, in the programs list, select Windows System > Control Panel.
- Click View network status and tasks.
- On the top-left corner of the Network and Sharing Center, select Change adapter settings.
- Right-click on the network adapter used by your machine to connect to your local network, then select Properties.
- The Local Area Connection Properties dialog appears.
- In the items list, select Internet Protocol Version 4 (TCP/IPv4)
- Click on the Properties button under the list.
- The Internet Protocol Version 4 (TCP/IPv4) Properties dialog box opens.
- Select the Use the following IP address option.
- In the IP Address field, enter the IPv4 Address you obtained in earlier.
- In the Subnet mask field, enter the Subnet mask you obtained earlier.
- In the Default gateway field, enter the Default gateway address you obtained earlier.
- Select the Use the following DNS server addresses option.
- In the Preferred DNS server field, enter the DNS Servers address obtained earlier.
- If a second DNS server was listed by ipconfig, type it in the Alternate DNS server field. Otherwise, leave this field empty.
- Click on Advanced.
- The Advanced TCP/IP Settings dialog opens.
- Select the DNS tab.
- Select the Append these DNS suffixes (in order): option.
- For each DNS Suffix obtained earlier, click on Add, then type in the suffix. Add the suffixes in the order in which there were listed.
- Click on OK.
- Click on OK in the Internet Protocol Version 4 (TCP/IPv4) Properties dialog.
- Click on OK in the Ethernet Properties dialog.
- In the output, under Ethernet adapter Ethernet, make note of the following data:
Comments
0 comments
Article is closed for comments.