Alt ağ hesaplayıcısı (IPv4 CIDR)
IPv4 alt ağının tamamını inceler: ağ, yayın, maske, wildcard, host aralığı ve sayı.
Yazdığınızda sonuçlar güncellenir.
Bu hesaplayıcı hakkında
This subnet calculator turns an IPv4 address and a CIDR prefix into the full structure of a subnet. An IPv4 address is 32 bits, usually written as four dot-separated octets like 192.168.1.10, and a CIDR prefix such as /24 splits those 32 bits into a network part (the leading bits, fixed for every host in the subnet) and a host part (the remaining bits, unique to each device). This calculator takes an address and a prefix length and derives the network address, broadcast address, subnet mask, wildcard mask and the range of usable host addresses, along with the IP class and total address count.
The size of a subnet is set by the prefix: a /n block holds 2^(32−n) addresses, of which two are reserved — the network address (all host bits 0, naming the subnet) and the broadcast address (all host bits 1, reaching every host). So a /24 has 2^8 = 256 addresses and 254 usable hosts, a /25 has 128 addresses and 126 usable hosts, and each extra prefix bit halves the block. As a worked example, 192.168.1.10/24 gives a network of 192.168.1.0, a broadcast of 192.168.1.255, a 255.255.255.0 mask, a 0.0.0.255 wildcard mask, and a usable host range of 192.168.1.1 to 192.168.1.254.
Subnetting is how networks are carved into manageable, secure segments — separating departments, sizing VLANs, planning address allocation and writing firewall and routing rules. The wildcard mask (the bitwise inverse of the subnet mask) is what Cisco access-control lists and OSPF use to match ranges of addresses. The /31 and /32 prefixes are special cases: /31 is used for point-to-point links with two usable addresses and no broadcast, and /32 describes a single host.
Sıkça Sorulan Sorular
Bir alt ağda kaç host var?
A /n subnet has 2^(32−n) addresses, minus two reserved for the network and broadcast. A /24 has 256 addresses and 254 usable hosts.
Wildcard maskesi nedir?
A wildcard mask is the bitwise inverse of the subnet mask (255.255.255.0 → 0.0.0.255). Access-control lists and OSPF use it to match ranges of addresses.
Ağ adresi ve yayın adresi arasındaki fark nedir?
Ağ adresi (tüm konuk bitleri 0) alt ağ için ad verir; yayın adresi (tüm konuk bitleri 1) üzerindeki her konuk için geçerlidir. Hiçbiri bir aygıta tanımlanamaz.
CIDR önek (/24, /16) ne anlama geliyor?
It is the number of leading bits that form the network portion of the address. A larger prefix means more network bits and fewer host bits, so a smaller subnet: /24 gives 254 hosts, /25 gives 126, and each extra bit halves the block.
Bir ağı nasıl küçük alt ağlara ayırırım?
Ön ekleri artırarak host bitlerini borç al. /24' ü iki /25' e bölmek 126 host' lı iki blok verir; /26' ya gitmek 62' lik dört blok verir. Her ek ön ek bit alt ağ sayısını ikiye katlar ve büyüklüklerini yarıya düşürür.
IP adres sınıfı nedir?
Eski sınıflı şema adresleri ilk oktetleri ile böler: Sınıf A (1-126), Sınıf B (128-191) ve Sınıf C (192-223) tek yayın için, artı D çoklu yayın için ve E rezerve.CIDR sınıfları ayırma için değiştirdi, ancak hesaplayıcı hala adresin düştüğü sınıfı rapor eder.
/31 ve /32 alt ağları ne için kullanılır?
A / 31 sadece iki adrese ve yayına sahiptir, yönlendiricilerin arasında noktadan noktaya bağlantılar için kullanılır. A / 32 loopback ve host rotaları için ortak tek bir host adresidir. Hesaplayıcı her iki özel durumda da işlem yapar.
API — bu hesaplayıcıyı kodtan kullan
Bu hesaplayıcıya ücretsiz bir JSON son noktası olarak çağrı yap - anahtar gerekmez. Aşağıdaki alan değerlerini sorgu parametreleri veya JSON olarak gönderin. Eksik bıraktığınız her şey bu sayfanın önceden doldurulmuş olduğu varsayılan değeri kullanır; bilinmeyen parametre 400'dür, hiç sessiz sıfır değildir. Tüm API belgelerini oku →
Son nokta
GET https://calculator.free/api/v1/subnet/
curl
curl "https://calculator.free/api/v1/subnet/?ip=192.168.1.10&cidr=24"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/subnet/?" + new URLSearchParams({
"ip": "192.168.1.10",
"cidr": "24"
}));
const data = await r.json();
console.log(data.results);
Sonuçlar sadece genel rehberlik için tahminlerdir, finansal, tıbbi veya vergi tavsiyesi değil.