{"id":806,"date":"2023-01-27T01:21:00","date_gmt":"2023-01-27T01:21:00","guid":{"rendered":"https:\/\/blog.ngocha.biz\/?p=806"},"modified":"2023-01-27T01:21:00","modified_gmt":"2023-01-27T01:21:00","slug":"ip-address-tutorial","status":"publish","type":"post","link":"https:\/\/blog.ngocha.biz\/?p=806","title":{"rendered":"IP Address Tutorial For Beginners [IPV4 &#038; IPV6 Protocols]"},"content":{"rendered":"<p>In this <strong>IP address tutorial<\/strong>, you will learn about all IP address concepts along with  IPv4 and IPv6 protocols.<\/p>\n<p>It is a fundamental concept every <a href=\"https:\/\/devopscube.com\/become-devops-engineer\/\">DevOps engineer<\/a> or developer should know. When you work with cloud networking, Kubernetes, or any infrastructure tool for that matter,  understanding IPV4 and IPV6 is a must.<\/p>\n<h2 id=\"what-is-an-ip-address\">What is an IP address?<\/h2>\n<p>An IP address is a unique address that identifies every device on a computer network. For example, it could be a <strong>32-bit IPV4 address<\/strong> or a<strong> 128-bit IVP6 address<\/strong>.<\/p>\n<p>The following image shows the IPV4 &amp; IPV6 formats.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/ip-address-1-1.png\" class=\"kg-image\" alt=\"IPv4 and IPV6 addressess\" loading=\"lazy\" width=\"571\" height=\"491\"><\/figure>\n<p>Let&#8217;s look at IPV4 and IPV6 addressing in detail.<\/p>\n<h2 id=\"internet-protocol-version-4-ipv4-addressing\">Internet Protocol version 4 (<strong>I<\/strong>PV4 Addressing)<\/h2>\n<p>IPV4 addresses range from 0.0.0.0 to 255.255.255.255. It is a total of 4294967296 IP addresses (~4.3 billion). It is divided into five classes.<\/p>\n<h3 id=\"ip-address-classes\">IP Address Classes<\/h3>\n<p><!--kg-card-begin: html--><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>IP Class<\/strong><\/td>\n<td><strong>Range<\/strong> <\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>0.0.0.0 &#8211; 127.255.255.255<\/td>\n<\/tr>\n<tr>\n<td>B<\/td>\n<td>128.0.0.0 &#8211; 191.255.255.255<\/td>\n<\/tr>\n<tr>\n<td>C<\/td>\n<td>192.0.0.0 &#8211; 223.255.255.255<\/td>\n<\/tr>\n<tr>\n<td>D<\/td>\n<td>224.0.0.0 &#8211; 239.255.255.255<\/td>\n<\/tr>\n<tr>\n<td>E<\/td>\n<td>240.0.0.0 &#8211; 255.255.255.255&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: html--><\/p>\n<p>IP Address Classes<\/p>\n<p><strong>0.0.0.0 to 0.255.255.255<\/strong>, that is <strong>0.0.0.0\/8<\/strong>, was reserved for device auto-configuration, before DHCP. Currently, only <strong>0.0.0.0<\/strong> is used for configuration, and the rest is not used anywhere. Ideally, 0.0.0.0 address means &#8220;this host on this network.&#8221;<\/p>\n<p>When the <a href=\"https:\/\/www.ietf.org\/?ref=devopscube.com\" rel=\"noreferrer noopener\">Internet Engineering Task Force (IETF)<\/a> realized that 4.3 billion IPV4 addresses wouldn&#8217;t be enough to accommodate future internet-connected devices. So it reserved a few IP ranges for the private network (non-internet facing IP addresses). As a result, organizations can re-use to create their private network, and the private networks can connect to the internet via NAT-enabled devices. Check out the <a href=\"https:\/\/devopscube.com\/what-is-nat-how-does-nat-work\/\" rel=\"noreferrer noopener\">NAT tutorial<\/a> to understand more.<\/p>\n<h3 id=\"private-ip-ranges\">Private IP Ranges<\/h3>\n<p>The Internet Engineering Task Force (IETF) and Internet Assigned Numbers Authority (IANA)&#8217;s decided on the following ranges as private IP addresses.<\/p>\n<ol>\n<li><strong>Class A <\/strong>&#8211; 10.0.0.0 to 10.255.255.255<\/li>\n<li><strong>Class B<\/strong> &#8211; 169.254.0.0 to 169.254.255.255 (For <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/troubleshoot\/how-to-use-automatic-tcpip-addressing-without-a-dh?ref=devopscube.com\" rel=\"noreferrer noopener\">Automatic Private IP Addressing (APIPA)<\/a>)<\/li>\n<li><strong>Class B<\/strong> &#8211; 172.16.0.0 to 172.31.255.255<\/li>\n<li><strong>Class C<\/strong> &#8211; 192.168.0.0 to 192.168.255.255<\/li>\n<\/ol>\n<p>Private addresses are extended to next generate IPV6 address space as well.<\/p>\n<h3 id=\"ipv4-shared-address-space\">IPV4 Shared Address Space<\/h3>\n<p><strong>100.64.0.0\/10<\/strong> is the shared address used by ISPs that implement <a href=\"https:\/\/en.wikipedia.org\/wiki\/Carrier-grade_NAT?ref=devopscube.com\" rel=\"noreferrer noopener\">carrier-grade NAT<\/a>. Meaning all ISPs can use this address space.<\/p>\n<p>You can also use this address in your infrastructure. For example, in <a href=\"https:\/\/devopscube.com\/kubernetes-tutorials-beginners\/\">Kubernetes<\/a>, you can use this range for Pod CIDR. It may cause routing issues if not properly configured. Additionally, it&#8217;s important to check with your cloud provider if they support using that IP range or if they have any specific requirements or restrictions.<\/p>\n<h3 id=\"loopback-addresses\">LoopBack Addresses<\/h3>\n<p>127.0.0.1 to 127.255.255.255 are known as loopback addresses. It is commonly known as network testing addresses<\/p>\n<h2 id=\"internet-protocol-version-6-ipv6-addressing\">Internet Protocol version 6 (<strong>I<\/strong>PV6 Addressing)<\/h2>\n<p>IPV6 is the latest Internet Protocol. An IPV6 address looks like <code>1050:0000:0000:0000:0005:0600:300c:326<\/code>. It contains eight octets with sixteen bits each. The total number of IPV6 addresses is 340 trillion trillion trillion addresses.<\/p>\n<p>IPV6 <strong><code>fc00::\/7<\/code><\/strong> block is reserved for private networks. It is known as a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unique_local_address?ref=devopscube.com\" rel=\"noreferrer noopener\">Unique local address<\/a>.<\/p>\n<h3 id=\"why-do-we-need-ipv6-addressing\">Why do we need IPV6 Addressing?<\/h3>\n<p>During the 1980s, the Internet Engineering Task Force (IETF) realized that 4.3 billion IPV4 addresses wouldn&#8217;t be enough due to the growing number of connected internet devices, as each device would need a unique IP address. So in 1998, IPV6 was created to accommodate <strong>340 trillion trillion trillion<\/strong> IP addresses.<\/p>\n<h3 id=\"ipv6-rollout-status\">IPV6 Rollout Status<\/h3>\n<p>IPv6 officially started deployment on <strong>6 June 2012<\/strong>. The following graph from <a href=\"https:\/\/www.google.com\/intl\/en\/ipv6\/statistics.html?ref=devopscube.com\" rel=\"noreferrer noopener\">google<\/a> shows the IPV6 adoption statistics. At the time of writing this guide, global IPV6 adoption is at 37%.<\/p>\n<figure class=\"kg-card kg-image-card kg-card-hascaption\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/image-10-43.png\" class=\"kg-image\" alt=\"\" loading=\"lazy\" width=\"631\" height=\"403\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/image-10-43.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/image-10-43.png 631w\"><figcaption><span style=\"white-space: pre-wrap;\">Click to view in HD<\/span><\/figcaption><\/figure>\n<h2 id=\"ip-address-faqs\">IP Address FAQs<\/h2>\n<h3 id=\"how-to-purchase-a-static-public-ip-address\">How to Purchase a Static Public IP Address?<\/h3>\n<p>You can purchase public IP ranges from RIR(<strong>regional Internet registry<\/strong>) and own them for a specific period. You can also buy it through your Internet Service provider.<\/p>\n<h3 id=\"who-owns-the-public-ip-addresses\">Who owns the Public IP Addresses?<\/h3>\n<p>Public IP addresses are maintained by the<a href=\"https:\/\/www.iana.org\/?ref=devopscube.com\" rel=\"noreferrer noopener\"> Internet Assigned Numbers Authority (IANA<\/a>) and <strong>regional Internet registry<\/strong> (<strong>RIR<\/strong>). There are five RIRs across the globe. RIRs are responsible for assigning IPs to local registries, ISPs, and users. Once you purchase the IP, you will be the owner of it. For example, Amazon owns millions of public IP addresses purchased from RIRs.<\/p>\n<h3 id=\"do-devops-engineers-need-to-know-ip-addressing-concepts\">Do DevOps engineers need to Know IP-addressing Concepts?<\/h3>\n<p>Yes. DevOps engineers might have to deal with CIDR rages and public and private IP addresses when working with cloud environments. So a DevOps engineer needs to know IP address concepts.<\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>In this tutorial, we learned all the essential concepts related to IP addresses. We also looked at two important protocols. IPV4 and IPV6.<\/p>\n<p>Understanding IP addresses and how they work is essential for any DevOps engineer working in cloud networking. This guide provided an overview of IPV4 and IPV6 addresses, their differences, and how they are used in modern networks.<\/p>\n<hr>\n<p><strong>Ngu\u1ed3n:<\/strong> <a href=\"https:\/\/devopscube.com\/ip-address-tutorial\/\" target=\"_blank\" rel=\"noopener noreferrer\">IP Address Tutorial For Beginners [IPV4 &amp; IPV6 Protocols] \u2014 DevOpsCube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/devopscube.com\/ip-address-tutorial\/<\/p>\n","protected":false},"author":1,"featured_media":807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=806"}],"version-history":[{"count":0,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/806\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/media\/807"}],"wp:attachment":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}