Subnet Calculator (IPv4 CIDR)
IPv4-ის სრული ქვექსელის დაყოფა: ქსელი, გადაცემა, მასკები, ჯოილკარი, ჰოსტების დიაპაზონები და რაოდენობა.
შედეგები ახლდება ტექსტის შეყვანისას.
ამ კალკულატორის შესახებ
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.
ხშირად დასმული კითხვები
რამდენი ჰოსტია ქვექსელში?
/n ქვექსელს აქვს 2^(32−n) მისამართი, მინუს ორი, რომელიც დაჯავშნილია ქსელისთვის და ბრაუზერისთვის. /24-ს აქვს 256 მისამართი და 254 გამოყენებადი ჰოსტი.
რას ნიშნავს ჯოილერი?
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.
რა განსხვავებაა ქსელისა და გაშუქების მისამართებს შორის?
ქსელის მისამართი (ყველა ჰოსტის ბიტი 0) ქვექსელის სახელს ნიშნავს; გადაცემის მისამართი (ყველა ჰოსტის ბიტი 1) მის ყველა ჰოსტს ეხება. არცერთი ვერ დაეკისრება მოწყობილობას.
რას ნიშნავს CIDR პრეფიქსი (/24, /16)?
ეს არის მისამართის ქსელის ნაწილს წარმოადგენს ჯერ კიდევ წყვილი ბიტების რაოდენობა. უფრო დიდი პრეფიქსი ნიშნავს უფრო მეტ ქსელის ბიტს და ნაკლებ ჰოსტის ბიტს, ასე რომ, უფრო პატარა ქვექსელი: / 24 ნიშნავს 254 ჰოსტს, / 25 ნიშნავს 126- ს და ყოველი დამატებითი ბიტი ნახევარ ბლოკს ქმნის.
როგორ დავყო ქსელი პატარა ქვექსელებად?
ჰოსტის ბიტების კრედიტი პრეფიქსის გაზრდით. / 24- ს გაყოფა ორ / 25- ში იძლევა 126 ჰოსტის ორ ბლოკს; / 26- ში გადასვლა იძლევა 62- ს ოთხ ბლოკს. ყოველი დამატებული პრეფიქსის ბიტი ორმაგდება ქვექსელების რაოდენობას და ნახევარდება მათი ზომა.
IP მისამართი
ძველი კლასების სქემა ყოფდა მისამართებს მათი პირველი ოქსიტის მიხედვით: კლასი A (1-126), კლასი B (128-191) და კლასი C (192-223) ერთჯერადი გადაცემისთვის, აგრეთვე D მრავალჯერადი გადაცემისთვის და E დაჯავშნილი. CIDR-მა კლასები გადაანაცვლა, მაგრამ კალკულატორი კვლავ აჩვენებს მისამართის კლასს.
31 იანვარი : ლუი 32 - საფრანგეთის მეფე (გ.
A/31-ს მხოლოდ ორი მისამართი აქვს და არ აქვს broadcast, გამოიყენება მარშრუტიზატორებს შორის point-to-point კავშირებისთვის. A/32 არის ერთი ჰოსტის მისამართი, რომელიც ჩვეულებრივია loopback-სა და ჰოსტის მარშრუტებისთვის. კალკულატორი მართავს ორივე სპეციალურ შემთხვევას.
API - გამოიყენეთ ეს კალკულატორი კოდისგან
ამ კალკულატორის გამოძახება როგორც უფასო JSON დასასრული - ღილაკი არ არის საჭირო. ქვემოთ მოცემული ველი პარამეტრების ან JSON- ის სახით გაგზავნეთ. ყველა თქვენ მიერ გამოტოვებული პარამეტრის გამოყენებისას იგივე ნაგულისხმევი პარამეტრები გამოიყენება, რაც ამ გვერდზეა; უცნობი პარამეტრის ნომერი არის 400, არასდროს დუმილის ნულს. 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);
Results are estimates for general guidance only, not financial, medical or tax advice.