[{"data":1,"prerenderedAt":312,"buildId":313},["ShallowReactive",2],{"parsed-markdown-subnet-calculator-en":3},{"doc":4,"toc":10},{"frontmatter":5,"meta":6,"nodes":55},{},{"toc":7},{"title":8,"searchDepth":9,"depth":9,"links":10},"",2,[11,14,17,20,40,43,46,49,52],{"id":12,"depth":9,"text":13},"what-is-subnet-calculator","What is Subnet Calculator?",{"id":15,"depth":9,"text":16},"how-to-use","How to Use",{"id":18,"depth":9,"text":19},"input-formats","Input Formats",{"id":21,"depth":9,"text":22,"children":23},"how-the-calculation-works","How the Calculation Works",[24,28,31,34,37],{"id":25,"depth":26,"text":27},"network-and-broadcast-addresses",3,"Network and broadcast addresses",{"id":29,"depth":26,"text":30},"usable-hosts","Usable hosts",{"id":32,"depth":26,"text":33},"input-address-role","Input address role",{"id":35,"depth":26,"text":36},"address-scope","Address scope",{"id":38,"depth":26,"text":39},"_32-bit-structure","32-bit structure",{"id":41,"depth":9,"text":42},"subnet-splitting","Subnet Splitting",{"id":44,"depth":9,"text":45},"sizing-from-a-required-host-count","Sizing from a Required Host Count",{"id":47,"depth":9,"text":48},"use-cases","Use Cases",{"id":50,"depth":9,"text":51},"frequently-asked-questions","Frequently Asked Questions",{"id":53,"depth":9,"text":54},"things-to-keep-in-mind","Things to Keep in Mind",[56,59,63,83,85,95,98,100,161,168,170,173,176,178,197,199,207,209,212,214,217,219,232,234,249,251,269,271,285,295,305,307],[57,58,13],"h2",{"id":12},[60,61,62],"p",{},"Enter an IPv4 address and prefix length to calculate the network address, broadcast address, usable host range, and host count for the subnet.",[60,64,65,66,70,71,74,75,78,79,82],{},"For example, ",[67,68,69],"code",{},"192.168.1.10\u002F24"," gives the network address ",[67,72,73],{},"192.168.1.0\u002F24",", the usable host range ",[67,76,77],{},"192.168.1.1","–",[67,80,81],{},"192.168.1.254",", and 254 usable hosts. You can also split a subnet or work backward from a required host count.",[57,84,16],{"id":15},[86,87,88,92],"ol",{},[89,90,91],"li",{},"Enter an IPv4 address.",[89,93,94],{},"If you enter a plain IP address, choose a prefix length.",[60,96,97],{},"The result updates as you type. You can also size a prefix from a required host count.",[57,99,19],{"id":18},[101,102,103,119],"table",{},[104,105,106],"thead",{},[107,108,109,113,116],"tr",{},[110,111,112],"th",{},"Format",[110,114,115],{},"Example",[110,117,118],{},"When to use",[120,121,122,136,148],"tbody",{},[107,123,124,128,133],{},[125,126,127],"td",{},"Plain IP",[125,129,130],{},[67,131,132],{},"192.168.1.10",[125,134,135],{},"Choose a prefix length and calculate",[107,137,138,141,145],{},[125,139,140],{},"CIDR",[125,142,143],{},[67,144,69],{},[125,146,147],{},"Paste CIDR notation directly",[107,149,150,153,158],{},[125,151,152],{},"IP + subnet mask",[125,154,155],{},[67,156,157],{},"192.168.1.10 255.255.255.0",[125,159,160],{},"Calculate from a subnet mask",[60,162,163,164,167],{},"Prefix lengths range from 0 to 32. A subnet mask must be a contiguous bit mask such as ",[67,165,166],{},"255.255.255.0",".",[57,169,22],{"id":21},[171,172,27],"h3",{"id":25},[60,174,175],{},"The network address has all host bits set to 0, and the broadcast address has all host bits set to 1.",[171,177,30],{"id":29},[60,179,180,181,184,185,188,189,192,193,196],{},"For ",[67,182,183],{},"\u002F0"," to ",[67,186,187],{},"\u002F30",", the usable host count excludes the network and broadcast addresses. A ",[67,190,191],{},"\u002F31"," is treated as a point-to-point link with two usable addresses, and a ",[67,194,195],{},"\u002F32"," as a single host.",[171,198,33],{"id":32},[60,200,201,202,204,205,196],{},"The tool shows whether the input is the network address, the broadcast address, or a host address. A ",[67,203,191],{}," is shown as P2P endpoint A or B, and a ",[67,206,195],{},[171,208,36],{"id":35},[60,210,211],{},"The tool shows an address scope such as private, global, or loopback. The label is a guide based on the network address.",[171,213,39],{"id":38},[60,215,216],{},"The address is shown as 32 bits, with the network and host portions in different colors. The subnet mask bits are shown alongside it.",[57,218,42],{"id":41},[60,220,221,222,224,225,228,229,231],{},"The current network can be divided evenly into a longer prefix. Splitting ",[67,223,73],{}," into ",[67,226,227],{},"\u002F26"," creates four ",[67,230,227],{}," subnets. Selecting a subnet recalculates the result for that range.",[57,233,45],{"id":44},[60,235,236,237,239,240,242,243,245,246,248],{},"Enter the number of hosts you need to see a suggested prefix. For example, 50 hosts suggests ",[67,238,227],{}," (62 usable hosts), and 2 hosts suggests ",[67,241,187],{}," (2 usable hosts). For a general two-host subnet, the tool suggests ",[67,244,187],{},"; the point-to-point ",[67,247,191],{}," is not included in the suggestion.",[57,250,48],{"id":47},[252,253,254,257,260,263,266],"ul",{},[89,255,256],{},"Designing a small LAN or a segment for each office",[89,258,259],{},"Checking subnet splits for VLANs or a cloud VPC",[89,261,262],{},"Finding which network an existing IP address belongs to",[89,264,265],{},"Checking a wildcard mask for ACLs or OSPF",[89,267,268],{},"Learning how subnet masks map to prefix lengths",[57,270,51],{"id":50},[272,273,276,282],"details",{"$":274},{"html":275,"block":275},1,[277,278,281],"summary",{"$":279},{"html":275,"block":280},0,"Can I calculate IPv6 addresses?",[60,283,284],{},"No. This tool supports IPv4 only. IPv6 uses a different address length and a different model for usable hosts.",[272,286,288,292],{"$":287},{"html":275,"block":275},[277,289,291],{"$":290},{"html":275,"block":280},"My cloud provider reserves five addresses, but the host count does not match.",[60,293,294],{},"This tool uses the standard RFC calculation and reserves only the network and broadcast addresses. AWS, Azure, and other providers may reserve additional addresses. Check the provider's documentation when planning a real subnet.",[272,296,298,302],{"$":297},{"html":275,"block":275},[277,299,301],{"$":300},{"html":275,"block":280},"Can I enter an address that is not the network address?",[60,303,304],{},"Yes. The tool calculates the subnet that contains the address and shows the network address and usable host range. It also shows the role of the input address.",[57,306,54],{"id":53},[252,308,309],{},[89,310,311],{},"The usable host count is theoretical. Real networks may use addresses for routers or other reservations.",1796431153455,"cec2f057-b9e0-40e6-ba49-577a17ccd9a9"]