Static IP Address

Pengalamatan IP

Definisi

Alamat IP yang ditetapkan secara permanen dan tidak berubah seiring waktu. Umumnya digunakan untuk server, printer, dan perangkat jaringan yang memerlukan alamat konsisten untuk akses yang andal.

Static IP Assignment Methods

A static IP can be configured in two ways. Manual configuration sets the address, Subnet MaskA 32-bit number (e.g., 255.255.255.0) that divides an IP address into network and host portions. It determines which part of the address identifies the network and which part identifies individual devices., gateway, and DNS ResolverA server that receives DNS queries from clients and resolves domain names by querying the DNS hierarchy on their behalf. Public resolvers like 1.1.1.1 (Cloudflare) and 8.8.8.8 (Google) are widely used alternatives to ISP resolvers. directly in the operating system's network settings — no DHCPDynamic Host Configuration Protocol. A network protocol that automatically assigns IP addresses, subnet masks, gateways, and DNS servers to devices when they join a network. involved. DHCP reservation (sometimes called a static DHCP lease) uses the DHCP server itself: the server is configured to always assign the same IP to a specific MAC address. From the device's perspective it goes through normal DHCP negotiation, but it always receives the same address.

DHCP reservation is generally preferred in enterprise environments because it keeps all address assignments in one place (the DHCP server) rather than scattered across individual device configurations. It also allows the DHCP server to track the binding and handle lease records consistently.

When Static IPs Are Required

Any device that other hosts must reliably reach by IP needs a static address. This includes web servers (their A RecordA DNS record that maps a domain name to an IPv4 address (e.g., example.com -> 93.184.216.34). The most fundamental DNS record type for resolving domain names to IP addresses. DNS entries point to a fixed IP), mail servers (MX RecordMail Exchange record. A DNS record that specifies the mail server responsible for receiving email for a domain, along with a priority value that determines the order in which servers are tried. resolution leads to an IP that must be consistent), database servers referenced by application configuration, and network infrastructure like routers, switches, and printers.

Static IPs and DNS

The fundamental advantage of a static IP is DNS stability. A domain's A RecordA DNS record that maps a domain name to an IPv4 address (e.g., example.com -> 93.184.216.34). The most fundamental DNS record type for resolving domain names to IP addresses. maps to an IP address with a TTL (Time to Live) measured in seconds to hours. If the underlying IP changes and the DNS record is not updated simultaneously, clients cached on the old record will fail to connect until TTL expires. Static IPs eliminate this race condition entirely.

Cloud providers offer Elastic IPs (AWS) or Reserved IPs (GCP/Azure) — Public IP AddressA globally unique IP address assigned by an ISP that is routable on the public internet. Every device directly accessible from the internet must have a public IP address. addresses that remain assigned to your account even when detached from an instance, behaving as static addresses in dynamic infrastructure.

Istilah Terkait

Lainnya di Pengalamatan IP