[{"data":1,"prerenderedAt":1641},["ShallowReactive",2],{"\u002F2025\u002Fbasic-structure-of-ipv4-subnetting":3,"surround-\u002F2025\u002Fbasic-structure-of-ipv4-subnetting":1632},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"updated":10,"image":11,"categories":12,"tags":14,"recommend":6,"draft":6,"readingTime":15,"body":20,"_type":1625,"_id":1626,"_source":1627,"_file":1628,"_stem":1629,"_extension":1630,"_original_dir":1631},"\u002F2025\u002Fbasic-structure-of-ipv4-subnetting","2025",false,"","Basic Structure of IPv4 - Subnetting","In this article, we will discuss the basic structure of IPv4, Network Masks, Host-Network IDs, Broadcast addresses, CIDR notation, Subnet calculations and more with examples.","2025-08-07T18:08:26.000Z","https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Fbasic-structure-of-ipv4-subnetting\u002F1.jpg",[13],"Network",[],{"text":16,"minutes":17,"time":18,"words":19},"5 min read",4.51,270600,902,{"type":21,"children":22,"toc":1612},"root",[23,31,161,168,173,211,219,319,325,340,391,397,402,564,570,582,589,654,659,947,953,973,1259,1335,1341,1346,1607],{"type":24,"tag":25,"props":26,"children":27},"element","p",{},[28],{"type":29,"value":30},"text","IPv4, in short, is an addressing system that allows devices connected to the internet (computers, phones, etc.) to recognize each other. Let's now examine the structure of this addressing.",{"type":24,"tag":32,"props":33,"children":34},"ul",{},[35,41,71],{"type":24,"tag":36,"props":37,"children":38},"li",{},[39],{"type":29,"value":40},"An IPv4 address is a 32-bit number consisting of 4 sections (octets) of 8 bits each. (8 bits = 1 byte)",{"type":24,"tag":36,"props":42,"children":43},{},[44,46],{"type":29,"value":45},"For human readability, these bits are converted into decimal numbers from 0-255, separated by dots. This is called Dotted-Decimal Notation.",{"type":24,"tag":32,"props":47,"children":48},{},[49],{"type":24,"tag":36,"props":50,"children":51},{},[52,54,61,63,69],{"type":29,"value":53},"Example: ",{"type":24,"tag":55,"props":56,"children":58},"code",{"className":57},[],[59],{"type":29,"value":60},"11000000.10101000.00000001.00000001",{"type":29,"value":62}," (binary - what computers understand) = ",{"type":24,"tag":55,"props":64,"children":66},{"className":65},[],[67],{"type":29,"value":68},"192.168.1.1",{"type":29,"value":70}," (decimal - what we understand)",{"type":24,"tag":36,"props":72,"children":73},{},[74,76,116,120,122],{"type":29,"value":75},"We perform this conversion using the following logic.",{"type":24,"tag":32,"props":77,"children":78},{},[79,100],{"type":24,"tag":36,"props":80,"children":81},{},[82,92,94],{"type":24,"tag":83,"props":84,"children":89},"strong",{"className":85,"id":87,"style":88},[86],"example-info","just-like-this","color: #EA5B6F",[90],{"type":29,"value":91},"IP Address",{"type":29,"value":93},": ",{"type":24,"tag":55,"props":95,"children":98},{"className":96,"id":87,"style":97},[86],"color: #77BEF0",[99],{"type":29,"value":68},{"type":24,"tag":36,"props":101,"children":102},{},[103,109,111],{"type":24,"tag":83,"props":104,"children":106},{"className":105,"id":87,"style":88},[86],[107],{"type":29,"value":108},"Method",{"type":29,"value":110},":\nEach bit represents a power of 2. The decimal equivalents of the 8 bits within an octet are as follows:",{"type":24,"tag":112,"props":113,"children":115},"pic",{"src":114},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Fbasic-structure-of-ipv4-subnetting\u002F2.jpg",[],{"type":24,"tag":117,"props":118,"children":119},"br",{},[],{"type":29,"value":121},"To get the number we have, we find which values in the table we need to \"use\". We write 1 under each value we use and 0 under those we don't.",{"type":24,"tag":32,"props":123,"children":124},{},[125,144],{"type":24,"tag":36,"props":126,"children":127},{},[128,135,137],{"type":24,"tag":55,"props":129,"children":132},{"className":130,"id":87,"style":131},[86],"color: #efb11d",[133],{"type":29,"value":134},"128(1) - 64(1) - 32(0) - 16(0) - 8(0) - 4(0) - 2(0) - 1(0)",{"type":29,"value":136}," which means 128+64=",{"type":24,"tag":55,"props":138,"children":141},{"className":139,"id":87,"style":140},[86],"color: #00bb66",[142],{"type":29,"value":143},"192",{"type":24,"tag":36,"props":145,"children":146},{},[147,153,155],{"type":24,"tag":55,"props":148,"children":150},{"className":149,"id":87,"style":131},[86],[151],{"type":29,"value":152},"128(1) - 64(0) - 32(1) - 16(0) - 8(1) - 4(0) - 2(0) - 1(0)",{"type":29,"value":154}," which means 128+32+8=",{"type":24,"tag":55,"props":156,"children":158},{"className":157,"id":87,"style":140},[86],[159],{"type":29,"value":160},"168",{"type":24,"tag":162,"props":163,"children":165},"h2",{"id":164},"network-and-host-id",[166],{"type":29,"value":167},"Network and Host ID",{"type":24,"tag":25,"props":169,"children":170},{},[171],{"type":29,"value":172},"Every IPv4 address consists of two fundamental parts. A Network Mask is used to separate these parts.",{"type":24,"tag":32,"props":174,"children":175},{},[176,194],{"type":24,"tag":36,"props":177,"children":178},{},[179,184,186,192],{"type":24,"tag":83,"props":180,"children":181},{},[182],{"type":29,"value":183},"Network ID:",{"type":29,"value":185},"  Specifies which network the device is on. It's like the street name. The ",{"type":24,"tag":55,"props":187,"children":189},{"className":188},[],[190],{"type":29,"value":191},"1",{"type":29,"value":193},"s in the network mask represent this part.",{"type":24,"tag":36,"props":195,"children":196},{},[197,202,204,210],{"type":24,"tag":83,"props":198,"children":199},{},[200],{"type":29,"value":201},"Host ID:",{"type":29,"value":203},"  Identifies a specific device on that network. It's like the house number. The ",{"type":24,"tag":55,"props":205,"children":207},{"className":206},[],[208],{"type":29,"value":209},"0",{"type":29,"value":193},{"type":24,"tag":25,"props":212,"children":213},{},[214],{"type":24,"tag":83,"props":215,"children":216},{},[217],{"type":29,"value":218},"Example:",{"type":24,"tag":32,"props":220,"children":221},{},[222,239,263],{"type":24,"tag":36,"props":223,"children":224},{},[225,231,233],{"type":24,"tag":83,"props":226,"children":228},{"className":227,"id":87,"style":88},[86],[229],{"type":29,"value":230},"IP Address:",{"type":29,"value":232},"  ",{"type":24,"tag":55,"props":234,"children":236},{"className":235,"id":87,"style":97},[86],[237],{"type":29,"value":238},"192.168.1.10",{"type":24,"tag":36,"props":240,"children":241},{},[242,248,249,255,257],{"type":24,"tag":83,"props":243,"children":245},{"className":244,"id":87,"style":88},[86],[246],{"type":29,"value":247},"Network Mask:",{"type":29,"value":232},{"type":24,"tag":55,"props":250,"children":252},{"className":251},[],[253],{"type":29,"value":254},"255.255.255.0",{"type":29,"value":256}," , The binary equivalent of this mask is: ",{"type":24,"tag":55,"props":258,"children":260},{"className":259},[],[261],{"type":29,"value":262},"11111111.11111111.11111111.00000000",{"type":24,"tag":36,"props":264,"children":265},{},[266,272,274,279,281,286,288],{"type":24,"tag":83,"props":267,"children":269},{"className":268,"id":87,"style":88},[86],[270],{"type":29,"value":271},"Analysis:",{"type":29,"value":273},"  This mask indicates that the first three octets (the first 24 bits) are the ",{"type":24,"tag":83,"props":275,"children":276},{},[277],{"type":29,"value":278},"Network ID",{"type":29,"value":280},", and the last octet (the last 8 bits) is the ",{"type":24,"tag":83,"props":282,"children":283},{},[284],{"type":29,"value":285},"Host ID",{"type":29,"value":287},".\n",{"type":24,"tag":32,"props":289,"children":290},{},[291,305],{"type":24,"tag":36,"props":292,"children":293},{},[294,298,299],{"type":24,"tag":83,"props":295,"children":296},{},[297],{"type":29,"value":183},{"type":29,"value":232},{"type":24,"tag":55,"props":300,"children":302},{"className":301},[],[303],{"type":29,"value":304},"192.168.1.0",{"type":24,"tag":36,"props":306,"children":307},{},[308,312,313],{"type":24,"tag":83,"props":309,"children":310},{},[311],{"type":29,"value":201},{"type":29,"value":232},{"type":24,"tag":55,"props":314,"children":316},{"className":315},[],[317],{"type":29,"value":318},"10",{"type":24,"tag":162,"props":320,"children":322},{"id":321},"cidr-notation",[323],{"type":29,"value":324},"CIDR Notation",{"type":24,"tag":25,"props":326,"children":327},{},[328,330,338],{"type":29,"value":329},"This provides a more flexible way to express the network mask we just mentioned by appending a \u002F (slash) and the number of bits representing the ",{"type":24,"tag":331,"props":332,"children":335},"span",{"className":333,"id":87,"style":334},[86],"color: #FF8040",[336],{"type":29,"value":337},"network ID",{"type":29,"value":339}," to the end of the IP address.",{"type":24,"tag":32,"props":341,"children":342},{},[343,368],{"type":24,"tag":36,"props":344,"children":345},{},[346,352,354,359,361,366],{"type":24,"tag":55,"props":347,"children":349},{"className":348,"id":87,"style":97},[86],[350],{"type":29,"value":351},"192.168.1.10\u002F24",{"type":29,"value":353}," → Indicates that the first ",{"type":24,"tag":83,"props":355,"children":356},{},[357],{"type":29,"value":358},"24 bits",{"type":29,"value":360}," are the network ID (i.e., the ",{"type":24,"tag":55,"props":362,"children":364},{"className":363},[],[365],{"type":29,"value":254},{"type":29,"value":367}," mask).",{"type":24,"tag":36,"props":369,"children":370},{},[371,377,378,383,384,390],{"type":24,"tag":55,"props":372,"children":374},{"className":373,"id":87,"style":97},[86],[375],{"type":29,"value":376},"10.50.0.0\u002F8",{"type":29,"value":353},{"type":24,"tag":83,"props":379,"children":380},{},[381],{"type":29,"value":382},"8 bits",{"type":29,"value":360},{"type":24,"tag":55,"props":385,"children":387},{"className":386},[],[388],{"type":29,"value":389},"255.0.0.0",{"type":29,"value":367},{"type":24,"tag":162,"props":392,"children":394},{"id":393},"special-purpose-ip-addresses",[395],{"type":29,"value":396},"Special-Purpose IP Addresses",{"type":24,"tag":25,"props":398,"children":399},{},[400],{"type":29,"value":401},"Certain IP addresses and ranges are reserved for special tasks and cannot be assigned to a normal device.",{"type":24,"tag":32,"props":403,"children":404},{},[405,432,456,475],{"type":24,"tag":36,"props":406,"children":407},{},[408,415,417,422,424,430],{"type":24,"tag":83,"props":409,"children":412},{"className":410,"id":87,"style":411},[86],"color: #4DFFBE",[413],{"type":29,"value":414},"Network Address:",{"type":29,"value":416},"  Defines the network itself. All bits in the host ID portion are ",{"type":24,"tag":55,"props":418,"children":420},{"className":419},[],[421],{"type":29,"value":209},{"type":29,"value":423}," (e.g., ",{"type":24,"tag":55,"props":425,"children":427},{"className":426},[],[428],{"type":29,"value":429},"192.168.1.0\u002F24",{"type":29,"value":431},").",{"type":24,"tag":36,"props":433,"children":434},{},[435,441,443,448,449,455],{"type":24,"tag":83,"props":436,"children":438},{"className":437,"id":87,"style":411},[86],[439],{"type":29,"value":440},"Broadcast Address:",{"type":29,"value":442},"  Used to send data to all devices on a network. All bits in the host ID portion are ",{"type":24,"tag":55,"props":444,"children":446},{"className":445},[],[447],{"type":29,"value":191},{"type":29,"value":423},{"type":24,"tag":55,"props":450,"children":452},{"className":451},[],[453],{"type":29,"value":454},"192.168.1.255\u002F24",{"type":29,"value":431},{"type":24,"tag":36,"props":457,"children":458},{},[459,465,467,473],{"type":24,"tag":83,"props":460,"children":462},{"className":461,"id":87,"style":411},[86],[463],{"type":29,"value":464},"Local Loopback:",{"type":29,"value":466},"  The address ",{"type":24,"tag":55,"props":468,"children":470},{"className":469},[],[471],{"type":29,"value":472},"127.0.0.1",{"type":29,"value":474}," is used for a device to communicate with itself. It is generally used for testing purposes.",{"type":24,"tag":36,"props":476,"children":477},{},[478,484,486],{"type":24,"tag":83,"props":479,"children":481},{"className":480,"id":87,"style":411},[86],[482],{"type":29,"value":483},"Private IP Ranges:",{"type":29,"value":485},"  These are addresses that cannot be routed on the public internet and are only for use on local networks (home, office, etc.).\n",{"type":24,"tag":32,"props":487,"children":488},{},[489,516,540],{"type":24,"tag":36,"props":490,"children":491},{},[492,498,500,506,508,514],{"type":24,"tag":55,"props":493,"children":495},{"className":494},[],[496],{"type":29,"value":497},"10.0.0.0",{"type":29,"value":499}," - ",{"type":24,"tag":55,"props":501,"children":503},{"className":502},[],[504],{"type":29,"value":505},"10.255.255.255",{"type":29,"value":507}," (",{"type":24,"tag":55,"props":509,"children":511},{"className":510},[],[512],{"type":29,"value":513},"10.0.0.0\u002F8",{"type":29,"value":515},")",{"type":24,"tag":36,"props":517,"children":518},{},[519,525,526,532,533,539],{"type":24,"tag":55,"props":520,"children":522},{"className":521},[],[523],{"type":29,"value":524},"172.16.0.0",{"type":29,"value":499},{"type":24,"tag":55,"props":527,"children":529},{"className":528},[],[530],{"type":29,"value":531},"172.31.255.255",{"type":29,"value":507},{"type":24,"tag":55,"props":534,"children":536},{"className":535},[],[537],{"type":29,"value":538},"172.16.0.0\u002F12",{"type":29,"value":515},{"type":24,"tag":36,"props":541,"children":542},{},[543,549,550,556,557,563],{"type":24,"tag":55,"props":544,"children":546},{"className":545},[],[547],{"type":29,"value":548},"192.168.0.0",{"type":29,"value":499},{"type":24,"tag":55,"props":551,"children":553},{"className":552},[],[554],{"type":29,"value":555},"192.168.255.255",{"type":29,"value":507},{"type":24,"tag":55,"props":558,"children":560},{"className":559},[],[561],{"type":29,"value":562},"192.168.0.0\u002F16",{"type":29,"value":515},{"type":24,"tag":162,"props":565,"children":567},{"id":566},"subnetting",[568],{"type":29,"value":569},"Subnetting",{"type":24,"tag":25,"props":571,"children":572},{},[573,575,580],{"type":29,"value":574},"This is the process of dividing a large IP network into smaller, more efficient, and manageable ",{"type":24,"tag":83,"props":576,"children":577},{},[578],{"type":29,"value":579},"Subnets",{"type":29,"value":581},". Let's walk through an example.",{"type":24,"tag":583,"props":584,"children":586},"h3",{"id":585},"step-1-calculating-basic-information",[587],{"type":29,"value":588},"Step 1: Calculating Basic Information",{"type":24,"tag":32,"props":590,"children":591},{},[592,607,623,638],{"type":24,"tag":36,"props":593,"children":594},{},[595,600,601],{"type":24,"tag":83,"props":596,"children":598},{"className":597,"id":87,"style":88},[86],[599],{"type":29,"value":230},{"type":29,"value":232},{"type":24,"tag":55,"props":602,"children":604},{"className":603,"id":87,"style":97},[86],[605],{"type":29,"value":606},"192.168.12.140\u002F26",{"type":24,"tag":36,"props":608,"children":609},{},[610,616,617],{"type":24,"tag":83,"props":611,"children":613},{"className":612,"id":87,"style":88},[86],[614],{"type":29,"value":615},"CIDR:",{"type":29,"value":232},{"type":24,"tag":55,"props":618,"children":620},{"className":619},[],[621],{"type":29,"value":622},"\u002F26",{"type":24,"tag":36,"props":624,"children":625},{},[626,631,632],{"type":24,"tag":83,"props":627,"children":629},{"className":628,"id":87,"style":88},[86],[630],{"type":29,"value":247},{"type":29,"value":232},{"type":24,"tag":55,"props":633,"children":635},{"className":634},[],[636],{"type":29,"value":637},"255.255.255.192",{"type":24,"tag":36,"props":639,"children":640},{},[641,647,648],{"type":24,"tag":83,"props":642,"children":644},{"className":643,"id":87,"style":88},[86],[645],{"type":29,"value":646},"Binary Mask:",{"type":29,"value":232},{"type":24,"tag":55,"props":649,"children":651},{"className":650},[],[652],{"type":29,"value":653},"11111111.11111111.11111111.11000000",{"type":24,"tag":25,"props":655,"children":656},{},[657],{"type":29,"value":658},"Now, let's find the fundamental addresses of the subnet with this information:",{"type":24,"tag":660,"props":661,"children":662},"ol",{},[663,783,847,886],{"type":24,"tag":36,"props":664,"children":665},{},[666,671],{"type":24,"tag":83,"props":667,"children":669},{"className":668,"id":87,"style":411},[86],[670],{"type":29,"value":414},{"type":24,"tag":32,"props":672,"children":673},{},[674,693,719,744,767],{"type":24,"tag":36,"props":675,"children":676},{},[677,679,684,686,691],{"type":29,"value":678},"Found by setting all bits in the ",{"type":24,"tag":83,"props":680,"children":681},{},[682],{"type":29,"value":683},"Host Portion",{"type":29,"value":685}," of the IP address to ",{"type":24,"tag":55,"props":687,"children":689},{"className":688},[],[690],{"type":29,"value":209},{"type":29,"value":692},".",{"type":24,"tag":36,"props":694,"children":695},{},[696,702,704,710],{"type":24,"tag":83,"props":697,"children":699},{"className":698,"id":87,"style":131},[86],[700],{"type":29,"value":701},"IP (Binary):",{"type":29,"value":703}," ",{"type":24,"tag":55,"props":705,"children":707},{"className":706},[],[708],{"type":29,"value":709},"11000000.10101000.00001100.10",{"type":24,"tag":83,"props":711,"children":712},{},[713],{"type":24,"tag":55,"props":714,"children":716},{"className":715},[],[717],{"type":29,"value":718},"001100",{"type":24,"tag":36,"props":720,"children":721},{},[722,728,729,735],{"type":24,"tag":83,"props":723,"children":725},{"className":724,"id":87,"style":131},[86],[726],{"type":29,"value":727},"Mask (Binary):",{"type":29,"value":703},{"type":24,"tag":55,"props":730,"children":732},{"className":731},[],[733],{"type":29,"value":734},"11111111.11111111.11111111.11",{"type":24,"tag":83,"props":736,"children":737},{},[738],{"type":24,"tag":55,"props":739,"children":741},{"className":740},[],[742],{"type":29,"value":743},"000000",{"type":24,"tag":36,"props":745,"children":746},{},[747,753,754,759],{"type":24,"tag":83,"props":748,"children":750},{"className":749,"id":87,"style":131},[86],[751],{"type":29,"value":752},"Result (Binary):",{"type":29,"value":703},{"type":24,"tag":55,"props":755,"children":757},{"className":756},[],[758],{"type":29,"value":709},{"type":24,"tag":83,"props":760,"children":761},{},[762],{"type":24,"tag":55,"props":763,"children":765},{"className":764},[],[766],{"type":29,"value":743},{"type":24,"tag":36,"props":768,"children":769},{},[770,776,777],{"type":24,"tag":83,"props":771,"children":773},{"className":772,"id":87,"style":131},[86],[774],{"type":29,"value":775},"Result (Decimal):",{"type":29,"value":703},{"type":24,"tag":55,"props":778,"children":780},{"className":779},[],[781],{"type":29,"value":782},"192.168.12.128",{"type":24,"tag":36,"props":784,"children":785},{},[786,791],{"type":24,"tag":83,"props":787,"children":789},{"className":788,"id":87,"style":411},[86],[790],{"type":29,"value":440},{"type":24,"tag":32,"props":792,"children":793},{},[794,809,832],{"type":24,"tag":36,"props":795,"children":796},{},[797,798,802,803,808],{"type":29,"value":678},{"type":24,"tag":83,"props":799,"children":800},{},[801],{"type":29,"value":683},{"type":29,"value":685},{"type":24,"tag":55,"props":804,"children":806},{"className":805},[],[807],{"type":29,"value":191},{"type":29,"value":692},{"type":24,"tag":36,"props":810,"children":811},{},[812,817,818,823],{"type":24,"tag":83,"props":813,"children":815},{"className":814,"id":87,"style":131},[86],[816],{"type":29,"value":752},{"type":29,"value":703},{"type":24,"tag":55,"props":819,"children":821},{"className":820},[],[822],{"type":29,"value":709},{"type":24,"tag":83,"props":824,"children":825},{},[826],{"type":24,"tag":55,"props":827,"children":829},{"className":828},[],[830],{"type":29,"value":831},"111111",{"type":24,"tag":36,"props":833,"children":834},{},[835,840,841],{"type":24,"tag":83,"props":836,"children":838},{"className":837,"id":87,"style":131},[86],[839],{"type":29,"value":775},{"type":29,"value":703},{"type":24,"tag":55,"props":842,"children":844},{"className":843},[],[845],{"type":29,"value":846},"192.168.12.191",{"type":24,"tag":36,"props":848,"children":849},{},[850,856],{"type":24,"tag":83,"props":851,"children":853},{"className":852,"id":87,"style":411},[86],[854],{"type":29,"value":855},"Usable IP Range:",{"type":24,"tag":32,"props":857,"children":858},{},[859,864],{"type":24,"tag":36,"props":860,"children":861},{},[862],{"type":29,"value":863},"The Network and Broadcast addresses cannot be assigned to devices. All addresses in between are usable.",{"type":24,"tag":36,"props":865,"children":866},{},[867,872,873,879,880],{"type":24,"tag":83,"props":868,"children":869},{},[870],{"type":29,"value":871},"Result:",{"type":29,"value":232},{"type":24,"tag":55,"props":874,"children":876},{"className":875},[],[877],{"type":29,"value":878},"192.168.12.129",{"type":29,"value":499},{"type":24,"tag":55,"props":881,"children":883},{"className":882},[],[884],{"type":29,"value":885},"192.168.12.190",{"type":24,"tag":36,"props":887,"children":888},{},[889,895],{"type":24,"tag":83,"props":890,"children":892},{"className":891,"id":87,"style":411},[86],[893],{"type":29,"value":894},"Number of Usable Hosts:",{"type":24,"tag":32,"props":896,"children":897},{},[898,925],{"type":24,"tag":36,"props":899,"children":900},{},[901,903,908,910,916,918,924],{"type":29,"value":902},"A ",{"type":24,"tag":55,"props":904,"children":906},{"className":905},[],[907],{"type":29,"value":622},{"type":29,"value":909}," mask leaves ",{"type":24,"tag":55,"props":911,"children":913},{"className":912},[],[914],{"type":29,"value":915},"32 - 26 = 6",{"type":29,"value":917}," bits for the host portion. The total number of IPs is ",{"type":24,"tag":55,"props":919,"children":921},{"className":920},[],[922],{"type":29,"value":923},"2^6 = 64",{"type":29,"value":692},{"type":24,"tag":36,"props":926,"children":927},{},[928,932,933,939,941,946],{"type":24,"tag":83,"props":929,"children":930},{},[931],{"type":29,"value":871},{"type":29,"value":232},{"type":24,"tag":55,"props":934,"children":936},{"className":935},[],[937],{"type":29,"value":938},"64 - 2",{"type":29,"value":940}," (Network and Broadcast Address) = ",{"type":24,"tag":83,"props":942,"children":943},{},[944],{"type":29,"value":945},"62 usable IPs",{"type":29,"value":692},{"type":24,"tag":583,"props":948,"children":950},{"id":949},"step-2-dividing-the-network-into-smaller-subnets",[951],{"type":29,"value":952},"Step 2: Dividing the Network into Smaller Subnets",{"type":24,"tag":25,"props":954,"children":955},{},[956,958,964,966,971],{"type":29,"value":957},"Let's divide the existing ",{"type":24,"tag":55,"props":959,"children":961},{"className":960,"id":87,"style":97},[86],[962],{"type":29,"value":963},"192.168.12.128\u002F26",{"type":29,"value":965}," network into ",{"type":24,"tag":83,"props":967,"children":968},{},[969],{"type":29,"value":970},"4",{"type":29,"value":972}," equal parts.",{"type":24,"tag":660,"props":974,"children":975},{},[976,1181,1227],{"type":24,"tag":36,"props":977,"children":978},{},[979,986,988,994,996,1001,1003,1030],{"type":24,"tag":83,"props":980,"children":983},{"className":981,"id":87,"style":982},[86],"color: #DEE791",[984],{"type":29,"value":985},"Finding the Required Number of Bits:",{"type":29,"value":987},"  To create 4 subnets, since ",{"type":24,"tag":55,"props":989,"children":991},{"className":990},[],[992],{"type":29,"value":993},"2^2 = 4",{"type":29,"value":995},", we need to \"borrow\" ",{"type":24,"tag":83,"props":997,"children":998},{},[999],{"type":29,"value":1000},"2 more bits",{"type":29,"value":1002}," for the network mask.",{"type":24,"tag":32,"props":1004,"children":1005},{},[1006],{"type":24,"tag":36,"props":1007,"children":1008},{},[1009,1014,1016,1021,1023,1028],{"type":24,"tag":83,"props":1010,"children":1011},{},[1012],{"type":29,"value":1013},"The rule of thumb is:",{"type":29,"value":1015}," If you borrow ",{"type":24,"tag":83,"props":1017,"children":1018},{},[1019],{"type":29,"value":1020},"n",{"type":29,"value":1022}," bits, you create ",{"type":24,"tag":83,"props":1024,"children":1025},{},[1026],{"type":29,"value":1027},"2ⁿ",{"type":29,"value":1029}," new subnets.",{"type":24,"tag":1031,"props":1032,"children":1033},"table",{},[1034,1059],{"type":24,"tag":1035,"props":1036,"children":1037},"thead",{},[1038],{"type":24,"tag":1039,"props":1040,"children":1041},"tr",{},[1042,1051],{"type":24,"tag":1043,"props":1044,"children":1045},"th",{},[1046],{"type":24,"tag":83,"props":1047,"children":1048},{},[1049],{"type":29,"value":1050},"Exponent",{"type":24,"tag":1043,"props":1052,"children":1053},{},[1054],{"type":24,"tag":83,"props":1055,"children":1056},{},[1057],{"type":29,"value":1058},"Value",{"type":24,"tag":1060,"props":1061,"children":1062},"tbody",{},[1063,1077,1090,1103,1116,1129,1142,1155,1168],{"type":24,"tag":1039,"props":1064,"children":1065},{},[1066,1072],{"type":24,"tag":1067,"props":1068,"children":1069},"td",{},[1070],{"type":29,"value":1071},"2 ^0 - 00000000 - Full Network",{"type":24,"tag":1067,"props":1073,"children":1074},{},[1075],{"type":29,"value":1076},"= 1",{"type":24,"tag":1039,"props":1078,"children":1079},{},[1080,1085],{"type":24,"tag":1067,"props":1081,"children":1082},{},[1083],{"type":29,"value":1084},"2 ^1 - 10000000 - 2 Networks",{"type":24,"tag":1067,"props":1086,"children":1087},{},[1088],{"type":29,"value":1089},"= 2",{"type":24,"tag":1039,"props":1091,"children":1092},{},[1093,1098],{"type":24,"tag":1067,"props":1094,"children":1095},{},[1096],{"type":29,"value":1097},"2 ^2 - 11000000 - 4 Networks",{"type":24,"tag":1067,"props":1099,"children":1100},{},[1101],{"type":29,"value":1102},"= 4",{"type":24,"tag":1039,"props":1104,"children":1105},{},[1106,1111],{"type":24,"tag":1067,"props":1107,"children":1108},{},[1109],{"type":29,"value":1110},"2 ^3 - 11100000",{"type":24,"tag":1067,"props":1112,"children":1113},{},[1114],{"type":29,"value":1115},"= 8",{"type":24,"tag":1039,"props":1117,"children":1118},{},[1119,1124],{"type":24,"tag":1067,"props":1120,"children":1121},{},[1122],{"type":29,"value":1123},"2 ^4 - ....",{"type":24,"tag":1067,"props":1125,"children":1126},{},[1127],{"type":29,"value":1128},"= 16",{"type":24,"tag":1039,"props":1130,"children":1131},{},[1132,1137],{"type":24,"tag":1067,"props":1133,"children":1134},{},[1135],{"type":29,"value":1136},"2 ^5",{"type":24,"tag":1067,"props":1138,"children":1139},{},[1140],{"type":29,"value":1141},"= 32",{"type":24,"tag":1039,"props":1143,"children":1144},{},[1145,1150],{"type":24,"tag":1067,"props":1146,"children":1147},{},[1148],{"type":29,"value":1149},"2 ^6",{"type":24,"tag":1067,"props":1151,"children":1152},{},[1153],{"type":29,"value":1154},"= 64",{"type":24,"tag":1039,"props":1156,"children":1157},{},[1158,1163],{"type":24,"tag":1067,"props":1159,"children":1160},{},[1161],{"type":29,"value":1162},"2 ^7",{"type":24,"tag":1067,"props":1164,"children":1165},{},[1166],{"type":29,"value":1167},"= 128",{"type":24,"tag":1039,"props":1169,"children":1170},{},[1171,1176],{"type":24,"tag":1067,"props":1172,"children":1173},{},[1174],{"type":29,"value":1175},"2 ^8",{"type":24,"tag":1067,"props":1177,"children":1178},{},[1179],{"type":29,"value":1180},"= 256",{"type":24,"tag":36,"props":1182,"children":1183},{},[1184,1190,1192,1197,1199],{"type":24,"tag":83,"props":1185,"children":1187},{"className":1186,"id":87,"style":982},[86],[1188],{"type":29,"value":1189},"Determining the New Subnet Mask:",{"type":29,"value":1191},"  Our current mask was ",{"type":24,"tag":55,"props":1193,"children":1195},{"className":1194},[],[1196],{"type":29,"value":622},{"type":29,"value":1198},". We find the new mask by adding 2 more bits.",{"type":24,"tag":32,"props":1200,"children":1201},{},[1202],{"type":24,"tag":36,"props":1203,"children":1204},{},[1205,1210,1212,1218,1220,1226],{"type":24,"tag":55,"props":1206,"children":1208},{"className":1207},[],[1209],{"type":29,"value":622},{"type":29,"value":1211}," + 2 bits = ",{"type":24,"tag":55,"props":1213,"children":1215},{"className":1214},[],[1216],{"type":29,"value":1217},"\u002F28",{"type":29,"value":1219}," (or ",{"type":24,"tag":55,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":29,"value":1225},"255.255.255.240",{"type":29,"value":515},{"type":24,"tag":36,"props":1228,"children":1229},{},[1230,1236,1238,1243,1244,1250,1252,1257],{"type":24,"tag":83,"props":1231,"children":1233},{"className":1232,"id":87,"style":982},[86],[1234],{"type":29,"value":1235},"Calculating the New Subnets:",{"type":29,"value":1237},"  When our large block of 64 addresses is divided by 4, each new subnet will have ",{"type":24,"tag":83,"props":1239,"children":1240},{},[1241],{"type":29,"value":1242},"16 addresses",{"type":29,"value":507},{"type":24,"tag":55,"props":1245,"children":1247},{"className":1246},[],[1248],{"type":29,"value":1249},"64 \u002F 4 = 16",{"type":29,"value":1251},"). Starting from ",{"type":24,"tag":55,"props":1253,"children":1255},{"className":1254},[],[1256],{"type":29,"value":782},{"type":29,"value":1258},", we proceed in increments of 16:",{"type":24,"tag":32,"props":1260,"children":1261},{},[1262,1281,1299,1317],{"type":24,"tag":36,"props":1263,"children":1264},{},[1265,1272,1273,1279],{"type":24,"tag":83,"props":1266,"children":1269},{"className":1267,"id":87,"style":1268},[86],"color: #FFEDF3",[1270],{"type":29,"value":1271},"1st Subnet:",{"type":29,"value":232},{"type":24,"tag":55,"props":1274,"children":1276},{"className":1275},[],[1277],{"type":29,"value":1278},"192.168.12.128\u002F28",{"type":29,"value":1280}," (Network: .128, Broadcast: .143, Usable: .129 - .142)",{"type":24,"tag":36,"props":1282,"children":1283},{},[1284,1290,1291,1297],{"type":24,"tag":83,"props":1285,"children":1287},{"className":1286,"id":87,"style":1268},[86],[1288],{"type":29,"value":1289},"2nd Subnet:",{"type":29,"value":232},{"type":24,"tag":55,"props":1292,"children":1294},{"className":1293},[],[1295],{"type":29,"value":1296},"192.168.12.144\u002F28",{"type":29,"value":1298}," (Network: .144, Broadcast: .159, Usable: .145 - .158)",{"type":24,"tag":36,"props":1300,"children":1301},{},[1302,1308,1309,1315],{"type":24,"tag":83,"props":1303,"children":1305},{"className":1304,"id":87,"style":1268},[86],[1306],{"type":29,"value":1307},"3rd Subnet:",{"type":29,"value":232},{"type":24,"tag":55,"props":1310,"children":1312},{"className":1311},[],[1313],{"type":29,"value":1314},"192.168.12.160\u002F28",{"type":29,"value":1316}," (Network: .160, Broadcast: .175, Usable: .161 - .174)",{"type":24,"tag":36,"props":1318,"children":1319},{},[1320,1326,1327,1333],{"type":24,"tag":83,"props":1321,"children":1323},{"className":1322,"id":87,"style":1268},[86],[1324],{"type":29,"value":1325},"4th Subnet:",{"type":29,"value":232},{"type":24,"tag":55,"props":1328,"children":1330},{"className":1329},[],[1331],{"type":29,"value":1332},"192.168.12.176\u002F28",{"type":29,"value":1334}," (Network: .176, Broadcast: .191, Usable: .177 - .190)",{"type":24,"tag":583,"props":1336,"children":1338},{"id":1337},"quick-subnet-calculation-method",[1339],{"type":29,"value":1340},"Quick Subnet Calculation Method",{"type":24,"tag":25,"props":1342,"children":1343},{},[1344],{"type":29,"value":1345},"More practical methods can be used instead of complex binary calculations.",{"type":24,"tag":660,"props":1347,"children":1348},{},[1349,1461],{"type":24,"tag":36,"props":1350,"children":1351},{},[1352,1358,1360,1417,1420,1422],{"type":24,"tag":83,"props":1353,"children":1355},{"className":1354,"id":87,"style":411},[86],[1356],{"type":29,"value":1357},"Finding the Relevant Octet:",{"type":29,"value":1359},"  Determine which octet you are working on by looking at the CIDR mask.",{"type":24,"tag":32,"props":1361,"children":1362},{},[1363,1381,1399],{"type":24,"tag":36,"props":1364,"children":1365},{},[1366,1372,1373,1379],{"type":24,"tag":55,"props":1367,"children":1369},{"className":1368},[],[1370],{"type":29,"value":1371},"\u002F8",{"type":29,"value":499},{"type":24,"tag":55,"props":1374,"children":1376},{"className":1375},[],[1377],{"type":29,"value":1378},"\u002F15",{"type":29,"value":1380}," → 2nd octet",{"type":24,"tag":36,"props":1382,"children":1383},{},[1384,1390,1391,1397],{"type":24,"tag":55,"props":1385,"children":1387},{"className":1386},[],[1388],{"type":29,"value":1389},"\u002F16",{"type":29,"value":499},{"type":24,"tag":55,"props":1392,"children":1394},{"className":1393},[],[1395],{"type":29,"value":1396},"\u002F23",{"type":29,"value":1398}," → 3rd octet",{"type":24,"tag":36,"props":1400,"children":1401},{},[1402,1408,1409,1415],{"type":24,"tag":55,"props":1403,"children":1405},{"className":1404},[],[1406],{"type":29,"value":1407},"\u002F24",{"type":29,"value":499},{"type":24,"tag":55,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":29,"value":1414},"\u002F30",{"type":29,"value":1416}," → 4th octet",{"type":24,"tag":117,"props":1418,"children":1419},{},[],{"type":29,"value":1421},"By remembering these four numbers, we will determine which octet of the IP Address can change.",{"type":24,"tag":32,"props":1423,"children":1424},{},[1425],{"type":24,"tag":36,"props":1426,"children":1427},{},[1428,1430,1436,1438,1444,1446,1452,1454,1459],{"type":29,"value":1429},"For example, given the network address ",{"type":24,"tag":55,"props":1431,"children":1433},{"className":1432},[],[1434],{"type":29,"value":1435},"192.168.1.1\u002F25",{"type":29,"value":1437},", it is immediately clear that ",{"type":24,"tag":55,"props":1439,"children":1441},{"className":1440},[],[1442],{"type":29,"value":1443},"192.168.2.4",{"type":29,"value":1445}," is not on the same network because a ",{"type":24,"tag":55,"props":1447,"children":1449},{"className":1448},[],[1450],{"type":29,"value":1451},"\u002F25",{"type":29,"value":1453}," subnet means only the ",{"type":24,"tag":83,"props":1455,"children":1456},{},[1457],{"type":29,"value":1458},"fourth",{"type":29,"value":1460}," octet can change.",{"type":24,"tag":36,"props":1462,"children":1463},{},[1464,1470,1472],{"type":24,"tag":83,"props":1465,"children":1467},{"className":1466,"id":87,"style":411},[86],[1468],{"type":29,"value":1469},"Finding the Block Sizes:",{"type":29,"value":1471},"  Find the increment interval for subnets in the relevant octet.",{"type":24,"tag":32,"props":1473,"children":1474},{},[1475,1491,1552],{"type":24,"tag":36,"props":1476,"children":1477},{},[1478,1483,1484],{"type":24,"tag":83,"props":1479,"children":1480},{},[1481],{"type":29,"value":1482},"Formula:",{"type":29,"value":232},{"type":24,"tag":55,"props":1485,"children":1488},{"className":1486,"id":87,"style":1487},[86],"color: #00ff80ff",[1489],{"type":29,"value":1490},"256 - (Mask Value in the Relevant Octet)",{"type":24,"tag":36,"props":1492,"children":1493},{},[1494,1499,1501,1507,1509,1514,1516,1521,1522],{"type":24,"tag":83,"props":1495,"children":1496},{},[1497],{"type":29,"value":1498},"Example",{"type":29,"value":1500}," ( ",{"type":24,"tag":55,"props":1502,"children":1504},{"className":1503,"id":87,"style":131},[86],[1505],{"type":29,"value":1506},"for \u002F26",{"type":29,"value":1508},"):  Mask is ",{"type":24,"tag":55,"props":1510,"children":1512},{"className":1511},[],[1513],{"type":29,"value":637},{"type":29,"value":1515},". The value of the relevant octet (4th) is ",{"type":24,"tag":55,"props":1517,"children":1519},{"className":1518},[],[1520],{"type":29,"value":143},{"type":29,"value":692},{"type":24,"tag":32,"props":1523,"children":1524},{},[1525],{"type":24,"tag":36,"props":1526,"children":1527},{},[1528,1530,1536,1538,1543,1544,1551],{"type":29,"value":1529},"Block Size: ",{"type":24,"tag":55,"props":1531,"children":1533},{"className":1532},[],[1534],{"type":29,"value":1535},"256 - 192 = 64",{"type":29,"value":1537},". This indicates that the network addresses will increment by ",{"type":24,"tag":83,"props":1539,"children":1540},{},[1541],{"type":29,"value":1542},"64",{"type":29,"value":703},{"type":24,"tag":331,"props":1545,"children":1548},{"className":1546,"id":87,"style":1547},[86],"color: #ADEED9",[1549],{"type":29,"value":1550},"(0, 64, 128, 192)",{"type":29,"value":692},{"type":24,"tag":36,"props":1553,"children":1554},{},[1555,1559,1560,1566,1567,1572,1573,1579,1580],{"type":24,"tag":83,"props":1556,"children":1557},{},[1558],{"type":29,"value":1498},{"type":29,"value":507},{"type":24,"tag":55,"props":1561,"children":1563},{"className":1562,"id":87,"style":131},[86],[1564],{"type":29,"value":1565},"for \u002F28",{"type":29,"value":1508},{"type":24,"tag":55,"props":1568,"children":1570},{"className":1569},[],[1571],{"type":29,"value":1225},{"type":29,"value":1515},{"type":24,"tag":55,"props":1574,"children":1576},{"className":1575},[],[1577],{"type":29,"value":1578},"240",{"type":29,"value":692},{"type":24,"tag":32,"props":1581,"children":1582},{},[1583],{"type":24,"tag":36,"props":1584,"children":1585},{},[1586,1587,1593,1594,1599,1600,1606],{"type":29,"value":1529},{"type":24,"tag":55,"props":1588,"children":1590},{"className":1589},[],[1591],{"type":29,"value":1592},"256 - 240 = 16",{"type":29,"value":1537},{"type":24,"tag":83,"props":1595,"children":1596},{},[1597],{"type":29,"value":1598},"16",{"type":29,"value":703},{"type":24,"tag":331,"props":1601,"children":1603},{"className":1602,"id":87,"style":1547},[86],[1604],{"type":29,"value":1605},"(0, 16, 32, ... 128, 144, 160...)",{"type":29,"value":692},{"type":24,"tag":25,"props":1608,"children":1609},{},[1610],{"type":29,"value":1611},"Thanks for reading our article, you can share your thoughts in the comments. Have a great day...",{"title":7,"searchDepth":1613,"depth":1613,"links":1614},4,[1615,1617,1618,1619],{"id":164,"depth":1616,"text":167},2,{"id":321,"depth":1616,"text":324},{"id":393,"depth":1616,"text":396},{"id":566,"depth":1616,"text":569,"children":1620},[1621,1623,1624],{"id":585,"depth":1622,"text":588},3,{"id":949,"depth":1622,"text":952},{"id":1337,"depth":1622,"text":1340},"markdown","content:posts:2025:basic-structure-of-ipv4-subnetting.md","content","posts\u002F2025\u002Fbasic-structure-of-ipv4-subnetting.md","posts\u002F2025\u002Fbasic-structure-of-ipv4-subnetting","md","\u002Fposts",[1633,1637],{"_path":1634,"title":1635,"date":1636},"\u002F2025\u002Fwhat-is-a-proxy","What is a Proxy?","2025-08-07T08:58:18.000Z",{"_path":1638,"title":1639,"date":1640},"\u002F2025\u002Fwhat-is-vlan-and-what-are-port-types","What is VLAN and What are Port Types?","2025-08-08T13:24:23.000Z",1777018893276]