Subnet ကိန်းဂဏန်းများ (IPv4 CIDR)
အပြည့်အဝ IPv4 subnet ပိုင်းခြား: ကွန်ယက်, ထုတ်လွှင့်, မျက်နှာဖုံး, wildcard, host ကိုအကွာအဝေးနှင့်စာရင်း။
သင်ရိုက်ထည့်သလိုရလဒ်များကို update လုပ်ပါ
ဤဂဏန်းတွက်စက်အကြောင်း
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.
မေးလေ့ရှိသောမေးခွန်းများ
subnet တွင် hosts ဘယ်နှစ်ခုရှိသလဲ
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.
တိရစ္ဆာန်အမည်ခံမျက်နှာဖုံးဆိုတာဘာလဲ?
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.
ကွန်ယက်နှင့် broadcast address ကြားတွင် ကွာခြားချက်က ဘာလဲ။
ကွန်ယက်လိပ်စာ (အားလုံး host ကို bits0) subnet ကိုနာမကိုခေါ်; ထုတ်လွှင့်လိပ်စာ (အားလုံး host ကို bits 1) အပေါ်အားလုံး host ကိုရောက်ရှိ. Device ကိုမှမည်သူမဆိုအပ်နှံနိုင်.
CIDR အက္ခရာစဉ် (/24, /16) ဆိုတာ ဘာလဲ?
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.
သေးငယ်တဲ့ subnets များအဖြစ်ကွန်ယက်ကိုဘယ်လိုခွဲခြားပါသလဲ?
Borrow host bits by increasing the prefix. Splitting a /24 into two /25s gives two blocks of 126 hosts; going to /26 gives four blocks of 62. Each added prefix bit doubles the number of subnets and halves their size.
IP address class ဆိုတာဘာလဲ?
အဟောင်း classful စနစ်သူတို့ရဲ့ပထမဦးဆုံး octet အားဖြင့်ခွဲဝေလိပ်စာများ: တန်း A (1-126), တန်း B (128-191) နှင့် unicast အတွက်တန်း C (192-223) ကို, multicast နှင့် E ကိုကာကွယ်စောင့်ရှောက်ရေးအတွက်ပက်သက်ပြီး D ကိုပေါင်းစပ်။ CIDR ခွဲဝေမှုအတွက်တန်းအစားအစားထိုး, ဒါပေမယ့်ဂဏန်းတွက်စက်ကအတန်းထဲမှာကျဆင်းသွားတဲ့လိပ်စာကိုအစီရင်ခံပါတယ်။
/31 နှင့် /32 subnets များအတွက်အသုံးပြုသည်ဘာတွေလဲ?
A / 31 ရိုးရှင်းစွာနှစ်ခုလိပ်စာနှင့်မထုတ်လွှင့်ရှိပါတယ်, routers များအကြား point-to-point ကိုချိတ်ဆက်များအတွက်အသုံးပြု. A / 32 loopbacks နှင့် host ကိုလမ်းကြောင်းများအတွက်အများဆုံးတစ်ခုတည်းသော host ကိုလိပ်စာဖြစ်ပါသည်.
API ကို — code ကိုမှဤဂဏန်းတွက်စက်ကိုအသုံးပြု
အခမဲ့ JSON endpoint အဖြစ်ဤဂဏန်းတွက်စက်ကိုခေါ် - လိုအပ်သော key ကိုမရှိ. query parameters တွေကိုသို့မဟုတ် JSON အဖြစ်အောက်ပါ Field Values ကိုပို့. သင်ပယ်ချဘာမှတူညီသော default ကိုအသုံးပြုသည်ဤစာမျက်နှာနှင့်အတူ pre-filled ဖြစ်ပါတယ်။ အမည်မသိ parameter ကိုတစ်ခုဖြစ်ပါသည် 400, တစ်ဦးတိတ်ဆိတ်သော Zero ကိုမဆို. ပြည့်စုံသော API ကိုစာရွက်စာတမ်းများကိုဖတ်ပါ →
အဆုံးသတ်ချက်
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);
ရလဒ်များသာယေဘုယျလမ်းညွှန်မှုများအတွက်ခန့်မှန်းချက်ဖြစ်ကြသည်, မငွေကြေး, ဆေးဘက်ဆိုင်ရာသို့မဟုတ်အခွန်အကြံပေးချက်.