# Static vs Dynamic IP Addresses
## Static IP Addresses
A static IP address is a fixed IP address that is manually configured on a device and does not change unless an administrator deliberately changes it. When a device is configured with a static IP address, it uses that same address every time it connects to the network. Static addresses are also called fixed addresses. They are typically used for servers, routers, printers, and other network infrastructure devices that need to be reliably accessible at a known address. Because the address never changes, other devices and systems can be configured to communicate with the device using its known IP address.
## Advantages of Static IP Addresses
Static addresses are predictable and reliable. Other devices can always reach the device at the same address. DNS records for servers with static addresses do not need to be updated. Remote access configurations, firewall rules, and security policies that reference specific IP addresses work consistently. Static addresses are required for hosting websites, email servers, and other services that must be reachable from the internet.
## Disadvantages of Static IP Addresses
Manual configuration of static addresses is time-consuming and prone to human error. If an administrator accidentally assigns the same static address to two different devices, an IP address conflict occurs, causing connectivity problems for both devices. Managing hundreds or thousands of static IP addresses requires careful documentation and tracking. If a device moves to a different network or the network is reorganized, the static addresses must be manually updated.
## Dynamic IP Addresses
A dynamic IP address is assigned automatically by a DHCP server when a device connects to the network. The DHCP server selects an available address from its pool and leases it to the device for a period of time called the lease duration. When the lease expires, the device must either renew the lease to keep the same address or request a new address. Different sessions may result in different IP addresses being assigned to the same device, though DHCP servers often assign the same address to the same device based on the device's MAC address as long as that address is available.
## Advantages of Dynamic IP Addresses
Dynamic addressing greatly simplifies network administration. Administrators do not need to manually configure IP addresses on every device. Adding a new device to the network is as simple as connecting it and powering it on, as it will automatically obtain its IP configuration from the DHCP server. The DHCP server manages the address pool and prevents address conflicts automatically.
## Disadvantages of Dynamic IP Addresses
Because the IP address may change between connections, dynamic addresses are not suitable for servers and services that must be reachable at a fixed address. DNS records would need to be updated whenever the address changes. Firewall rules based on IP addresses become unreliable. Dynamic DNS services can mitigate this problem by automatically updating DNS records when an address changes, but this adds complexity.
## DHCP Reservations
DHCP servers support a feature called address reservation or static DHCP assignment. An administrator can configure the DHCP server to always assign the same IP address to a specific device based on its MAC address. This combines the administrative simplicity of DHCP with the predictability of a static address. The device gets the same address every time it connects without requiring manual configuration on the device itself.Back to Subject