Static vs. dynamic

2.2 Given a scenario, configure servers to use network infrastructure services.

📘CompTIA Server+ (SK0-005) 


When configuring servers and devices in a network, one of the key things you need to set up is how devices get their IP addresses. An IP address is like the “address” of a device on the network so it can communicate with other devices. There are two main ways to assign IP addresses: Static and Dynamic.


1. Static IP Addresses

Definition:
A static IP address is an IP address that is manually set on a device and does not change unless an administrator changes it.

How it works:

  • You go into the device’s network settings.
  • Enter an IP address, subnet mask, gateway, and DNS server manually.
  • The device keeps this address permanently.

Why use static IPs in servers?

  • Servers (like web servers, mail servers, file servers) often need a fixed IP so other devices can reliably find them.
  • Example: If a DNS server points to a web server, the web server must have a predictable IP address.

Pros:

  • Always predictable and reliable.
  • Good for servers, printers, and network infrastructure devices.

Cons:

  • Manual setup can be time-consuming in large networks.
  • Risk of IP conflicts if someone accidentally assigns the same IP to two devices.

2. Dynamic IP Addresses

Definition:
A dynamic IP address is automatically assigned to a device from a pool of available addresses. It can change over time.

How it works:

  • Devices ask a DHCP server (Dynamic Host Configuration Protocol) for an IP.
  • DHCP assigns an available IP from a pool and provides additional network info like DNS servers and default gateway.
  • The device can get the same IP again later, but it might change after the lease expires.

Why use dynamic IPs?

  • For devices that don’t need a permanent IP, like workstations, laptops, and mobile devices.
  • Makes large networks easier to manage automatically.

3. Dynamic Host Configuration Protocol (DHCP)

Definition:
DHCP is the network service that automatically assigns dynamic IP addresses and other configuration details to devices.

How DHCP works (step-by-step):

  1. DHCP Discovery – The device broadcasts a request asking if any DHCP servers are available.
  2. DHCP Offer – The DHCP server responds with an available IP and network settings.
  3. DHCP Request – The device requests to use the offered IP.
  4. DHCP Acknowledgement – The server confirms the assignment, and the device can now communicate on the network.

Key DHCP features:

  • Lease Time: How long a device can use an IP before it must renew.
  • Automatic configuration: Assigns subnet mask, default gateway, and DNS servers automatically.
  • Reduced errors: Prevents duplicate IP addresses automatically.

Exam Tip: Know that DHCP is the most common way devices get IPs in modern networks.


4. Automatic Private IP Addressing (APIPA)

Definition:
APIPA is a fallback system that automatically assigns a private IP to a device when it cannot reach a DHCP server.

How it works:

  • Device tries to get an IP from DHCP.
  • If DHCP fails, the device automatically picks an IP in the range 169.254.0.1 – 169.254.255.254.
  • The device can still communicate with other devices using APIPA IPs on the same local network but not beyond it.

Why APIPA is important:

  • It ensures devices can still communicate locally even if DHCP fails.
  • Helps troubleshoot network connectivity issues.

Exam Tip: Remember the APIPA range: 169.254.x.x.


5. Comparing Static vs. Dynamic

FeatureStatic IPDynamic IP (DHCP)
AssignmentManualAutomatic by DHCP server
ChangeableNo, stays fixedYes, can change over time
Best used forServers, network devicesWorkstations, mobile devices
Risk of conflictHigh if misconfiguredLow, DHCP prevents conflicts
ManagementManualEasier in large networks

6. Key Exam Points to Remember

  1. Static IP – Manually configured, permanent, used for servers and network devices.
  2. Dynamic IP (DHCP) – Automatically assigned, temporary, ideal for clients and mobile devices.
  3. DHCP Process – Discover → Offer → Request → Acknowledge.
  4. APIPA – Fallback automatic IP when DHCP fails, range 169.254.0.1 – 169.254.255.254.
  5. Large networks usually use DHCP; servers and infrastructure usually use static IPs.

Quick memory tip for the exam:

  • Static = “Stay the same” → Servers, printers
  • Dynamic = “Don’t worry, DHCP will assign it” → Clients, laptops
  • APIPA = “Oops, no DHCP, here’s a temporary IP”

This covers everything needed for SK0-005 regarding IP assignment methods and DHCP/APIPA for the exam.

Buy Me a Coffee