CINXE.COM
Classless Inter-Domain Routing - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Classless Inter-Domain Routing - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"716b6b74-f133-4f8a-b1fd-0f562b73cd7e","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Classless_Inter-Domain_Routing","wgTitle":"Classless Inter-Domain Routing","wgCurRevisionId":1256755405,"wgRevisionId":1256755405,"wgArticleId":38404,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Articles with short description","Short description matches Wikidata","Internet Standards","Internet architecture","IP addresses","Routing"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Classless_Inter-Domain_Routing","wgRelevantArticleId":38404,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia", "wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q646589","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false, "wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.math.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents", "ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.math.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Classless Inter-Domain Routing - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Classless_Inter-Domain_Routing"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Classless_Inter-Domain_Routing rootpage-Classless_Inter-Domain_Routing skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Classless+Inter-Domain+Routing" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Classless+Inter-Domain+Routing" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Classless+Inter-Domain+Routing" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Classless+Inter-Domain+Routing" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Background" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Background"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Background</span> </div> </a> <ul id="toc-Background-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-CIDR_notation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#CIDR_notation"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>CIDR notation</span> </div> </a> <ul id="toc-CIDR_notation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Subnet_masks" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Subnet_masks"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Subnet masks</span> </div> </a> <ul id="toc-Subnet_masks-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-CIDR_blocks" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#CIDR_blocks"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>CIDR blocks</span> </div> </a> <button aria-controls="toc-CIDR_blocks-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle CIDR blocks subsection</span> </button> <ul id="toc-CIDR_blocks-sublist" class="vector-toc-list"> <li id="toc-Assignment_of_CIDR_blocks" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Assignment_of_CIDR_blocks"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Assignment of CIDR blocks</span> </div> </a> <ul id="toc-Assignment_of_CIDR_blocks-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-IPv4_CIDR_blocks" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#IPv4_CIDR_blocks"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>IPv4 CIDR blocks</span> </div> </a> <ul id="toc-IPv4_CIDR_blocks-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-IPv6_CIDR_blocks" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#IPv6_CIDR_blocks"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>IPv6 CIDR blocks</span> </div> </a> <ul id="toc-IPv6_CIDR_blocks-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Numerical_interpretation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Numerical_interpretation"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Numerical interpretation</span> </div> </a> <ul id="toc-Numerical_interpretation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Prefix_aggregation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Prefix_aggregation"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Prefix aggregation</span> </div> </a> <ul id="toc-Prefix_aggregation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Further_reading" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Further_reading"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Further reading</span> </div> </a> <ul id="toc-Further_reading-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Classless Inter-Domain Routing</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 27 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-27" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">27 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%AA%D9%88%D8%AC%D9%8A%D9%87_%D8%A8%D9%8A%D9%86_%D9%86%D8%B7%D8%A7%D9%82%D9%8A_%D8%BA%D9%8A%D8%B1_%D8%B5%D9%86%D9%81%D9%8A" title="توجيه بين نطاقي غير صنفي – Arabic" lang="ar" hreflang="ar" data-title="توجيه بين نطاقي غير صنفي" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-an mw-list-item"><a href="https://an.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Aragonese" lang="an" hreflang="an" data-title="Classless Inter-Domain Routing" data-language-autonym="Aragonés" data-language-local-name="Aragonese" class="interlanguage-link-target"><span>Aragonés</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Catalan" lang="ca" hreflang="ca" data-title="Classless Inter-Domain Routing" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Czech" lang="cs" hreflang="cs" data-title="Classless Inter-Domain Routing" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – German" lang="de" hreflang="de" data-title="Classless Inter-Domain Routing" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Spanish" lang="es" hreflang="es" data-title="Classless Inter-Domain Routing" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fr badge-Q70893996 mw-list-item" title=""><a href="https://fr.wikipedia.org/wiki/CIDR" title="CIDR – French" lang="fr" hreflang="fr" data-title="CIDR" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/CIDR" title="CIDR – Korean" lang="ko" hreflang="ko" data-title="CIDR" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/CIDR" title="CIDR – Croatian" lang="hr" hreflang="hr" data-title="CIDR" data-language-autonym="Hrvatski" data-language-local-name="Croatian" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Indonesian" lang="id" hreflang="id" data-title="Classless Inter-Domain Routing" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Italian" lang="it" hreflang="it" data-title="Classless Inter-Domain Routing" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/Bezklases_starpdom%C4%93nu_mar%C5%A1rut%C4%93%C5%A1ana" title="Bezklases starpdomēnu maršrutēšana – Latvian" lang="lv" hreflang="lv" data-title="Bezklases starpdomēnu maršrutēšana" data-language-autonym="Latviešu" data-language-local-name="Latvian" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/CIDR" title="CIDR – Macedonian" lang="mk" hreflang="mk" data-title="CIDR" data-language-autonym="Македонски" data-language-local-name="Macedonian" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Dutch" lang="nl" hreflang="nl" data-title="Classless Inter-Domain Routing" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Japanese" lang="ja" hreflang="ja" data-title="Classless Inter-Domain Routing" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Classless Inter-Domain Routing" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Polish" lang="pl" hreflang="pl" data-title="Classless Inter-Domain Routing" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Roteamento_entre_dom%C3%ADnios_sem_classes" title="Roteamento entre domínios sem classes – Portuguese" lang="pt" hreflang="pt" data-title="Roteamento entre domínios sem classes" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%91%D0%B5%D1%81%D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%BE%D0%B2%D0%B0%D1%8F_%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0%D1%86%D0%B8%D1%8F" title="Бесклассовая адресация – Russian" lang="ru" hreflang="ru" data-title="Бесклассовая адресация" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Simple English" lang="en-simple" hreflang="en-simple" data-title="Classless Inter-Domain Routing" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/CIDR" title="CIDR – Serbian" lang="sr" hreflang="sr" data-title="CIDR" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Luokaton_reititys" title="Luokaton reititys – Finnish" lang="fi" hreflang="fi" data-title="Luokaton reititys" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Swedish" lang="sv" hreflang="sv" data-title="Classless Inter-Domain Routing" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/S%C4%B1n%C4%B1fs%C4%B1z_alanlar_aras%C4%B1_y%C3%B6nlendirme" title="Sınıfsız alanlar arası yönlendirme – Turkish" lang="tr" hreflang="tr" data-title="Sınıfsız alanlar arası yönlendirme" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/CIDR" title="CIDR – Ukrainian" lang="uk" hreflang="uk" data-title="CIDR" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Classless_Inter-Domain_Routing" title="Classless Inter-Domain Routing – Vietnamese" lang="vi" hreflang="vi" data-title="Classless Inter-Domain Routing" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/%E6%97%A0%E7%B1%BB%E5%88%AB%E5%9F%9F%E9%97%B4%E8%B7%AF%E7%94%B1" title="无类别域间路由 – Chinese" lang="zh" hreflang="zh" data-title="无类别域间路由" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q646589#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Classless_Inter-Domain_Routing" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Classless_Inter-Domain_Routing" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Classless_Inter-Domain_Routing"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Classless_Inter-Domain_Routing"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Classless_Inter-Domain_Routing" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Classless_Inter-Domain_Routing" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&oldid=1256755405" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=Classless_Inter-Domain_Routing&id=1256755405&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FClassless_Inter-Domain_Routing"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FClassless_Inter-Domain_Routing"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Classless_Inter-Domain_Routing&action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Classless_Inter-Domain_Routing&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:CIDR" hreflang="en"><span>Wikimedia Commons</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q646589" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Method for IP address allocation and routing</div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">"CIDR" redirects here. For other uses, see <a href="/wiki/CIDR_(disambiguation)" class="mw-disambig" title="CIDR (disambiguation)">CIDR (disambiguation)</a>.</div> <p><b>Classless Inter-Domain Routing</b> (<b>CIDR</b> <span class="rt-commentedText nowrap"><span class="IPA nopopups noexcerpt" lang="en-fonipa"><a href="/wiki/Help:IPA/English" title="Help:IPA/English">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="'s' in 'sigh'">s</span><span title="/aɪ/: 'i' in 'tide'">aɪ</span><span title="'d' in 'dye'">d</span><span title="/ər/: 'er' in 'letter'">ər</span></span>,<span class="wrap"> </span><span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="'s' in 'sigh'">s</span><span title="/ɪ/: 'i' in 'kit'">ɪ</span></span>-/</a></span></span>) is a method for allocating <a href="/wiki/IP_address" title="IP address">IP addresses</a> for <a href="/wiki/IP_routing" title="IP routing">IP routing</a>. The <a href="/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force">Internet Engineering Task Force</a> introduced CIDR in 1993 to replace the previous <a href="/wiki/Classful_network" title="Classful network">classful network</a> addressing architecture on the <a href="/wiki/Internet" title="Internet">Internet</a>. Its goal was to slow the growth of <a href="/wiki/Routing_table" title="Routing table">routing tables</a> on <a href="/wiki/Router_(computing)" title="Router (computing)">routers</a> across the Internet, and to help slow the rapid <a href="/wiki/IPv4_address_exhaustion" title="IPv4 address exhaustion">exhaustion of IPv4 addresses</a>.<sup id="cite_ref-RFC_1518_1-0" class="reference"><a href="#cite_note-RFC_1518-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-RFC_1519_2-0" class="reference"><a href="#cite_note-RFC_1519-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> </p><p>IP addresses are described as consisting of two groups of <a href="/wiki/Bit" title="Bit">bits</a> in the address: the <a href="/wiki/Most_significant_bit" class="mw-redirect" title="Most significant bit">most significant bits</a> are the <a href="/wiki/Network_prefix" class="mw-redirect" title="Network prefix">network prefix</a>, which identifies a whole network or <a href="/wiki/Subnet" title="Subnet">subnet</a>, and the <a href="/wiki/Least_significant_bit" class="mw-redirect" title="Least significant bit">least significant</a> set forms the <i>host identifier</i>, which specifies a particular interface of a host on that network. This division is used as the basis of traffic routing between IP networks and for address allocation policies. </p><p>Whereas classful network design for <a href="/wiki/IPv4" title="IPv4">IPv4</a> sized the network prefix as one or more 8-bit groups, resulting in the blocks of Class A, B, or C addresses, under CIDR address space is allocated to <a href="/wiki/Internet_service_provider" title="Internet service provider">Internet service providers</a> and <a href="/wiki/End_user" title="End user">end users</a> on any address-bit boundary. In <a href="/wiki/IPv6" title="IPv6">IPv6</a>, however, the interface identifier has a fixed size of 64 bits by convention, and smaller subnets are never allocated to end users. </p><p><span class="anchor" id="VLSM"></span>CIDR is based on <b>variable-length subnet masking</b> (<b>VLSM</b>), in which network prefixes have variable length (as opposed to the fixed-length prefixing of the previous classful network design). The main benefit of this is that it grants finer control of the sizes of subnets allocated to organizations, hence slowing the exhaustion of IPv4 addresses from allocating larger subnets than needed. CIDR gave rise to a new way of writing IP addresses known as CIDR notation, in which an IP address is followed by a suffix indicating the number of bits of the prefix. Some examples of CIDR notation are the addresses <i><span class="ipaddr"><span style="padding-right: 1px;">192.0.2.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> for IPv4 and <i><span class="ipaddr"><span style="padding-right: 1px;">2001:db8::</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">32</span></span></i> for IPv6. Blocks of addresses having contiguous prefixes may be aggregated as <a href="/wiki/Supernet" class="mw-redirect" title="Supernet">supernets</a>, reducing the number of entries in the global routing table. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Background">Background</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=1" title="Edit section: Background"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Each IP address consists of a network prefix followed by a <a href="/wiki/Host_(network)" title="Host (network)">host</a> identifier. In the <a href="/wiki/Classful_network" title="Classful network">classful network</a> architecture of <a href="/wiki/IPv4" title="IPv4">IPv4</a>, the three most significant bits of the 32-bit IP address defined the size of the network prefix for unicast networking, and determined the network class A, B, or C.<sup id="cite_ref-rfc943_3-0" class="reference"><a href="#cite_note-rfc943-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> </p> <table class="wikitable"> <tbody><tr> <th>Class </th> <th>Most-significant bits </th> <th>Network prefix size (bits) </th> <th>Host identifier size (bits) </th> <th>Address range </th></tr> <tr> <td>A </td> <td>0 </td> <td>8 </td> <td>24 </td> <td>0.0.0.0–127.255.255.255 </td></tr> <tr> <td>B </td> <td>10 </td> <td>16 </td> <td>16 </td> <td>128.0.0.0–191.255.255.255 </td></tr> <tr> <td>C </td> <td>110 </td> <td>24 </td> <td>8 </td> <td>192.0.0.0–223.255.255.255 </td></tr> <tr> <td>D<sup>(multicast)</sup><br />E<sup>(reserved)</sup> </td> <td>1110<br />1111 </td> <td>– </td> <td>– </td> <td>224.0.0.0–255.255.255.255 </td></tr></tbody></table> <p>The advantage of this system is that the network prefix could be determined for any IP address without any further information. The disadvantage is that networks were usually too big or too small for most organizations to use, because only three sizes were available. The smallest allocation and routing block contained 2<sup>8</sup> = 256 addresses, larger than necessary for personal or department networks, but too small for most enterprises. The next larger block contained 2<sup>16</sup> = <span style="white-space:nowrap">65<span style="margin-left:0.25em">536</span></span> addresses, too large to be used efficiently even by large organizations. But for network users who needed more than <span style="white-space:nowrap">65<span style="margin-left:0.25em">536</span></span> addresses, the only other size (2<sup>24</sup>) provided far too many, more than 16 million. This led to inefficiencies in address use as well as inefficiencies in routing, because it required a large number of allocated class-C networks with individual route announcements, being geographically dispersed with little opportunity for <a href="/wiki/Route_aggregation" class="mw-redirect" title="Route aggregation">route aggregation</a>. </p><p>Within a decade after the invention of the <a href="/wiki/Domain_Name_System" title="Domain Name System">Domain Name System</a> (DNS), the classful network method was found not <a href="/wiki/Scalable" class="mw-redirect" title="Scalable">scalable</a>.<sup id="cite_ref-RFC_1517_4-0" class="reference"><a href="#cite_note-RFC_1517-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> This led to the development of <a href="/wiki/Subnet" title="Subnet">subnetting</a> and CIDR. The formerly meaningful class distinctions based on the most-significant address bits were abandoned and the new system was described as <i>classless</i>, in contrast to the old system, which became known as <i>classful</i>. Routing protocols were revised to carry not just IP addresses, but also their subnet masks. Implementing CIDR required every host and router on the Internet to be reprogrammed in small ways—no small feat at a time when the Internet was entering a period of rapid growth. In 1993, the <a href="/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force">Internet Engineering Task Force</a> published a new set of standards, <style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1518">1518</a> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1519">1519</a>, to define this new principle for allocating IP address blocks and routing IPv4 packets. An updated version, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc4632">4632</a>, was published in 2006.<sup id="cite_ref-RFC_4632_5-0" class="reference"><a href="#cite_note-RFC_4632-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> </p><p>After a period of experimentation with various alternatives, Classless Inter-Domain Routing was based on variable-length subnet masking (VLSM), which allows each network to be divided into subnetworks of various power-of-two sizes, so that each subnetwork can be sized appropriately for local needs. Variable-length subnet masks were mentioned as one alternative in <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc950">950</a>.<sup id="cite_ref-RFC_950_2.1_6-0" class="reference"><a href="#cite_note-RFC_950_2.1-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> Techniques for grouping addresses for common operations were based on the concept of cluster addressing, first proposed by Carl-Herbert Rokitansky.<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> </p><p><span class="anchor" id="notation"></span> </p> <div class="mw-heading mw-heading2"><h2 id="CIDR_notation">CIDR notation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=2" title="Edit section: CIDR notation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><b>CIDR notation</b> is a compact representation of an IP address and its associated network mask. The notation was invented by <a href="/wiki/Phil_Karn" title="Phil Karn">Phil Karn</a> in the 1980s.<sup id="cite_ref-kantor_9-0" class="reference"><a href="#cite_note-kantor-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-simpson_10-0" class="reference"><a href="#cite_note-simpson-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> CIDR notation specifies an IP address, a <a href="/wiki/Slash_(punctuation)" title="Slash (punctuation)">slash</a> ('/') character, and a decimal number. The decimal number is the count of consecutive leading <i>1</i>-bits (from left to right) in the network mask. Each 1-bit denotes a bit of the address range which must remain identical to the given IP address. The IP address in CIDR notation is always represented according to the standards for IPv4 or IPv6. </p><p>The address may denote a specific interface address (including a host identifier, such as <i><span class="ipaddr"><span style="padding-right: 1px;">10.0.0.1</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">8</span></span></i>), or it may be the beginning address of an entire network (using a host identifier of 0, as in <i><span class="ipaddr"><span style="padding-right: 1px;">10.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">8</span></span></i> or its equivalent <i><span class="ipaddr"><span style="padding-right: 1px;">10</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">8</span></span></i>). CIDR notation can even be used with no IP address at all, e.g. when referring to a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> as a generic description of an IPv4 network that has a 24-bit prefix and 8-bit host numbers. </p><p>For example: </p> <ul><li><i><span class="ipaddr"><span style="padding-right: 1px;">198.51.100.14</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> represents the IPv4 address <i><span class="ipaddr"><span style="padding-right: 1px;">198.51.100.14</span></span></i> and its associated network prefix <i><span class="ipaddr"><span style="padding-right: 1px;">198.51.100.0</span></span></i>, or equivalently, its subnet mask <i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.0</span></span></i>, which has 24 leading <i>1</i>-bits.</li> <li>the IPv4 block <i><span class="ipaddr"><span style="padding-right: 1px;">198.51.100.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">22</span></span></i> represents the 1024 IPv4 addresses from <i><span class="ipaddr"><span style="padding-right: 1px;">198.51.100.0</span></span></i> to <i><span class="ipaddr"><span style="padding-right: 1px;">198.51.103.255</span></span></i>.</li> <li>the IPv6 block <i><span class="ipaddr"><span style="padding-right: 1px;">2001:db8::</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">48</span></span></i> represents the block of IPv6 addresses from <i><span class="ipaddr"><span style="padding-right: 1px;">2001:db8:0:0:0:0:0:0</span></span></i> to <i><span class="ipaddr"><span style="padding-right: 1px;">2001:db8:0:ffff:ffff:ffff:ffff:ffff</span></span></i>.</li> <li><i><span class="ipaddr"><span style="padding-right: 1px;">::1</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">128</span></span></i> represents the IPv6 <a href="/wiki/Loopback" title="Loopback">loopback</a> address. Its prefix length is 128 which is the number of bits in the address.</li></ul> <p>In IPv4, CIDR notation came into wide use only after the implementation of the method, which was documented using <a href="/wiki/Dotted-decimal" class="mw-redirect" title="Dotted-decimal">dotted-decimal</a> subnet mask specification after the slash, for example, <i><span class="ipaddr"><span style="padding-right: 1px;">192.24.12.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">255.255.252.0</span></span></i>.<sup id="cite_ref-RFC_1519_2-1" class="reference"><a href="#cite_note-RFC_1519-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> Describing the network prefix width as a single number (<i><span class="ipaddr"><span style="padding-right: 1px;">192.24.12.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">22</span></span></i>) was easier for network administrators to conceptualize and to calculate. It became gradually incorporated into later standards documents<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> and into network configuration interfaces. </p><p>The number of addresses of a network may be calculated as 2<sup>address length − prefix length</sup>, where <i>address length</i> is 128 for IPv6 and 32 for IPv4. For example, in IPv4, the prefix length <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">29</span></span></i> gives: 2<sup>32−29</sup> = 2<sup>3</sup> = 8 addresses. </p> <div class="mw-heading mw-heading2"><h2 id="Subnet_masks">Subnet masks</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=3" title="Edit section: Subnet masks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A subnet mask is a <a href="/wiki/Bitmask" class="mw-redirect" title="Bitmask">bitmask</a> that encodes the prefix length associated with an IPv4 address or network in quad-dotted notation: 32 bits, starting with a number of <i>1</i>-bits equal to the prefix length, ending with <i>0</i>-bits, and encoded in four-part dotted-decimal format: <i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.0</span></span></i>. A subnet mask encodes the same information as a prefix length but predates the advent of CIDR. In CIDR notation, the prefix bits are always contiguous. Subnet masks were allowed by <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc950">950</a><sup id="cite_ref-RFC_950_2.1_6-1" class="reference"><a href="#cite_note-RFC_950_2.1-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> to specify non-contiguous bits until <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc4632">4632</a><sup id="cite_ref-RFC_4632_5-1" class="reference"><a href="#cite_note-RFC_4632-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: Section 5.1">: Section 5.1 </span></sup> stated that the mask must be left contiguous. Given this constraint, a subnet mask and CIDR notation serve exactly the same function. </p> <div class="mw-heading mw-heading2"><h2 id="CIDR_blocks">CIDR blocks</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=4" title="Edit section: CIDR blocks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>CIDR is principally a bitwise, prefix-based standard for the representation of IP addresses and their routing properties. It facilitates routing by allowing blocks of addresses to be grouped into single routing table entries. These groups, commonly called CIDR blocks, share an initial sequence of bits in the binary representation of their IP addresses. IPv4 CIDR blocks are identified using a syntax similar to that of IPv4 addresses: a dotted-decimal address, followed by a slash, then a number from 0 to 32, i.e., <i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">n</span></span></i>. The dotted decimal portion is the IPv4 address. The number following the slash is the prefix length, the number of shared initial bits, counting from the most-significant bit of the address. When emphasizing only the size of a network, the address portion of the notation is usually omitted. Thus, a /20 block is a CIDR block with an unspecified 20-bit prefix. </p><p>An IP address is part of a CIDR block and is said to match the CIDR prefix if the initial <i>n</i> bits of the address and the CIDR prefix are the same. An IPv4 address is 32 bits so an <i>n</i>-bit CIDR prefix leaves 32 − <i>n</i> bits unmatched, meaning that 2<sup>32−<i>n</i></sup> IPv4 addresses match a given <i>n</i>-bit CIDR prefix. Shorter CIDR prefixes match more addresses, while longer prefixes match fewer. In the case of overlaid CIDR blocks, an address can match multiple CIDR prefixes of different lengths. </p><p> CIDR is also used for <a href="/wiki/IPv6_address" title="IPv6 address">IPv6 addresses</a> and the syntax semantic is identical. The prefix length can range from 0 to 128, due to the larger number of bits in the address. However, by convention, a subnet on broadcast MAC layer networks always has 64-bit host identifiers.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup> Larger prefixes (/127) are only used on some point-to-point links between routers, for security and policy reasons.<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup></p><figure class="mw-halign-right" typeof="mw:File"><a href="/wiki/File:IP_Address_Match.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7b/IP_Address_Match.svg/400px-IP_Address_Match.svg.png" decoding="async" width="400" height="394" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/7b/IP_Address_Match.svg/600px-IP_Address_Match.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/7b/IP_Address_Match.svg/800px-IP_Address_Match.svg.png 2x" data-file-width="621" data-file-height="612" /></a><figcaption></figcaption></figure> <div class="mw-heading mw-heading3"><h3 id="Assignment_of_CIDR_blocks">Assignment of CIDR blocks</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=5" title="Edit section: Assignment of CIDR blocks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/Internet_Assigned_Numbers_Authority" title="Internet Assigned Numbers Authority">Internet Assigned Numbers Authority</a> (IANA) issues to <a href="/wiki/Regional_Internet_registries" class="mw-redirect" title="Regional Internet registries">regional Internet registries</a> (RIRs) large, short-prefix CIDR blocks. However, a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">8</span></span></i> (with over sixteen million addresses) is the largest block IANA will allocate. For example, <i><span class="ipaddr"><span style="padding-right: 1px;">62.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">8</span></span></i> is administered by <a href="/wiki/RIPE_NCC" title="RIPE NCC">RIPE NCC</a>, the European RIR. The RIRs, each responsible for a single, large, geographic area, such as Europe or North America, subdivide these blocks and allocate subnets to local Internet registries (LIRs). Similar subdividing may be repeated several times at lower levels of delegation. End-user networks receive subnets sized according to their projected short-term need. Networks served by a single ISP are encouraged by <a href="/wiki/IETF" class="mw-redirect" title="IETF">IETF</a> recommendations to obtain IP address space directly from their ISP. Networks served by multiple ISPs, on the other hand, may obtain <a href="/wiki/Provider-independent_address_space" title="Provider-independent address space">provider-independent address space</a> directly from the appropriate RIR. </p> <figure class="mw-halign-right" typeof="mw:File"><a href="/wiki/File:CIDR_Address.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/CIDR_Address.svg/400px-CIDR_Address.svg.png" decoding="async" width="400" height="220" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/CIDR_Address.svg/600px-CIDR_Address.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/26/CIDR_Address.svg/800px-CIDR_Address.svg.png 2x" data-file-width="800" data-file-height="440" /></a><figcaption></figcaption></figure> <p>For example, in the late 1990s, the IP address <i><span class="ipaddr"><span style="padding-right: 1px;">208.130.29.33</span></span></i> (since reassigned) was used by www.freesoft.org. An analysis of this address identified three CIDR prefixes. <i><span class="ipaddr"><span style="padding-right: 1px;">208.128.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">11</span></span></i>, a large CIDR block containing over 2 million addresses, had been assigned by <a href="/wiki/ARIN" class="mw-redirect" title="ARIN">ARIN</a> (the North American RIR) to <a href="/wiki/MCI_Communications" title="MCI Communications">MCI</a>. Automation Research Systems (ARS), a Virginia <a href="/wiki/Value-added_reseller" title="Value-added reseller">VAR</a>, leased an Internet connection from MCI and was assigned the <i><span class="ipaddr"><span style="padding-right: 1px;">208.130.28.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">22</span></span></i> block, capable of addressing just over 1000 devices. ARS used a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> block for its publicly accessible servers, of which <i><span class="ipaddr"><span style="padding-right: 1px;">208.130.29.33</span></span></i> was one. All of these CIDR prefixes would be used, at different locations in the network. Outside MCI's network, the <i><span class="ipaddr"><span style="padding-right: 1px;">208.128.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">11</span></span></i> prefix would be used to direct to MCI traffic bound not only for <i><span class="ipaddr"><span style="padding-right: 1px;">208.130.29.33</span></span></i>, but also for any of the roughly two million IP addresses with the same initial 11 bits. Within MCI's network, <i><span class="ipaddr"><span style="padding-right: 1px;">208.130.28.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">22</span></span></i> would become visible, directing traffic to the leased line serving ARS. Only within the ARS corporate network would the <i><span class="ipaddr"><span style="padding-right: 1px;">208.130.29.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> prefix have been used. </p> <div class="mw-heading mw-heading3"><h3 id="IPv4_CIDR_blocks">IPv4 CIDR blocks</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=6" title="Edit section: IPv4 CIDR blocks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th rowspan="2">Address<br />format </th> <th rowspan="2">Difference<br />to last address </th> <th rowspan="2">Mask </th> <th colspan="2">Addresses </th> <th rowspan="2">Relative<br />to class<br />A, B, C </th> <th rowspan="2">Restrictions<br />on <i>a</i>, <i>b</i>, <i>c</i> and <i>d</i><br /><small>(0..255 unless noted)</small> </th> <th rowspan="2">Typical use </th></tr> <tr> <th>Decimal </th> <th>2<sup><i>n</i></sup> </th></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">32</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.0</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.255</span></span></i> </td> <td style="text-align:right;">1 </td> <td style="text-align:right;">2<sup>0</sup> </td> <td style="text-align:right;"><style data-mw-deduplicate="TemplateStyles:r1154941027">.mw-parser-output .frac{white-space:nowrap}.mw-parser-output .frac .num,.mw-parser-output .frac .den{font-size:80%;line-height:0;vertical-align:super}.mw-parser-output .frac .den{vertical-align:sub}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}</style><span class="frac"><span class="num">1</span>⁄<span class="den">256</span></span> C </td> <td> </td> <td>Host route </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">31</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.1</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.254</span></span></i> </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">2<sup>1</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">128</span></span> C </td> <td><i>d</i> = 0 ... (2<i>n</i>) ... 254 </td> <td>Point-to-point links (<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc3021">3021</a>) </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">30</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.3</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.252</span></span></i> </td> <td style="text-align:right;">4 </td> <td style="text-align:right;">2<sup>2</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">64</span></span> C </td> <td><i>d</i> = 0 ... (4<i>n</i>) ... 252 </td> <td><span class="nowrap">Point-to-point links (glue network)</span> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">29</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.7</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.248</span></span></i> </td> <td style="text-align:right;">8 </td> <td style="text-align:right;">2<sup>3</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">32</span></span> C </td> <td><i>d</i> = 0 ... (8<i>n</i>) ... 248 </td> <td>Smallest multi-host network </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">28</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.15</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.240</span></span></i> </td> <td style="text-align:right;">16 </td> <td style="text-align:right;">2<sup>4</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">16</span></span> C </td> <td><i>d</i> = 0 ... (16<i>n</i>) ... 240 </td> <td rowspan="3">Small <a href="/wiki/LAN" class="mw-redirect" title="LAN">LAN</a> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">27</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.31</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.224</span></span></i> </td> <td style="text-align:right;">32 </td> <td style="text-align:right;">2<sup>5</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">8</span></span> C </td> <td><i>d</i> = 0 ... (32<i>n</i>) ... 224 </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">26</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.63</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.192</span></span></i> </td> <td style="text-align:right;">64 </td> <td style="text-align:right;">2<sup>6</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">4</span></span> C </td> <td><i>d</i> = 0, 64, 128, 192 </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.d</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">25</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.127</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.128</span></span></i> </td> <td style="text-align:right;">128 </td> <td style="text-align:right;">2<sup>7</sup> </td> <td style="text-align:right;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1154941027"><span class="frac"><span class="num">1</span>⁄<span class="den">2</span></span> C </td> <td><i>d</i> = 0, 128 </td> <td rowspan="2">Large <a href="/wiki/LAN" class="mw-redirect" title="LAN">LAN</a> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.0</span></span></i> </td> <td style="text-align:right;">256 </td> <td style="text-align:right;">2<sup>8</sup> </td> <td style="text-align:right;">1 C </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">23</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.1.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.254.0</span></span></i> </td> <td style="text-align:right;">512 </td> <td style="text-align:right;">2<sup>9</sup> </td> <td style="text-align:right;">2 C </td> <td><i>c</i> = 0 ... (2<i>n</i>) ... 254 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">22</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.3.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.252.0</span></span></i> </td> <td style="text-align:right;">1,024 </td> <td style="text-align:right;">2<sup>10</sup> </td> <td style="text-align:right;">4 C </td> <td><i>c</i> = 0 ... (4<i>n</i>) ... 252 </td> <td>Small business </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">21</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.7.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.248.0</span></span></i> </td> <td style="text-align:right;">2,048 </td> <td style="text-align:right;">2<sup>11</sup> </td> <td style="text-align:right;">8 C </td> <td><i>c</i> = 0 ... (8<i>n</i>) ... 248 </td> <td rowspan="2">Small <a href="/wiki/ISP" class="mw-redirect" title="ISP">ISP</a>/ large business </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">20</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.15.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.240.0</span></span></i> </td> <td style="text-align:right;">4,096 </td> <td style="text-align:right;">2<sup>12</sup> </td> <td style="text-align:right;">16 C </td> <td><i>c</i> = 0 ... (16<i>n</i>) ... 240 </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">19</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.31.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.224.0</span></span></i> </td> <td style="text-align:right;">8,192 </td> <td style="text-align:right;">2<sup>13</sup> </td> <td style="text-align:right;">32 C </td> <td><i>c</i> = 0 ... (32<i>n</i>) ... 224 </td> <td rowspan="3"><a href="/wiki/ISP" class="mw-redirect" title="ISP">ISP</a>/ large business </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">18</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.63.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.192.0</span></span></i> </td> <td style="text-align:right;">16,384 </td> <td style="text-align:right;">2<sup>14</sup> </td> <td style="text-align:right;">64 C </td> <td><i>c</i> = 0, 64, 128, 192 </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.c.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">17</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.127.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.128.0</span></span></i> </td> <td style="text-align:right;">32,768 </td> <td style="text-align:right;">2<sup>15</sup> </td> <td style="text-align:right;">128 C </td> <td><i>c</i> = 0, 128 </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">16</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.0.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.255.0.0</span></span></i> </td> <td style="text-align:right;">65,536 </td> <td style="text-align:right;">2<sup>16</sup> </td> <td style="text-align:right;">256 C = B </td> <td> </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">15</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.1.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.254.0.0</span></span></i> </td> <td style="text-align:right;">131,072 </td> <td style="text-align:right;">2<sup>17</sup> </td> <td style="text-align:right;">2 B </td> <td><i>b</i> = 0 ... (2<i>n</i>) ... 254 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">14</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.3.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.252.0.0</span></span></i> </td> <td style="text-align:right;">262,144 </td> <td style="text-align:right;">2<sup>18</sup> </td> <td style="text-align:right;">4 B </td> <td><i>b</i> = 0 ... (4<i>n</i>) ... 252 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">13</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.7.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.248.0.0</span></span></i> </td> <td style="text-align:right;">524,288 </td> <td style="text-align:right;">2<sup>19</sup> </td> <td style="text-align:right;">8 B </td> <td><i>b</i> = 0 ... (8<i>n</i>) ... 248 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">12</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.15.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.240.0.0</span></span></i> </td> <td style="text-align:right;">1,048,576 </td> <td style="text-align:right;">2<sup>20</sup> </td> <td style="text-align:right;">16 B </td> <td><i>b</i> = 0 ... (16<i>n</i>) ... 240 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">11</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.31.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.224.0.0</span></span></i> </td> <td style="text-align:right;">2,097,152 </td> <td style="text-align:right;">2<sup>21</sup> </td> <td style="text-align:right;">32 B </td> <td><i>b</i> = 0 ... (32<i>n</i>) ... 224 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">10</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.63.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.192.0.0</span></span></i> </td> <td style="text-align:right;">4,194,304 </td> <td style="text-align:right;">2<sup>22</sup> </td> <td style="text-align:right;">64 B </td> <td><i>b</i> = 0, 64, 128, 192 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.b.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">9</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.127.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.128.0.0</span></span></i> </td> <td style="text-align:right;">8,388,608 </td> <td style="text-align:right;">2<sup>23</sup> </td> <td style="text-align:right;">128 B </td> <td><i>b</i> = 0, 128 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">8</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">0.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">255.0.0.0</span></span></i> </td> <td style="text-align:right;">16,777,216 </td> <td style="text-align:right;">2<sup>24</sup> </td> <td style="text-align:right;">256 B = A </td> <td> </td> <td>Largest <a href="/wiki/IANA" class="mw-redirect" title="IANA">IANA</a> block allocation </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">7</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">1.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">254.0.0.0</span></span></i> </td> <td style="text-align:right;">33,554,432 </td> <td style="text-align:right;">2<sup>25</sup> </td> <td style="text-align:right;">2 A </td> <td><i>a</i> = 0 ... (2<i>n</i>) ... 254 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">6</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">3.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">252.0.0.0</span></span></i> </td> <td style="text-align:right;">67,108,864 </td> <td style="text-align:right;">2<sup>26</sup> </td> <td style="text-align:right;">4 A </td> <td><i>a</i> = 0 ... (4<i>n</i>) ... 252 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">5</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">7.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">248.0.0.0</span></span></i> </td> <td style="text-align:right;">134,217,728 </td> <td style="text-align:right;">2<sup>27</sup> </td> <td style="text-align:right;">8 A </td> <td><i>a</i> = 0 ... (8<i>n</i>) ... 248 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">4</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">15.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">240.0.0.0</span></span></i> </td> <td style="text-align:right;">268,435,456 </td> <td style="text-align:right;">2<sup>28</sup> </td> <td style="text-align:right;">16 A </td> <td><i>a</i> = 0 ... (16<i>n</i>) ... 240 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">3</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">31.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">224.0.0.0</span></span></i> </td> <td style="text-align:right;">536,870,912 </td> <td style="text-align:right;">2<sup>29</sup> </td> <td style="text-align:right;">32 A </td> <td><i>a</i> = 0 ... (32<i>n</i>) ... 224 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">2</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">63.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">192.0.0.0</span></span></i> </td> <td style="text-align:right;">1,073,741,824 </td> <td style="text-align:right;">2<sup>30</sup> </td> <td style="text-align:right;">64 A </td> <td><i>a</i> = 0, 64, 128, 192 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">a.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">1</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">127.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">128.0.0.0</span></span></i> </td> <td style="text-align:right;">2,147,483,648 </td> <td style="text-align:right;">2<sup>31</sup> </td> <td style="text-align:right;">128 A </td> <td><i>a</i> = 0, 128 </td> <td> </td></tr> <tr> <td><i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.0</span><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">0</span></span></i> </td> <td>+<i><span class="ipaddr"><span style="padding-right: 1px;">255.255.255.255</span></span></i> </td> <td><i><span class="ipaddr"><span style="padding-right: 1px;">0.0.0.0</span></span></i> </td> <td style="text-align:right;">4,294,967,296 </td> <td style="text-align:right;">2<sup>32</sup> </td> <td style="text-align:right;">256 A </td> <td> </td> <td>Entire IPv4 Internet, <a href="/wiki/Default_route" title="Default route">default route</a>. </td></tr></tbody></table> <p>In common usage, the first address in a subnet, all binary zero in the host identifier, is reserved for referring to the network itself, while the last address, all binary one in the host identifier, is used as a <a href="/wiki/Broadcast_address" title="Broadcast address">broadcast address</a> for the network; this reduces the number of addresses available for hosts by 2. As a result, a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">31</span></span></i> network, with one binary digit in the host identifier, would be unusable, as such a subnet would provide no available host addresses after this reduction. <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc3021">3021</a> creates an exception to the "host all ones" and "host all zeros" rules to make <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">31</span></span></i> networks usable for point-to-point links. <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">32</span></span></i> addresses (single-host network) must be accessed by explicit routing rules, as there is no room in such a network for a gateway. </p><p>In routed subnets larger than <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">31</span></span></i> or <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">32</span></span></i>, the number of available host addresses is usually reduced by two, namely the largest address, which is reserved as the broadcast address, and the smallest address, which identifies the network itself.<sup id="cite_ref-RFC_922_15-0" class="reference"><a href="#cite_note-RFC_922-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-RFC_1812_16-0" class="reference"><a href="#cite_note-RFC_1812-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="IPv6_CIDR_blocks">IPv6 CIDR blocks</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=7" title="Edit section: IPv6 CIDR blocks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable" style="text-align: center; margin-left: auto; margin-right: auto; border: none;"> <caption>IPv6 CIDR prefixes </caption> <tbody><tr> <th rowspan="2">Prefix size</th> <th colspan="3">Number of equivalent subnets</th> <th rowspan="2">Interface ID bits </th></tr> <tr> <th>/48</th> <th>/56</th> <th>/64 </th></tr> <tr> <td>/24</td> <td>16M</td> <td>4G</td> <td>1T</td> <td>104 </td></tr> <tr> <td>/25</td> <td>8M</td> <td>2G</td> <td>512G</td> <td>103 </td></tr> <tr> <td>/26</td> <td>4M</td> <td>1G</td> <td>256G</td> <td>102 </td></tr> <tr> <td>/27</td> <td>2M</td> <td>512M</td> <td>128G</td> <td>101 </td></tr> <tr> <td>/28</td> <td>1M</td> <td>256M</td> <td>64G</td> <td>100 </td></tr> <tr> <td>/29</td> <td>512K</td> <td>128M</td> <td>32G</td> <td>99 </td></tr> <tr> <td>/30</td> <td>256K</td> <td>64M</td> <td>16G</td> <td>98 </td></tr> <tr> <td>/31</td> <td>128K</td> <td>32M</td> <td>8G</td> <td>97 </td></tr> <tr> <td>/32</td> <td>64K</td> <td>16M</td> <td>4G</td> <td>96 </td></tr> <tr> <td>/33</td> <td>32K</td> <td>8M</td> <td>2G</td> <td>95 </td></tr> <tr> <td>/34</td> <td>16K</td> <td>4M</td> <td>1G</td> <td>94 </td></tr> <tr> <td>/35</td> <td>8K</td> <td>2M</td> <td>512M</td> <td>93 </td></tr> <tr> <td>/36</td> <td>4K</td> <td>1M</td> <td>256M</td> <td>92 </td></tr> <tr> <td>/37</td> <td>2K</td> <td>512K</td> <td>128M</td> <td>91 </td></tr> <tr> <td>/38</td> <td>1K</td> <td>256K</td> <td>64M</td> <td>90 </td></tr> <tr> <td>/39</td> <td>512</td> <td>128K</td> <td>32M</td> <td>89 </td></tr> <tr> <td>/40</td> <td>256</td> <td>64K</td> <td>16M</td> <td>88 </td></tr> <tr> <td>/41</td> <td>128</td> <td>32K</td> <td>8M</td> <td>87 </td></tr> <tr> <td>/42</td> <td>64</td> <td>16K</td> <td>4M</td> <td>86 </td></tr> <tr> <td>/43</td> <td>32</td> <td>8K</td> <td>2M</td> <td>85 </td></tr> <tr> <td>/44</td> <td>16</td> <td>4K</td> <td>1M</td> <td>84 </td></tr> <tr> <td>/45</td> <td>8</td> <td>2K</td> <td>512K</td> <td>83 </td></tr> <tr> <td>/46</td> <td>4</td> <td>1K</td> <td>256K</td> <td>82 </td></tr> <tr> <td>/47</td> <td>2</td> <td>512</td> <td>128K</td> <td>81 </td></tr> <tr> <td>/48</td> <td>1</td> <td>256</td> <td>64K</td> <td>80 </td></tr> <tr> <td>/49</td> <td></td> <td>128</td> <td>32K</td> <td>79 </td></tr> <tr> <td>/50</td> <td></td> <td>64</td> <td>16K</td> <td>78 </td></tr> <tr> <td>/51</td> <td></td> <td>32</td> <td>8K</td> <td>77 </td></tr> <tr> <td>/52</td> <td></td> <td>16</td> <td>4K</td> <td>76 </td></tr> <tr> <td>/53</td> <td></td> <td>8</td> <td>2K</td> <td>75 </td></tr> <tr> <td>/54</td> <td></td> <td>4</td> <td>1K</td> <td>74 </td></tr> <tr> <td>/55</td> <td></td> <td>2</td> <td>512</td> <td>73 </td></tr> <tr> <td>/56</td> <td></td> <td>1</td> <td>256</td> <td>72 </td></tr> <tr> <td>/57</td> <td></td> <td></td> <td>128</td> <td>71 </td></tr> <tr> <td>/58</td> <td></td> <td></td> <td>64</td> <td>70 </td></tr> <tr> <td>/59</td> <td></td> <td></td> <td>32</td> <td>69 </td></tr> <tr> <td>/60</td> <td></td> <td></td> <td>16</td> <td>68 </td></tr> <tr> <td>/61</td> <td></td> <td></td> <td>8</td> <td>67 </td></tr> <tr> <td>/62</td> <td></td> <td></td> <td>4</td> <td>66 </td></tr> <tr> <td>/63</td> <td></td> <td></td> <td>2</td> <td>65 </td></tr> <tr> <td>/64</td> <td></td> <td></td> <td>1</td> <td>64 </td></tr> <tr> <td colspan="5"><b>K</b> = 1,024 </td></tr> <tr> <td colspan="5"><b>M</b> = 1,048,576 </td></tr> <tr> <td colspan="5"><b>G</b> = 1,073,741,824 </td></tr> <tr> <td colspan="5"><b>T</b> = 1,099,511,627,776 </td></tr></tbody></table> <p>The large address size of IPv6 permitted worldwide route summarization and guaranteed sufficient address pools at each site. The standard subnet size for IPv6 networks is a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">64</span></span></i> block, which is required for the operation of <a href="/wiki/IPv6_stateless_address_autoconfiguration" class="mw-redirect" title="IPv6 stateless address autoconfiguration">stateless address autoconfiguration</a>.<sup id="cite_ref-RFC_4862_17-0" class="reference"><a href="#cite_note-RFC_4862-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup> At first, the IETF recommended in <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc3177">3177</a> as a best practice that all end sites receive a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">48</span></span></i> address allocation,<sup id="cite_ref-RFC_3177_18-0" class="reference"><a href="#cite_note-RFC_3177-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> but criticism and reevaluation of actual needs and practices has led to more flexible allocation recommendations in <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc6177">6177</a><sup id="cite_ref-RFC_6177_19-0" class="reference"><a href="#cite_note-RFC_6177-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> suggesting a significantly smaller allocation for some sites, such as a <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">56</span></span></i> block for residential networks. </p><p>This <b>IPv6 subnetting reference</b> lists the sizes for IPv6 <a href="/wiki/Subnetwork" class="mw-redirect" title="Subnetwork">subnetworks</a>. Different types of network links may require different subnet sizes.<sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup> The subnet mask separates the bits of the network identifier prefix from the bits of the interface identifier. Selecting a smaller prefix size results in fewer number of networks covered, but with more addresses within each network.<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> </p> <pre>2001:0db8:0123:4567:89ab:cdef:1234:5678 |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||128 Single end-points and <a href="/wiki/Loopback" title="Loopback">loopback</a> |||| |||| |||| |||| |||| |||| |||| |||127 Point-to-point links (inter-router) |||| |||| |||| |||| |||| |||| |||| ||124 |||| |||| |||| |||| |||| |||| |||| |120 |||| |||| |||| |||| |||| |||| |||| 116 |||| |||| |||| |||| |||| |||| |||112 |||| |||| |||| |||| |||| |||| ||108 |||| |||| |||| |||| |||| |||| |104 |||| |||| |||| |||| |||| |||| 100 |||| |||| |||| |||| |||| |||96 |||| |||| |||| |||| |||| ||92 |||| |||| |||| |||| |||| |88 |||| |||| |||| |||| |||| 84 |||| |||| |||| |||| |||80 |||| |||| |||| |||| ||76 |||| |||| |||| |||| |72 |||| |||| |||| |||| 68 |||| |||| |||| |||64 Single LAN; default prefix size for <a href="/wiki/IPv6#Stateless_address_autoconfiguration_(SLAAC)" title="IPv6">SLAAC</a> |||| |||| |||| ||60 Some (very limited) <a href="/wiki/6rd" class="mw-redirect" title="6rd">6rd</a> deployments (/60 = 16 /64 blocks) |||| |||| |||| |56 Minimal end sites assignment;<sup id="cite_ref-RFC_6177_19-1" class="reference"><a href="#cite_note-RFC_6177-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> e.g. <a href="/wiki/Home_network" title="Home network">home network</a> (/56 = 256 /64 blocks) |||| |||| |||| 52 /52 block = 4096 /64 blocks |||| |||| |||48 Typical assignment for larger sites (/48 = 65536 /64 blocks) |||| |||| ||44 |||| |||| |40 |||| |||| 36 possible future <a href="/wiki/Local_Internet_registry" class="mw-redirect" title="Local Internet registry">local Internet registry</a> (LIR) extra-small allocations |||| |||32 LIR minimum allocations |||| ||28 LIR medium allocations |||| |24 LIR large allocations |||| 20 LIR extra large allocations |||16 ||12 <a href="/wiki/Regional_Internet_registry" title="Regional Internet registry">Regional Internet registry</a> (RIR) allocations from IANA<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> |8 4 </pre> <div class="mw-heading mw-heading2"><h2 id="Numerical_interpretation">Numerical interpretation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=8" title="Edit section: Numerical interpretation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Topologically, the set of subnets described by CIDR represent a <a href="/wiki/Cover_(topology)" title="Cover (topology)">cover</a> of the corresponding address space. The interval described by the notation <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle X/n}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>X</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>/</mo> </mrow> <mi>n</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle X/n}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/9621ac5e67b2a08f340f537aca5fc9e67c7ed13d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.537ex; height:2.843ex;" alt="{\displaystyle X/n}"></span> numerically corresponds to addresses of the form (for IPv4) <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle [x\cdot 2^{32-n},x\cdot 2^{32-n}+2^{32-n}-1]}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mo stretchy="false">[</mo> <mi>x</mi> <mo>⋅<!-- ⋅ --></mo> <msup> <mn>2</mn> <mrow class="MJX-TeXAtom-ORD"> <mn>32</mn> <mo>−<!-- − --></mo> <mi>n</mi> </mrow> </msup> <mo>,</mo> <mi>x</mi> <mo>⋅<!-- ⋅ --></mo> <msup> <mn>2</mn> <mrow class="MJX-TeXAtom-ORD"> <mn>32</mn> <mo>−<!-- − --></mo> <mi>n</mi> </mrow> </msup> <mo>+</mo> <msup> <mn>2</mn> <mrow class="MJX-TeXAtom-ORD"> <mn>32</mn> <mo>−<!-- − --></mo> <mi>n</mi> </mrow> </msup> <mo>−<!-- − --></mo> <mn>1</mn> <mo stretchy="false">]</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle [x\cdot 2^{32-n},x\cdot 2^{32-n}+2^{32-n}-1]}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/c3dfe784525655b1aab39369f3e9e87548965aff" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:31.099ex; height:3.176ex;" alt="{\displaystyle [x\cdot 2^{32-n},x\cdot 2^{32-n}+2^{32-n}-1]}"></span>, where <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle X=x\cdot 2^{32-n}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>X</mi> <mo>=</mo> <mi>x</mi> <mo>⋅<!-- ⋅ --></mo> <msup> <mn>2</mn> <mrow class="MJX-TeXAtom-ORD"> <mn>32</mn> <mo>−<!-- − --></mo> <mi>n</mi> </mrow> </msup> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle X=x\cdot 2^{32-n}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/95decca0ed16bf12808f9947163f99e2008dde83" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:13.391ex; height:2.676ex;" alt="{\displaystyle X=x\cdot 2^{32-n}}"></span> has the lower <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>n</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle n}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a601995d55609f2d9f5e233e36fbe9ea26011b3b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}"></span> bits set to 0. (For IPv6, substitute 128.) For a fixed <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>n</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle n}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a601995d55609f2d9f5e233e36fbe9ea26011b3b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}"></span>, the set of all <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle X/n}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>X</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>/</mo> </mrow> <mi>n</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle X/n}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/9621ac5e67b2a08f340f537aca5fc9e67c7ed13d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.537ex; height:2.843ex;" alt="{\displaystyle X/n}"></span> subnets constitute a <a href="/wiki/Partition_of_a_set" title="Partition of a set">partition</a>, that is a cover of non-overlapping sets. Increasing <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>n</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle n}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a601995d55609f2d9f5e233e36fbe9ea26011b3b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}"></span> yields finer and finer subpartitions. Thus two subnets <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle X/n}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>X</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>/</mo> </mrow> <mi>n</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle X/n}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/9621ac5e67b2a08f340f537aca5fc9e67c7ed13d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.537ex; height:2.843ex;" alt="{\displaystyle X/n}"></span> and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle Y/m}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>Y</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>/</mo> </mrow> <mi>m</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle Y/m}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/c2d5beab4f12c3090fed631387008a3d24af5b4e" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.976ex; height:2.843ex;" alt="{\displaystyle Y/m}"></span> are either disjoint or one is a subnet of the other. </p> <div class="mw-heading mw-heading2"><h2 id="Prefix_aggregation">Prefix aggregation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=9" title="Edit section: Prefix aggregation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>CIDR provides fine-grained <a href="/wiki/Routing_prefix_aggregation" class="mw-redirect" title="Routing prefix aggregation">routing prefix aggregation</a>. For example, if the first 20 bits of their network prefixes match, sixteen contiguous <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">24</span></span></i> networks can be aggregated and advertised to a larger network as a single <i><span class="ipaddr"><span style="padding-right: 1px;">/</span><span style="padding-right: 1px;">20</span></span></i> <a href="/wiki/Routing_table" title="Routing table">routing table</a> entry. This reduces the number of routes that have to be advertised. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=10" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Internet_protocol_suite" title="Internet protocol suite">Internet protocol suite</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=11" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-RFC_1518-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-RFC_1518_1-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFY._RekhterT._Li1993" class="citation cs1">Y. Rekhter; T. Li (September 1993). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1518"><i>An Architecture for IP Address Allocation with CIDR</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC1518">10.17487/RFC1518</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1518">1518</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=An+Architecture+for+IP+Address+Allocation+with+CIDR&rft.date=1993-09&rft_id=info%3Adoi%2F10.17487%2FRFC1518&rft.au=Y.+Rekhter&rft.au=T.+Li&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc1518&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_1519-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-RFC_1519_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-RFC_1519_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFV._FullerT._LiJ._YuK._Varadhan1993" class="citation cs1">V. Fuller; T. Li; J. Yu; K. Varadhan (September 1993). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1519"><i>Classless Inter-Domain Routing (CIDR): an Address Assignment and Aggregation Strategy</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC1519">10.17487/RFC1519</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1519">1519</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Classless+Inter-Domain+Routing+%28CIDR%29%3A+an+Address+Assignment+and+Aggregation+Strategy&rft.date=1993-09&rft_id=info%3Adoi%2F10.17487%2FRFC1519&rft.au=V.+Fuller&rft.au=T.+Li&rft.au=J.+Yu&rft.au=K.+Varadhan&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc1519&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-rfc943-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-rfc943_3-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJ._ReynoldsJ._Postel1985" class="citation cs1">J. Reynolds; J. Postel, eds. (April 1985). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc943"><i>Assigned Numbers</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC0943">10.17487/RFC0943</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc943">943</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Assigned+Numbers&rft.date=1985-04&rft_id=info%3Adoi%2F10.17487%2FRFC0943&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc943&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_1517-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-RFC_1517_4-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFR._Hinden1993" class="citation cs1">R. Hinden, ed. (September 1993). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1517"><i>Applicability Statement for the Implementation of Classless Inter-Domain Routing (CIDR)</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC1517">10.17487/RFC1517</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1517">1517</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Applicability+Statement+for+the+Implementation+of+Classless+Inter-Domain+Routing+%28CIDR%29&rft.date=1993-09&rft_id=info%3Adoi%2F10.17487%2FRFC1517&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc1517&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_4632-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-RFC_4632_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-RFC_4632_5-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFV._FullerT._Li2006" class="citation cs1">V. Fuller; T. Li (August 2006). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc4632"><i>Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC4632">10.17487/RFC4632</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc4632">4632</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Classless+Inter-domain+Routing+%28CIDR%29%3A+The+Internet+Address+Assignment+and+Aggregation+Plan&rft.date=2006-08&rft_id=info%3Adoi%2F10.17487%2FRFC4632&rft.au=V.+Fuller&rft.au=T.+Li&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc4632&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_950_2.1-6"><span class="mw-cite-backlink">^ <a href="#cite_ref-RFC_950_2.1_6-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-RFC_950_2.1_6-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJ._MogulJ._Postel1985" class="citation cs1">J. Mogul; J. Postel, eds. (August 1985). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc950#section-2.1"><i>Internet Standard Subnetting Procedure</i></a>. sec. 2.1. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC0950">10.17487/RFC0950</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc950">950</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Internet+Standard+Subnetting+Procedure&rft.pages=sec.-2.1&rft.date=1985-08&rft_id=info%3Adoi%2F10.17487%2FRFC0950&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc950%26%23035%3Bsection-2.1&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text">Carl-Herbert Rokitansky, "Internet Cluster Addressing Scheme and its Application to Public Data Networks", Proc. 9th International Conference on Computer Communication (ICCC' 88), pp. 482–491, Tel Aviv, Israel, October/November 1988</span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://www.ietf.org/mail-archive/web/ietf/current/msg24136.html">Cluster Addressing and CIDR</a> in the mail archives of the IETF</span> </li> <li id="cite_note-kantor-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-kantor_9-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBrian_Kantor2018" class="citation web cs1">Brian Kantor (December 2018). <a rel="nofollow" class="external text" href="https://seclists.org/nanog/2018/Dec/334">"Re: Stupid Question maybe?"</a>. North American Network Operators Group. <q>/24 is certainly cleaner than 255.255.255.0. I seem to remember it was Phil Karn who in the early 80's suggested that expressing subnet masks as the number of bits from the top end of the address word was efficient, since subnet masks were always a series of ones followd by zeros with no interspersing, which was incorporated (or independently invented) about a decade later as CIDR a.b.c.d/n notation in RFC1519.</q></cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Re%3A+Stupid+Question+maybe%3F&rft.pub=North+American+Network+Operators+Group&rft.date=2018-12&rft.au=Brian+Kantor&rft_id=https%3A%2F%2Fseclists.org%2Fnanog%2F2018%2FDec%2F334&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-simpson-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-simpson_10-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFWilliam_Simpson2018" class="citation web cs1">William Simpson (December 2018). <a rel="nofollow" class="external text" href="https://seclists.org/nanog/2018/Dec/368">"Re: Stupid Question maybe?"</a>. North American Network Operators Group. <q>Actually, Brian is correct. Phil was w-a-y ahead of the times. But I don't remember him talking about it until the late '80s.</q></cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Re%3A+Stupid+Question+maybe%3F&rft.pub=North+American+Network+Operators+Group&rft.date=2018-12&rft.au=William+Simpson&rft_id=https%3A%2F%2Fseclists.org%2Fnanog%2F2018%2FDec%2F368&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFT._PummillB._Manning1995" class="citation cs1">T. Pummill; B. Manning (December 1995). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1878"><i>Variable Length Subnet Table For IPv4</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC1878">10.17487/RFC1878</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1878">1878</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Variable+Length+Subnet+Table+For+IPv4&rft.date=1995-12&rft_id=info%3Adoi%2F10.17487%2FRFC1878&rft.au=T.+Pummill&rft.au=B.+Manning&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc1878&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFS._WilliamsonM._KostersD._BlackaJ._Singh1997" class="citation cs1">S. Williamson; M. Kosters; D. Blacka; J. Singh; K. Zeilstra (June 1997). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc2167"><i>Referral Whois (RWhois) Protocol V1.5</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC2167">10.17487/RFC2167</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc2167">2167</a>. <q>IP networks are also lexically hierarchical labels using the Classless Inter-Domain Routing (CIDR) notation, but their hierarchy is not easily determined with simple text manipulation; for example, 198.41.0.0/22 is a part of 198.41.0.0/16, which is a part of 198.40.0.0/15.</q></cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Referral+Whois+%28RWhois%29+Protocol+V1.5&rft.date=1997-06&rft_id=info%3Adoi%2F10.17487%2FRFC2167&rft.au=S.+Williamson&rft.au=M.+Kosters&rft.au=D.+Blacka&rft.au=J.+Singh&rft.au=K.+Zeilstra&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc2167&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFCarpenterJiang2014" class="citation cs1">Carpenter, B.; Jiang, S. (February 2014). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc7136"><i>Significance of IPv6 Interface Identifiers</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC7136">10.17487/RFC7136</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc7136">7136</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Significance+of+IPv6+Interface+Identifiers&rft.date=2014-02&rft_id=info%3Adoi%2F10.17487%2FRFC7136&rft.aulast=Carpenter&rft.aufirst=B.&rft.au=Jiang%2C+S.&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc7136&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKohnoNitzanBushMatsuzaki2011" class="citation cs1">Kohno, M.; Nitzan, B.; Bush, R.; Matsuzaki, Y.; Colitti, L.; Narten, T. (April 2011). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc6164"><i>Using 127-Bit IPv6 Prefixes on Inter-Router Links</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC6164">10.17487/RFC6164</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc6164">6164</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Using+127-Bit+IPv6+Prefixes+on+Inter-Router+Links&rft.date=2011-04&rft_id=info%3Adoi%2F10.17487%2FRFC6164&rft.aulast=Kohno&rft.aufirst=M.&rft.au=Nitzan%2C+B.&rft.au=Bush%2C+R.&rft.au=Matsuzaki%2C+Y.&rft.au=Colitti%2C+L.&rft.au=Narten%2C+T.&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc6164&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_922-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-RFC_922_15-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJ._Mogul1984" class="citation cs1">J. Mogul, ed. (October 1984). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc922#section-7"><i>Broadcasting Internet Datagrams in the Presence of Subnets</i></a>. sec. 7. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC0922">10.17487/RFC0922</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc922">922</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Broadcasting+Internet+Datagrams+in+the+Presence+of+Subnets&rft.pages=sec.-7&rft.date=1984-10&rft_id=info%3Adoi%2F10.17487%2FRFC0922&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc922%26%23035%3Bsection-7&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_1812-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-RFC_1812_16-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFF._Baker1995" class="citation cs1">F. Baker, ed. (June 1995). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1812#section-4.2.3.1"><i>Requirements for IP Version 4 Routers</i></a>. sec. 4.2.3.1. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC1812">10.17487/RFC1812</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1812">1812</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Requirements+for+IP+Version+4+Routers&rft.pages=sec.-4.2.3.1&rft.date=1995-06&rft_id=info%3Adoi%2F10.17487%2FRFC1812&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc1812%26%23035%3Bsection-4.2.3.1&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_4862-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-RFC_4862_17-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc4862">4862</a></span> </li> <li id="cite_note-RFC_3177-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-RFC_3177_18-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation cs1"><a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc3177"><i>IAB/IESG Recommendation on IPv6 Address Allocations to Sites</i></a>. IAB/IESG. September 2001. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC3177">10.17487/RFC3177</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc3177">3177</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=IAB%2FIESG+Recommendation+on+IPv6+Address+Allocations+to+Sites&rft.pub=IAB%2FIESG&rft.date=2001-09&rft_id=info%3Adoi%2F10.17487%2FRFC3177&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc3177&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-RFC_6177-19"><span class="mw-cite-backlink">^ <a href="#cite_ref-RFC_6177_19-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-RFC_6177_19-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFT._NartenG._HustonL._Roberts2011" class="citation cs1">T. Narten; G. Huston; L. Roberts (March 2011). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc6177"><i>IPv6 Address Assignment to End Sites</i></a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC6177">10.17487/RFC6177</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc6177">6177</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=IPv6+Address+Assignment+to+End+Sites&rft.date=2011-03&rft_id=info%3Adoi%2F10.17487%2FRFC6177&rft.au=T.+Narten&rft.au=G.+Huston&rft.au=L.+Roberts&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc6177&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.getipv6.info/index.php/IPv6_Addressing_Plans">"ARIN IPv6 Addressing Plans"</a>. Getipv6.info. 2016-03-25<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-03-12</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=ARIN+IPv6+Addressing+Plans&rft.pub=Getipv6.info&rft.date=2016-03-25&rft_id=http%3A%2F%2Fwww.getipv6.info%2Findex.php%2FIPv6_Addressing_Plans&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20110203130851/http://ripe.net/info/info-services/addressing.html">"RIPE IP Allocation Rates"</a>. Archived from <a rel="nofollow" class="external text" href="https://www.ripe.net/info/info-services/addressing.html">the original</a> on 2011-02-03.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=RIPE+IP+Allocation+Rates&rft_id=https%3A%2F%2Fwww.ripe.net%2Finfo%2Finfo-services%2Faddressing.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.xml">"IANA IPv6 unicast address assignments"</a>. Iana.org<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-03-12</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=IANA+IPv6+unicast+address+assignments&rft.pub=Iana.org&rft_id=https%3A%2F%2Fwww.iana.org%2Fassignments%2Fipv6-unicast-address-assignments%2Fipv6-unicast-address-assignments.xml&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=12" title="Edit section: Further reading"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation cs1"><a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc2317"><i>Classless IN-ADDR.ARPA delegation</i></a>. March 1998. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC2317">10.17487/RFC2317</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc2317">2317</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Classless+IN-ADDR.ARPA+delegation&rft.date=1998-03&rft_id=info%3Adoi%2F10.17487%2FRFC2317&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc2317&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation cs1"><a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1817"><i>CIDR and Classful Routing</i></a>. August 1995. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC1817">10.17487/RFC1817</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc1817">1817</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=CIDR+and+Classful+Routing&rft.date=1995-08&rft_id=info%3Adoi%2F10.17487%2FRFC1817&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc1817&rfr_id=info%3Asid%2Fen.wikipedia.org%3AClassless+Inter-Domain+Routing" class="Z3988"></span></li></ul> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Classless_Inter-Domain_Routing&action=edit&section=13" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="https://www.cidr-report.org/as2.0/">CIDR Report</a> (updated daily)</li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.canary‐84779d6bf6‐mcz5d Cached time: 20241122140541 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.577 seconds Real time usage: 0.757 seconds Preprocessor visited node count: 12672/1000000 Post‐expand include size: 171741/2097152 bytes Template argument size: 7734/2097152 bytes Highest expansion depth: 18/100 Expensive parser function count: 3/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 104694/5000000 bytes Lua time usage: 0.239/10.000 seconds Lua memory usage: 7380199/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 589.449 1 -total 40.33% 237.752 1 Template:Reflist 30.59% 180.294 14 Template:Cite_IETF 11.88% 70.023 1 Template:Short_description 10.25% 60.411 11 Template:IETF_RFC 9.76% 57.549 142 Template:IPaddr 9.71% 57.212 11 Template:Catalog_lookup_link 7.35% 43.338 2 Template:Pagetype 6.67% 39.318 1 Template:Redirect 5.30% 31.213 1 Template:IPAc-en --> <!-- Saved in parser cache with key enwiki:pcache:idhash:38404-0!canonical and timestamp 20241122140541 and revision id 1256755405. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Classless_Inter-Domain_Routing&oldid=1256755405">https://en.wikipedia.org/w/index.php?title=Classless_Inter-Domain_Routing&oldid=1256755405</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Internet_Standards" title="Category:Internet Standards">Internet Standards</a></li><li><a href="/wiki/Category:Internet_architecture" title="Category:Internet architecture">Internet architecture</a></li><li><a href="/wiki/Category:IP_addresses" title="Category:IP addresses">IP addresses</a></li><li><a href="/wiki/Category:Routing" title="Category:Routing">Routing</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 11 November 2024, at 11:57<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Classless_Inter-Domain_Routing&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-67nx9","wgBackendResponseTime":155,"wgPageParseReport":{"limitreport":{"cputime":"0.577","walltime":"0.757","ppvisitednodes":{"value":12672,"limit":1000000},"postexpandincludesize":{"value":171741,"limit":2097152},"templateargumentsize":{"value":7734,"limit":2097152},"expansiondepth":{"value":18,"limit":100},"expensivefunctioncount":{"value":3,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":104694,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 589.449 1 -total"," 40.33% 237.752 1 Template:Reflist"," 30.59% 180.294 14 Template:Cite_IETF"," 11.88% 70.023 1 Template:Short_description"," 10.25% 60.411 11 Template:IETF_RFC"," 9.76% 57.549 142 Template:IPaddr"," 9.71% 57.212 11 Template:Catalog_lookup_link"," 7.35% 43.338 2 Template:Pagetype"," 6.67% 39.318 1 Template:Redirect"," 5.30% 31.213 1 Template:IPAc-en"]},"scribunto":{"limitreport-timeusage":{"value":"0.239","limit":"10.000"},"limitreport-memusage":{"value":7380199,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.canary-84779d6bf6-mcz5d","timestamp":"20241122140541","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Classless Inter-Domain Routing","url":"https:\/\/en.wikipedia.org\/wiki\/Classless_Inter-Domain_Routing","sameAs":"http:\/\/www.wikidata.org\/entity\/Q646589","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q646589","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2001-09-25T10:41:28Z","dateModified":"2024-11-11T11:57:45Z","headline":"method for IP address allocation and routing"}</script> </body> </html>