Υπολογιστής υποδίκτυων (IPv4 CIDR)

Πλήρης ανάλυση υποδίκτυου IPv4: δίκτυο, μετάδοση, μάσκα, wildcard, σειρά υποδοχής και καταμέτρηση.

/
Prefix length, e.g. 24 for a 255.255.255.0 mask.
Διεύθυνση δικτύου —
Διεύθυνση εκπομπής —
Μάσκα υποδίκτυου —
Μάσκα Wildcard —
Χρήσιμοι οικοδεσπότες —
Εύρος υπολογιστή —

Ενημέρωση αποτελεσμάτων όπως πληκτρολογείτε.

Σου έδωσε αυτή η αριθμομηχανή τη σωστή απάντηση;

Σχετικά με αυτό το κομπιουτεράκι

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.

Συχνές ερωτήσεις

Πόσοι οικοδεσπότες είναι σε ένα υποδίκτυο;

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;

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.

Ποια είναι η διαφορά μεταξύ του δικτύου και της διεύθυνσης μετάδοσης;

Η διεύθυνση δικτύου (όλα τα bits host 0) ονομάζεται υποδίκτυο· η διεύθυνση μετάδοσης (όλα τα bits host 1) φτάνει σε κάθε υπολογιστή σε αυτό.

Τι σημαίνει το πρόθεμα CIDR (/24, /16);

Ένα μεγαλύτερο πρόθεμα σημαίνει περισσότερα κομμάτια δικτύου και λιγότερα κομμάτια ξενιστή, έτσι ένα μικρότερο υποδίκτυο: /24 δίνει 254 ξενιστές, /25 δίνει 126, και κάθε επιπλέον κομμάτι μισοπλαστεί το μπλοκ.

Πώς θα χωρίσω ένα δίκτυο σε μικρότερα υποδίκτυα;

Η διαίρεση ενός /24 σε δύο /25 δίνει δύο τεμάχια των 126 hosts; πηγαίνοντας στο /26 δίνει τέσσερα κομμάτια του 62. Κάθε πρόσθετο πρόθεμα διπλασιάζει τον αριθμό των υποδίκτυων και μισό μέγεθος τους.

Τι είναι η τάξη διευθύνσεων IP;

The old classful scheme split addresses by their first octet: Class A (1–126), Class B (128–191) and Class C (192–223) for unicast, plus D for multicast and E reserved. CIDR replaced classes for allocation, but the calculator still reports the class the address falls in.

Σε ποιες περιπτώσεις χρησιμοποιούνται τα υποδίκτυα /31 και /32;

A /31 has just two addresses and no broadcast, used for point-to-point links between routers. A /32 is a single host address, common for loopbacks and host routes. The calculator handles both special cases.

❤️ Αγάπη Calculator.Free? Μοιράσου το.

𝕏  X Facebook Reddit
API — use this calculator from code

Καλέστε αυτόν τον υπολογιστή ως ένα δωρεάν 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);

Τα αποτελέσματα είναι εκτιμήσεις για γενική καθοδήγηση μόνο, όχι οικονομικές, ιατρικές ή φορολογικές συμβουλές.