आईपी सबनेट कैलकुलेटर

आईपी सबनेट कैलकुलेटर दिए गए नेटवर्क पते, सबनेट मास्क और आईपी पते के लिए सबनेट गणना करता है। यह पूर्ण CIDR रूपांतरण, उपयोगी होस्ट आईपी रेंज, ब्रॉडकास्ट पते, वाइल्डकार्ड मास्क और बाइनरी निरूपण के साथ IPv4 और IPv6 दोनों सबनेटिंग का समर्थन करता है।

IPv4 सबनेट कैलकुलेटर

IPv6 सबनेट कैलकुलेटर

IPv4 के लिए सामान्य सबनेट:

उपसर्ग (Prefix) सबनेट मास्क प्रति सबनेट उपयोगी होस्ट कुल सबनेट
Class A
/8 255.0.0.0 16,777,214 1
/9 255.128.0.0 8,388,606 2
/10 255.192.0.0 4,194,302 4
/11 255.224.0.0 2,097,150 8
/12 255.240.0.0 1,048,574 16
/13 255.248.0.0 524,286 32
/14 255.252.0.0 262,142 64
/15 255.254.0.0 131,070 128
Class B
/16 255.255.0.0 65,534 1
/17 255.255.128.0 32,766 2
/18 255.255.192.0 16,382 4
/19 255.255.224.0 8,190 8
/20 255.255.240.0 4,094 16
/21 255.255.248.0 2,046 32
/22 255.255.252.0 1,022 64
/23 255.255.254.0 510 128
Class C
/24 255.255.255.0 254 1
/25 255.255.255.128 126 2
/26 255.255.255.192 62 4
/27 255.255.255.224 30 8
/28 255.255.255.240 14 16
/29 255.255.255.248 6 32
/30 255.255.255.252 2 64
/31 255.255.255.254 0 (2 for RFC 3021) 128
/32 255.255.255.255 1 256
सबनेट और भिन्न अंकगणित मापन सॉल्वर

नेटवर्क बैंडविड्थ आवंटन, सर्वर रैक यूनिट क्लीयरेंस और सब-ब्लॉक विभाजन अनुपात के लिए अक्सर सटीक भिन्न अंकगणित की आवश्यकता होती है। चरण-दर-चरण सरलीकरण और दशमलव रूपांतरण के साथ मिश्रित संख्याओं और भिन्नों को जोड़ें, घटाएं, गुणा करें या विभाजित करें।

सामान्य प्रीसेट:

पूर्ण IPv4 और IPv6 सबनेटिंग और सीआईडीआर आर्किटेक्चर गाइड

सबनेटिंग कंप्यूटर नेटवर्किंग में उपयोग की जाने वाली मौलिक गणितीय तकनीक है जिसके द्वारा एक बड़े भौतिक या आभासी नेटवर्क को छोटे, तार्किक रूप से व्यवस्थित उप-नेटवर्क (सबनेट) में विभाजित किया जाता है। आईपी ​​एड्रेस स्पेस को विभाजित करके, नेटवर्क आर्किटेक्ट एक्सेस-कंट्रोल अलगाव के माध्यम से सुरक्षा बढ़ाते हैं, ब्रॉडकास्ट तूफानों को रोकते हैं, लेटेंसी कम करते हैं और IPv4 पतों का अधिकतम संरक्षण सुनिश्चित करते हैं। क्लासलेस इंटर-डोमेन रूटिंग (CIDR) और बिटवाइज़ सबनेट मास्क को समझना नेटवर्क इंजीनियरों, क्लाउड आर्किटेक्ट्स और साइबर सुरक्षा पेशेवरों के लिए अनिवार्य है।

1. IPv4 सबनेटिंग की गणितीय नींव

An IPv4 address consists of 32 binary bits arranged into four 8-bit bytes called octets, separated by periods (e.g., 192.168.1.1). Every IP address is fundamentally divided into two segments: the Network Prefix (which identifies the subnet) and the Host Identifier (which identifies the individual interface or host on that subnet). (which identifies the individual interface or host on that subnet).

  • Bitwise AND Operation: A router determines the network address by performing a logical bitwise AND between the 32-bit IP address and the 32-bit subnet mask. Wherever the mask bit is 1, the IP bit is preserved; wherever the mask bit is 0, the result is forced to 0.
  • Total Host Formula: If a subnet mask reserves h host bits (where h = 32 - CIDR), the total number of IP addresses in the subnet is 2^h.
  • Usable Host Formula: In standard IPv4 networking, two addresses are reserved and cannot be assigned to endpoints: the Network Address (where all host bits are binary 0) and the Broadcast Address (where all host bits are binary 1). Therefore, the number of usable hosts is 2^h - 2.
  • Point-to-Point /31 Subnets (RFC 3021): For direct router-to-router point-to-point serial links, RFC 3021 eliminates dedicated network and broadcast addresses, allowing both addresses in a /31 block to be assigned to the two peer router interfaces, conserving vast blocks of IPv4 space.

2. निजी आईपी स्पेस (RFC 1918) बनाम सार्वजनिक रूटिंग

