{"id":169034,"date":"2026-06-18T11:36:29","date_gmt":"2026-06-18T08:36:29","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=169034"},"modified":"2026-06-19T08:42:01","modified_gmt":"2026-06-19T05:42:01","slug":"ipv4-addressing-explained","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/ipv4-addressing-explained\/","title":{"rendered":"IPv4 Addressing Explained: Classes, Private IPs &#038; Cisco Setup"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You sit down at a brand-new router, type <code>show ip interface brief<\/code>, and every line says <code>unassigned<\/code>. Before that box forwards a single packet it needs an IPv4 address, and before you can hand it one you need to know what the address actually means: which part identifies the network, which part identifies the device, and why some addresses you will never be allowed to assign.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how IPv4 addressing works from the ground up. We cover the 32-bit structure of an address, the A, B, and C address classes with their default masks, the difference between public and private (RFC 1918) addresses, and the exact commands to configure and verify an address on a Cisco router (and on a <a href=\"https:\/\/computingforgeeks.com\/verify-ip-settings-windows-mac-linux\/\">Windows, macOS, or Linux client<\/a>). Every value here is computed, and every command was run on a real IOS device so the output is the genuine article.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Ran every command below on a Cisco IOS router (a GNS3 c7200) in June 2026, so the output you see is exactly what the device printed.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the IOS prompts and modes are still new, work through the <a href=\"https:\/\/computingforgeeks.com\/ccna-routers-and-catalyst-switch-ios-cli-editing-commands\/\">IOS CLI editing basics<\/a> first. This guide assumes you can already move between user EXEC, privileged EXEC, and configuration mode.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What an IPv4 address actually is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An IPv4 address is a 32-bit number, written as four 8-bit octets in dotted-decimal notation like <code>192.168.10.1<\/code>. Those 32 bits split into two parts: a <strong>network portion<\/strong> that identifies the network, and a <strong>host portion<\/strong> that identifies one device on it. The subnet mask is what marks the boundary between the two.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Take <code>192.168.10.1<\/code> with mask <code>255.255.255.0<\/code>. The mask sets the first 24 bits as network and the last 8 bits as host, which is why you also see this written as <code>192.168.10.1\/24<\/code> in CIDR notation. The network is <code>192.168.10.0<\/code> and the host part is <code>.1<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Property<\/th><th>Value<\/th><\/tr><\/thead><tbody><tr><td>Total length<\/td><td>32 bits<\/td><\/tr><tr><td>Structure<\/td><td>4 octets of 8 bits, dotted-decimal<\/td><\/tr><tr><td>Example address<\/td><td>192.168.10.1<\/td><\/tr><tr><td>Mask<\/td><td>255.255.255.0 (\/24)<\/td><\/tr><tr><td>Network portion<\/td><td>192.168.10.0 (first 24 bits)<\/td><\/tr><tr><td>Host portion<\/td><td>.1 (last 8 bits)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Seeing the same address broken into octets, then into binary, then against the mask makes the split obvious. The green octets are network, the amber octet is host, and the bottom row is the mask that draws the line:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1320\" height=\"560\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ipv4-address-anatomy-network-host.png\" alt=\"IPv4 address 192.168.10.1 split into network and host portions with subnet mask 255.255.255.0\" class=\"wp-image-169028\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ipv4-address-anatomy-network-host.png 1320w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ipv4-address-anatomy-network-host-300x127.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ipv4-address-anatomy-network-host-1024x434.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ipv4-address-anatomy-network-host-768x326.png 768w\" sizes=\"auto, (max-width: 1320px) 100vw, 1320px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A mask octet of <code>255<\/code> means all eight bits in that octet belong to the network; a <code>0<\/code> means all eight belong to the host. The host bits are the ones that change as you move from one device to the next on the same network.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IPv4 address classes and their default masks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The class of an IPv4 address is decided by the value of its first octet alone. That single number tells you the historical default mask and how many hosts the network could hold.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Class<\/th><th>First-octet range<\/th><th>Default mask<\/th><th>Network \/ host bits<\/th><th>Max hosts per network<\/th><\/tr><\/thead><tbody><tr><td>A<\/td><td>1 to 126<\/td><td>255.0.0.0 (\/8)<\/td><td>8 \/ 24<\/td><td>16,777,214<\/td><\/tr><tr><td>B<\/td><td>128 to 191<\/td><td>255.255.0.0 (\/16)<\/td><td>16 \/ 16<\/td><td>65,534<\/td><\/tr><tr><td>C<\/td><td>192 to 223<\/td><td>255.255.255.0 (\/24)<\/td><td>24 \/ 8<\/td><td>254<\/td><\/tr><tr><td>D<\/td><td>224 to 239<\/td><td>multicast, not assignable to hosts<\/td><td>n\/a<\/td><td>n\/a<\/td><\/tr><tr><td>E<\/td><td>240 to 255<\/td><td>reserved, not assignable to hosts<\/td><td>n\/a<\/td><td>n\/a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Two ranges are carved out of Class A: <code>127.0.0.0<\/code> through <code>127.255.255.255<\/code> is reserved for loopback (that is why <code>127.0.0.1<\/code> always points back at the local host), and <code>0.0.0.0<\/code> is reserved. Classes D and E exist but you never put them on a host interface.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One honest caveat: real networks have been classless since the 1990s. Modern routing uses the mask, not the class, to decide where the network ends, so a Class B address with a \/24 mask is perfectly normal. Classes still matter for the default-mask intuition and for reading older configurations, and they remain a Cisco CCNA exam topic, which is why they are worth knowing cold.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Subnet ID, host range, and broadcast address<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Inside any IPv4 network, two addresses are reserved and can never be assigned to a host: the <strong>subnet ID<\/strong> (the numerically lowest address in the range) and the <strong>directed broadcast<\/strong> (the numerically highest). Everything between them is a usable host address. The count of usable hosts is 2 raised to the number of host bits, minus those two reserved addresses, so the formula is <code>(2^H) - 2<\/code> where H is the host bit count.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a \/24, H is 8, so usable hosts are <code>(2^8) - 2 = 254<\/code>. The first usable address is the subnet ID plus one, and the last usable is the broadcast minus one. Here are two networks worked out the same way:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Network<\/th><th>Subnet ID<\/th><th>First usable<\/th><th>Last usable<\/th><th>Broadcast<\/th><th>Usable hosts<\/th><\/tr><\/thead><tbody><tr><td>192.168.10.0\/24<\/td><td>192.168.10.0<\/td><td>192.168.10.1<\/td><td>192.168.10.254<\/td><td>192.168.10.255<\/td><td>254<\/td><\/tr><tr><td>172.16.1.0\/24<\/td><td>172.16.1.0<\/td><td>172.16.1.1<\/td><td>172.16.1.254<\/td><td>172.16.1.255<\/td><td>254<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The second row is a Class B network (172.16.0.0) carrying a \/24 host mask, which produces 256 Class-C-sized subnets. Working those boundaries out for any mask is exactly what subnetting is. When you are ready for it, the <a href=\"https:\/\/computingforgeeks.com\/subnetting-by-network-requirements\/\">step-by-step subnetting guide<\/a> walks the math, and the <a href=\"https:\/\/computingforgeeks.com\/subnetting-vlsm-explained\/\">VLSM guide<\/a> shows how to size each subnet to its real host count.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Public vs private IPv4 addresses, and why private exists<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Public IPv4 addresses are globally unique and routable across the Internet; private addresses are free to reuse, never routed across the public Internet, and the reason your home and office networks all quietly share the same <code>192.168.x.x<\/code> space without colliding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The reason private addressing exists is simple arithmetic. IANA handed out its last block of public IPv4 space in early 2011, and the North American registry (ARIN) ran dry in 2015. Three things kept the Internet running past that wall: IPv6 (a vastly larger address space), CIDR (more efficient allocation), and NAT paired with private addresses. The private ranges are defined in <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc1918\" target=\"_blank\" rel=\"noreferrer noopener\">RFC 1918<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Class<\/th><th>Private range<\/th><th>CIDR block<\/th><th>Networks<\/th><\/tr><\/thead><tbody><tr><td>A<\/td><td>10.0.0.0 to 10.255.255.255<\/td><td>10.0.0.0\/8<\/td><td>1<\/td><\/tr><tr><td>B<\/td><td>172.16.0.0 to 172.31.255.255<\/td><td>172.16.0.0\/12<\/td><td>16<\/td><\/tr><tr><td>C<\/td><td>192.168.0.0 to 192.168.255.255<\/td><td>192.168.0.0\/16<\/td><td>256<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">NAT is the bridge between the two worlds. A router translates a private inside address into a public address on the way out, so thousands of organizations can reuse the same <code>10.0.0.0\/8<\/code> internally because those packets never reach each other directly. ISPs typically filter RFC 1918 prefixes at the edge, so a misconfigured NAT that leaks a private source address usually gets its packets dropped rather than delivered.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configure an IPv4 address on a Cisco router<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Assigning an address is three commands once you are at the interface: set the address and mask, bring the interface up, and leave configuration mode. From a fresh prompt:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>enable\nconfigure terminal\ninterface GigabitEthernet0\/0\nip address 192.168.10.1 255.255.255.0\nno shutdown\nend<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>no shutdown<\/code> is the step that catches people. Cisco router interfaces are administratively down by default, so without it the address is configured but the interface never comes up. Confirm the address landed in the running configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>show running-config | include ip address<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The interface you just configured shows the address you set, while the interfaces you left alone still read <code>no ip address<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code> no ip address\n ip address 192.168.10.1 255.255.255.0\n no ip address\n no ip address<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So far the address lives only in the running configuration, which is wiped on reload. Save it to the startup configuration so it survives a reboot:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>copy running-config startup-config<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is just the addressing slice of a full device bring-up. The complete first-boot workflow (hostname, secrets, SSH, console and VTY logins) is in the <a href=\"https:\/\/computingforgeeks.com\/cisco-device-base-configuration\/\">base device configuration guide<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the address with show ip interface brief<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The fastest way to confirm an address took effect is <code>show ip interface brief<\/code>. It prints one line per interface with the address, how it was set, and the link state.<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>show ip interface brief<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">GigabitEthernet0\/0 now carries <code>192.168.10.1<\/code>, the Method column reads <code>manual<\/code> (the address was set by hand, not by DHCP), and both Status and Protocol are <code>up<\/code>, which is the healthy state:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>Interface              IP-Address      OK? Method Status                Protocol\nEthernet0\/0            unassigned      YES unset  administratively down down\nGigabitEthernet0\/0     192.168.10.1    YES manual up                    up\nGigabitEthernet1\/0     unassigned      YES unset  administratively down down\nGigabitEthernet2\/0     unassigned      YES unset  administratively down down<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Read the columns left to right: the interface name, its address, an OK flag, the Method (<code>manual<\/code> for static, <code>DHCP<\/code> if leased), then the Status (layer 1) and Protocol (layer 2) states. <code>administratively down<\/code> means the interface is still shut, so it is the first thing to check when an address is set but nothing pings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the full picture on a single interface, including the mask in CIDR form and the line rate, use <code>show interfaces<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>show interfaces GigabitEthernet0\/0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first lines confirm the interface is up at gigabit speed and that the Internet address is <code>192.168.10.1\/24<\/code>, the CIDR form of the mask you typed:<\/p>\n\n\n\n<pre class=\"wp-block-code code\"><code>GigabitEthernet0\/0 is up, line protocol is up\n  Hardware is i82543 (Livengood), address is ca01.b2dc.0008 (bia ca01.b2dc.0008)\n  Internet address is 192.168.10.1\/24\n  MTU 1500 bytes, BW 1000000 Kbit\/sec, DLY 10 usec,\n     reliability 255\/255, txload 1\/255, rxload 1\/255\n  Encapsulation ARPA, loopback not set<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Practice IPv4 addressing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Drill the facts with the flashcards, then check yourself on the quiz. The cards remember which ones you have marked as known, and you can grab the deck for Anki if you study with spaced repetition.<\/p>\n\n\n<div class=\"cfg-fc\" data-fc=\"{\n  &quot;id&quot;: &quot;ipv4-addressing&quot;,\n  &quot;title&quot;: &quot;IPv4 Addressing Flashcards&quot;,\n  &quot;objective&quot;: &quot;1.6 \/ 1.7 IPv4 address structure, classes, host ranges, and private addressing&quot;,\n  &quot;intro&quot;: &quot;The IPv4 addressing facts worth knowing cold: structure, classes, the reserved addresses, the private ranges, and the configure\/verify commands. Tap a card to flip it, then mark whether you knew it.&quot;,\n  &quot;cards&quot;: [\n    {&quot;front&quot;: &quot;How long is an IPv4 address, and how is it written?&quot;, &quot;back&quot;: &quot;32 bits, written as four 8-bit octets in dotted-decimal notation, such as 192.168.10.1.&quot;},\n    {&quot;front&quot;: &quot;What are the two logical parts of an IPv4 address?&quot;, &quot;back&quot;: &quot;A network portion (identifies the network) and a host portion (identifies one device). The subnet mask marks the boundary between them.&quot;},\n    {&quot;front&quot;: &quot;What does the mask 255.255.255.0 (\/24) mean?&quot;, &quot;back&quot;: &quot;The first 24 bits are the network and the last 8 bits are the host. A mask octet of 255 is all network bits; 0 is all host bits.&quot;},\n    {&quot;front&quot;: &quot;How is the class of an IPv4 address determined?&quot;, &quot;back&quot;: &quot;By the value of the first octet alone.&quot;},\n    {&quot;front&quot;: &quot;First-octet ranges for Class A, B, and C?&quot;, &quot;back&quot;: &quot;Class A: 1 to 126. Class B: 128 to 191. Class C: 192 to 223.&quot;},\n    {&quot;front&quot;: &quot;Default masks for Class A, B, and C?&quot;, &quot;back&quot;: &quot;A: 255.0.0.0 (\/8). B: 255.255.0.0 (\/16). C: 255.255.255.0 (\/24).&quot;},\n    {&quot;front&quot;: &quot;What are the 127.x.x.x and 224 to 255 ranges used for?&quot;, &quot;back&quot;: &quot;127.0.0.0\/8 is reserved for loopback (127.0.0.1 = localhost). 224 to 239 is Class D multicast and 240 to 255 is Class E reserved; neither is assigned to hosts.&quot;},\n    {&quot;front&quot;: &quot;Which two addresses in any network can never be assigned to a host?&quot;, &quot;back&quot;: &quot;The subnet ID (numerically lowest) and the directed broadcast (numerically highest).&quot;},\n    {&quot;front&quot;: &quot;Formula for the number of usable hosts in a network?&quot;, &quot;back&quot;: &quot;(2^H) - 2, where H is the number of host bits. The minus 2 removes the subnet ID and the broadcast.&quot;},\n    {&quot;front&quot;: &quot;Usable hosts, first usable, and last usable in 192.168.10.0\/24?&quot;, &quot;back&quot;: &quot;254 usable hosts. First usable 192.168.10.1, last usable 192.168.10.254. Subnet ID 192.168.10.0, broadcast 192.168.10.255.&quot;},\n    {&quot;front&quot;: &quot;What are the three RFC 1918 private ranges?&quot;, &quot;back&quot;: &quot;10.0.0.0\/8, 172.16.0.0\/12 (172.16 to 172.31), and 192.168.0.0\/16.&quot;},\n    {&quot;front&quot;: &quot;Why do private IPv4 addresses exist?&quot;, &quot;back&quot;: &quot;Public IPv4 ran out (IANA in early 2011, ARIN in 2015). RFC 1918 private space plus NAT, alongside IPv6 and CIDR, was the fix.&quot;},\n    {&quot;front&quot;: &quot;What does NAT do for a private address?&quot;, &quot;back&quot;: &quot;It translates a private inside address to a public address on the way out, so many networks can reuse the same private space without colliding.&quot;},\n    {&quot;front&quot;: &quot;Minimum commands to set 192.168.10.1\/24 on Gi0\/0 and bring it up?&quot;, &quot;back&quot;: &quot;interface GigabitEthernet0\/0, then ip address 192.168.10.1 255.255.255.0, then no shutdown.&quot;},\n    {&quot;front&quot;: &quot;Fastest command to confirm an address took effect, and the healthy state?&quot;, &quot;back&quot;: &quot;show ip interface brief. Healthy is Status up and Protocol up; Method manual means the address was set statically.&quot;},\n    {&quot;front&quot;: &quot;An address is configured but the interface is administratively down. Fix?&quot;, &quot;back&quot;: &quot;Run no shutdown on the interface. Cisco interfaces are administratively down by default.&quot;}\n  ]\n}\n\" data-fc-anki=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ccna-ipv4-addressing-flashcards.apkg\"><div class=\"cfg-fc-loading\">Loading flashcards...<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Now test what stuck:<\/p>\n\n\n<div class=\"cfg-quiz\" data-quiz=\"{\n  &quot;id&quot;: &quot;ipv4-addressing&quot;,\n  &quot;title&quot;: &quot;IPv4 addressing quiz&quot;,\n  &quot;objective&quot;: &quot;1.6 \/ 1.7 IPv4 addressing: structure, classes, host ranges, and private addressing&quot;,\n  &quot;intro&quot;: &quot;Ten questions on IPv4 addressing: address structure, classes, subnet IDs and broadcasts, private ranges, and the Cisco configure\/verify commands. Every answer is computed or doc-checked.&quot;,\n  &quot;questions&quot;: [\n    {&quot;q&quot;: &quot;An interface shows &#039;administratively down&#039; in show ip interface brief, but its IP address is already configured. Which command brings it up?&quot;, &quot;options&quot;: [&quot;no shutdown&quot;, &quot;ip address dhcp&quot;, &quot;enable&quot;, &quot;clock rate 64000&quot;], &quot;answer&quot;: 0, &quot;explanation&quot;: &quot;Cisco router interfaces are administratively down by default. no shutdown enables the interface; the address is already set, so that is the only missing step.&quot;, &quot;validated&quot;: &quot;lab&quot;},\n    {&quot;q&quot;: &quot;Which first-octet value identifies a Class B address?&quot;, &quot;options&quot;: [&quot;10&quot;, &quot;127&quot;, &quot;172&quot;, &quot;200&quot;], &quot;answer&quot;: 2, &quot;explanation&quot;: &quot;Class B is the first-octet range 128 to 191, so 172 is Class B. 10 is Class A, 200 is Class C, and 127 is the reserved loopback range.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;type&quot;: &quot;numeric&quot;, &quot;q&quot;: &quot;How many usable host addresses are in a \/24 network? Type the number.&quot;, &quot;answer&quot;: &quot;254&quot;, &quot;hint&quot;: &quot;2 raised to the host-bit count, minus 2.&quot;, &quot;placeholder&quot;: &quot;e.g. 62&quot;, &quot;explanation&quot;: &quot;A \/24 leaves 8 host bits, so 2^8 = 256 total addresses, minus the subnet ID and broadcast = 254 usable.&quot;, &quot;validated&quot;: &quot;computed&quot;},\n    {&quot;type&quot;: &quot;numeric&quot;, &quot;q&quot;: &quot;A host has IP 172.20.5.50 with a \/24 mask. Type the subnet ID.&quot;, &quot;answer&quot;: &quot;172.20.5.0&quot;, &quot;hint&quot;: &quot;Set the host bits (the last octet for a \/24) to zero.&quot;, &quot;placeholder&quot;: &quot;x.x.x.x&quot;, &quot;explanation&quot;: &quot;A \/24 makes the first three octets the network. Zeroing the host octet gives the subnet ID 172.20.5.0.&quot;, &quot;validated&quot;: &quot;computed&quot;},\n    {&quot;q&quot;: &quot;Which range is the Class B private block defined in RFC 1918?&quot;, &quot;options&quot;: [&quot;10.0.0.0 to 10.255.255.255&quot;, &quot;172.16.0.0 to 172.31.255.255&quot;, &quot;192.168.0.0 to 192.168.255.255&quot;, &quot;169.254.0.0 to 169.254.255.255&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;RFC 1918 reserves 172.16.0.0\/12 (172.16.0.0 to 172.31.255.255) as the Class B private range. 169.254.0.0\/16 is APIPA link-local, not RFC 1918.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;type&quot;: &quot;multi&quot;, &quot;q&quot;: &quot;Which two addresses in the 192.168.10.0\/24 network can NOT be assigned to a host?&quot;, &quot;options&quot;: [&quot;192.168.10.0&quot;, &quot;192.168.10.1&quot;, &quot;192.168.10.254&quot;, &quot;192.168.10.255&quot;], &quot;answers&quot;: [0, 3], &quot;explanation&quot;: &quot;The subnet ID (192.168.10.0, the lowest) and the directed broadcast (192.168.10.255, the highest) are reserved. The usable range is 192.168.10.1 to 192.168.10.254.&quot;, &quot;validated&quot;: &quot;computed&quot;},\n    {&quot;q&quot;: &quot;In show ip interface brief, the Method column reads &#039;manual&#039;. What does that mean?&quot;, &quot;options&quot;: [&quot;The address was set by hand (statically configured)&quot;, &quot;The address was leased from a DHCP server&quot;, &quot;The address was learned through BOOTP&quot;, &quot;No address is configured on the interface&quot;], &quot;answer&quot;: 0, &quot;explanation&quot;: &quot;manual means the address was configured by hand with the ip address command. A DHCP-leased address would show DHCP in the Method column.&quot;, &quot;validated&quot;: &quot;lab&quot;},\n    {&quot;q&quot;: &quot;What is the default subnet mask for a Class A address?&quot;, &quot;options&quot;: [&quot;255.0.0.0&quot;, &quot;255.255.0.0&quot;, &quot;255.255.255.0&quot;, &quot;255.255.255.255&quot;], &quot;answer&quot;: 0, &quot;explanation&quot;: &quot;Class A uses a \/8 default mask, 255.0.0.0: the first octet is network and the last three are host.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;q&quot;: &quot;Why can a private 10.x.x.x address not reach a server on the public Internet directly?&quot;, &quot;options&quot;: [&quot;ISPs filter RFC 1918 prefixes at the edge, so it must be translated by NAT first&quot;, &quot;10.x.x.x is reserved for multicast traffic&quot;, &quot;10.x.x.x is a loopback range&quot;, &quot;Private addresses do not have a subnet mask&quot;], &quot;answer&quot;: 0, &quot;explanation&quot;: &quot;RFC 1918 ranges are non-routable on the public Internet and dropped at the ISP edge. NAT translates the private address to a public one so the traffic can be delivered.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;type&quot;: &quot;match&quot;, &quot;q&quot;: &quot;Match each IPv4 address class to its first-octet range.&quot;, &quot;pairs&quot;: [{&quot;left&quot;: &quot;Class A&quot;, &quot;right&quot;: &quot;1 to 126&quot;}, {&quot;left&quot;: &quot;Class B&quot;, &quot;right&quot;: &quot;128 to 191&quot;}, {&quot;left&quot;: &quot;Class C&quot;, &quot;right&quot;: &quot;192 to 223&quot;}], &quot;explanation&quot;: &quot;The first octet alone sets the class: 1 to 126 is Class A, 128 to 191 is Class B, and 192 to 223 is Class C. (127 is reserved for loopback.)&quot;, &quot;validated&quot;: &quot;doc&quot;}\n  ]\n}\n\" data-quiz-count=\"8\"><div class=\"cfg-quiz-loading\">Loading quiz...<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">IPv4 addressing mistakes that trip people up<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These are the snags that turn a five-minute task into a twenty-minute one, all of them seen on real gear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The address is set but the interface stays down.<\/strong> If <code>show ip interface brief<\/code> shows <code>administratively down<\/code>, the <code>no shutdown<\/code> was skipped. If Status is <code>up<\/code> but Protocol is <code>down<\/code>, the problem is one layer lower: a missing cable, a speed or duplex mismatch, or the device on the other end is shut.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Assigning the subnet ID or the broadcast to a host.<\/strong> In a \/24, the <code>.0<\/code> and the <code>.255<\/code> are reserved. The usable range runs from <code>.1<\/code> to <code>.254<\/code>. Hand a server <code>192.168.10.0<\/code> or <code>192.168.10.255<\/code> and it either refuses the address or talks to nothing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Thinking the address class still controls routing.<\/strong> It does not. The mask defines where the network ends, and the mask is independent of the class. A <code>172.x<\/code> address with a \/24 is a \/24 network, full stop, no matter what the old class tables say.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Expecting a private address to work across the Internet.<\/strong> A <code>10.x<\/code>, <code>172.16-31.x<\/code>, or <code>192.168.x<\/code> address is typically filtered at the ISP edge. To reach the public Internet it has to be translated to a public address by NAT first. Internally it works perfectly; that is the whole point of RFC 1918.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Get these four right and addressing stops being a mystery. The natural next step is sizing networks for a real host count, which is where subnetting and VLSM pick up. If you are studying for the CCNA, the <a href=\"https:\/\/computingforgeeks.com\/quickly-prepare-for-ccna-200-301-exam\/\">CCNA 200-301 study roadmap<\/a> shows where addressing sits in the full path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You sit down at a brand-new router, type show ip interface brief, and every line says unassigned. Before that box forwards a single packet it needs an IPv4 address, and before you can hand it one you need to know what the address actually means: which part identifies the network, which part identifies the device, &#8230; <a title=\"IPv4 Addressing Explained: Classes, Private IPs &#038; Cisco Setup\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/ipv4-addressing-explained\/\" aria-label=\"Read more about IPv4 Addressing Explained: Classes, Private IPs &#038; Cisco Setup\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":169031,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299,55],"tags":[524,525],"cfg_series":[39888],"class_list":["post-169034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-networking","tag-ccna","tag-cisco","cfg_series-ccna-200-301"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=169034"}],"version-history":[{"count":1,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169034\/revisions"}],"predecessor-version":[{"id":169054,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169034\/revisions\/169054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/169031"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=169034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=169034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=169034"},{"taxonomy":"cfg_series","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/cfg_series?post=169034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}