{"id":312,"date":"2018-03-09T08:44:56","date_gmt":"2018-03-09T08:44:56","guid":{"rendered":"http:\/\/www.certexams.com\/Blog\/?p=312"},"modified":"2018-03-09T09:00:56","modified_gmt":"2018-03-09T09:00:56","slug":"ipv6-subnetting","status":"publish","type":"post","link":"https:\/\/www.certexams.com\/Blog\/2018\/03\/09\/ipv6-subnetting\/","title":{"rendered":"IPv6 Subnetting"},"content":{"rendered":"<p>An <strong>IPv6 address<\/strong> consists of <strong>128 bits<\/strong> and includes bits to be used for subnetting.\u00a0 The first half of the subnet (64 bits) consists of routing prefix (48 bits) and subnet ID (16 bits) and the second half of the address (64 bits) is used for hosts only. This is in contrast with the IPv4 network, wherein the host bits are borrowed to divide the network into subnets. In IPv6, the least significan 64 bits are always used for representing hosts. 16 bits are separately identified for subnetworks.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-313 size-full\" src=\"https:\/\/www.certexams.com\/Blog\/wp-content\/uploads\/2018\/03\/ipv6-subnet.jpg\" alt=\"\" width=\"547\" height=\"67\" srcset=\"https:\/\/www.certexams.com\/Blog\/wp-content\/uploads\/2018\/03\/ipv6-subnet.jpg 547w, https:\/\/www.certexams.com\/Blog\/wp-content\/uploads\/2018\/03\/ipv6-subnet-300x37.jpg 300w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/p>\n<p>\/48 prefix is\u00a0 allocated to an organization which can offer up to \/64 subnet prefixes, equivalent to 65535 sub-networks, each having 2<sup>64<\/sup> hosts. A \/64 prefix can be assigned to a point-to-point connection where there are only two hosts (or IPv6 enabled devices) on a link. Typical allowcation of IPv6 addresses is given below:<\/p>\n<p>IPv6 CIDR Subnet \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 Number of IPs<\/p>\n<p>Residential \u2013 \/64 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 18,446,744,073,709,551,616<br \/>\nBusiness \u2013 \u00a0\u00a0 \/48\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1,208,925,819,614,629,174,706,176<br \/>\nISP \u2013 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/32\u00a0\u00a0 79,228,162,514,264,337,593,543,950,336<\/p>\n<p>As you may see from the above table, residential user is allocated \/64 prefix address, business user may be allocated \/48 address, and ISPs will have \/32 address prefix, I&#8217;m not sure if there is any term to describe the numbers;<\/p>\n<h3>An example of\u00a0 IPv6 address subnetting:<\/h3>\n<p>Assume that an ISP has provided a 48-bit prefix to the user. Consider the address and prefix<br \/>\n2001:0867:5208\/48 for instance. Because each four hexadecimal digits are 16 bits, and the last 64 bits are usually the interface identifier (the \u201chost\u201d portion of the address in IPv4), this leaves 16 bits for subnetting. Assume the subnet bits, assigned locally, for a certain subnet are 72cd.<br \/>\nThis subnet would allow addresses in the range:<\/p>\n<p>2001:0867:530972cd:0000:0000:0000:0001 to 2001:0867:530972cd:ffff:ffff:ffff:ffff<\/p>\n<p>So, when subnetted, an IPv6 address consists of three parts:<\/p>\n<ul>\n<li>\u0084\u0084 The global routing prefix (2001:0867:5309\/48 in this example)<\/li>\n<li>\u0084\u0084 The subnet identifier (9abc in this example)<\/li>\n<li>\u0084\u0084 The interface identifier or \u201chost address\u201d (the remaining 64 bits in this example)<\/li>\n<\/ul>\n<p>By comparison with IPv4, subnetting IPv6 is very similar, except that IPb6 allocates 16 bits for subnets, and all 64 bits are allocated to host portion. The 16-bit <strong>Subnet ID<\/strong> field provides as many as 65,536 subnets in a flat subnet structure.<\/p>\n<p>IPv6 has three types of addresses, which can be categorized by type and scope:<\/p>\n<ul>\n<li class=\"unordered\"><strong>Unicast addresses.<\/strong> A packet is delivered to one interface.<\/li>\n<li class=\"unordered\"><strong>Multicast addresses.<\/strong> A packet is delivered to multiple interfaces.<\/li>\n<li class=\"unordered\"><strong>Anycast addresses.<\/strong> A packet is delivered to the nearest of multiple interfaces (in terms of routing distance).<\/li>\n<\/ul>\n<p>IPv6 does not use broadcast messages.<\/p>\n<p>Unicast and anycast addresses in IPv6 have the following scopes (for multicast addresses, the scope is built into the address structure):<\/p>\n<ul>\n<li class=\"unordered\"><strong>Link-local.<\/strong> The scope is the local link (nodes on the same subnet).<\/li>\n<li class=\"unordered\"><strong>Site-local.<\/strong> The scope is the organization (private site addressing).<\/li>\n<li class=\"unordered\"><strong>Global.<\/strong> The scope is global (IPv6 Internet addresses).<\/li>\n<\/ul>\n<p>In addition, IPv6 has special addresses such as the loopback address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An IPv6 address consists of 128 bits and includes bits to be used for subnetting.\u00a0 The first half of the subnet (64 bits) consists of routing prefix (48 bits) and subnet ID (16 bits) and the second half of the address (64 bits) is used for hosts only. This is in contrast with the IPv4 network, wherein the host bits&#8230; <a href=\"https:\/\/www.certexams.com\/Blog\/2018\/03\/09\/ipv6-subnetting\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[24,23],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ip-v6-subnetting","tag-ipv6-subnet"],"_links":{"self":[{"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":3,"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":316,"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/posts\/312\/revisions\/316"}],"wp:attachment":[{"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.certexams.com\/Blog\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}