वैश्विक 4.29 अरब IPv4 एड्रेस पूल के समयपूर्व समाप्त होने से रोकने के लिए, इंटरनेट इंजीनियरिंग टास्क फोर्स (IETF) ने RFC 1918 के तहत तीन निजी IPv4 ब्लॉक निर्दिष्ट किए हैं जिन्हें सार्वजनिक इंटरनेट पर कभी रूट नहीं किया जाता है:

  • 10.0.0.0/8 (Class A Private): Range: 10.0.0.0 to 10.255.255.255 (16,777,216 total addresses). Ideal for large enterprise campus networks, global WANs, and cloud multi-tier VPC topologies.
  • 172.16.0.0/12 (Class B Private): Range: 172.16.0.0 to 172.31.255.255 (1,048,576 addresses across 16 contiguous /16 blocks). Frequently used in mid-sized enterprise networks, virtualization clusters, and Docker/Kubernetes container overlays.
  • 192.168.0.0/16 (Class C Private): Range: 192.168.0.0 to 192.168.255.255 (65,536 addresses across 256 contiguous /24 blocks). Standard default for home routers, small-office/home-office (SOHO) Wi-Fi networks, and lab benches.
  • 100.64.0.0/10 (Carrier-Grade NAT / CGNAT - RFC 6598): Range: 100.64.0.0 to 100.127.255.255 (4,194,304 addresses). Used by ISPs to aggregate multiple residential subscribers behind shared public IPv4 gateways.

3. IPv6 आर्किटेक्चर और अनिवार्य /64 उपसर्ग

IPv6 replaces IPv4's 32-bit limitation with a massive 128-bit address space, representing 2^128 (approximately 340 undecillion) unique addresses. IPv6 addresses are written as eight groups of four hexadecimal digits (hextets) separated by colons. (approximately 340 undecillion) unique addresses. IPv6 addresses are written as eight groups of four hexadecimal digits (hextets) separated by colons.

  • Global Routing Prefix (Typically /48 to /56): Assigned by Regional Internet Registries (RIRs) and ISPs to enterprises and organizations.
  • Subnet Identifier (Bits 48 through 64): Gives an enterprise up to 65,536 distinct /64 subnets from a single /48 assignment.
  • Interface Identifier (Bits 64 through 128): RFC 4291 mandates that standard subnets use a /64 prefix to allow Stateless Address Autoconfiguration (SLAAC). Each individual /64 subnet contains 18,446,744,073,709,551,616 unique host addresses.

4. क्लाउड वीपीसी सबनेटिंग (AWS, Azure और GCP)

अमेज़ॅन वेब सर्विसेज (AWS VPC), माइक्रोसॉफ्ट एज़्योर और गूगल क्लाउड प्लेटफॉर्म (GCP VPC) जैसे प्रमुख क्लाउड वातावरणों में सबनेट डिजाइन करते समय, क्लाउड प्रदाता हाइपरवाइजर इंफ्रास्ट्रक्चर सेवाओं के लिए प्रत्येक सबनेट में अतिरिक्त आईपी पते आरक्षित करते हैं:

  • .0: Network address.
  • .1: VPC router / default gateway address.
  • .2: DNS resolver service (Amazon Provided DNS or Azure DNS).
  • .3: Cloud internal management or broadcast emulation.
  • .255: Network broadcast address.

Consequently, in an AWS VPC, a /24 subnet provides 251 usable host IP addresses rather than the traditional on-premise count of 254. Keep this cloud reserve in mind when sizing subnets for Kubernetes node pools or elastic load balancer clusters.

अक्सर पूछे जाने वाले प्रश्न (FAQ)

आईपी ​​और सीआईडीआर से नेटवर्क और ब्रॉडकास्ट पता कैसे पता करें? ▾
आईपी पते और सबनेट मास्क दोनों को 32-बिट बाइनरी पूर्णांक में बदलें। नेटवर्क पता प्राप्त करने के लिए आईपी और मास्क के बीच एक बिटवाइज़ AND ऑपरेशन करें। फिर वाइल्डकार्ड मास्क की गणना करने के लिए मास्क को उलटें, और ब्रॉडकास्ट पता प्राप्त करने के लिए नेटवर्क पते और वाइल्डकार्ड मास्क के बीच एक बिटवाइज़ OR करें।
/30 सबनेट केवल 2 उपयोगी आईपी पते क्यों प्रदान करता है? ▾
एक /30 उपसर्ग 32 - 30 = 2 होस्ट बिट छोड़ता है। पतों की कुल संख्या 2^2 = 4 है। चूंकि पहला पता नेटवर्क पहचानकर्ता के रूप में और चौथा पता ब्रॉडकास्ट पते के रूप में आरक्षित है, इसलिए ठीक 4 - 2 = 2 उपयोगी होस्ट पते बचते हैं, जो /30 को पॉइंट-टू-पॉइंट WAN लिंक के लिए पारंपरिक मानक बनाता है।
क्लासफुल और क्लासलेस (CIDR) एड्रेसिंग में क्या अंतर है? ▾
क्लासफुल एड्रेसिंग (RFC 791) ने शुरुआती ऑक्टेट के आधार पर आईपी पते को क्लास A (/8), क्लास B (/16) और क्लास C (/24) में कठोरता से वर्गीकृत किया, जिससे भारी बर्बादी हुई। क्लासलेस इंटर-डोमेन रूटिंग (CIDR, RFC 1519) ने इन सीमाओं को हटा दिया, जिससे किसी भी उपसर्ग लंबाई (/1 से /32) के सबनेट मास्क की अनुमति मिली।
सिस्को राउटर कॉन्फ़िगरेशन में वाइल्डकार्ड मास्क कैसे काम करते हैं? ▾
एक वाइल्डकार्ड मास्क राउटर को बताता है कि आईपी पते में कौन से बिट्स मेल खाने चाहिए (जहाँ वाइल्डकार्ड बिट 0 है) और कौन से बिट्स भिन्न हो सकते हैं (जहाँ वाइल्डकार्ड बिट 1 है)। इसकी गणना 255.255.255.255 में से सबनेट मास्क घटाकर की जाती है। उदाहरण के लिए, /26 सबनेट (मास्क 255.255.255.192) के लिए, वाइल्डकार्ड मास्क 0.0.0.63 है।

अंतिम समीक्षा: