NETWORKING · CCNA V1.1 · CHAPTER 4

IPv4 addressing

How an IPv4 address is written, how you split a network into subnets without wasting addresses and how you check the configuration on the router and on the PC.

50 min read · 3 sessionsDomain 1 · Network Fundamentals (20%)Level: intermediateAGLE method · A, G, L, E
AGLE methodSelf-studyAll the chapter text, at your own pace.

From point A to point B

Point A: you already split the network into VLANs and know that each VLAN is a subnet, but IP addresses still look like loose numbers to you. Point B: by the end you will read an IPv4 address in binary, work out in seconds the network, broadcast and host range of any prefix, design a VLSM plan, configure it on routers and switches and verify it on the PC.

This chapter covers three topics of the Network Fundamentals domain of the v1.1 exam, worth 20%: 1.6 (configure and verify IPv4 addressing and subnetting), 1.7 (describe private IPv4 addressing) and 1.10 (verify IP parameters for client operating systems: Windows, macOS and Linux).

IPv4 and its header

IPv4 is the layer 3 protocol that identifies each device with a logical address and carries packets from one network to another. It allows hierarchical addressing (network and host), can be used with or without classes and lives today alongside IPv6.

The IPv4 headerThe IPv4 header is 20 bytes long without options. Among other fields it carries the version, the TTL, the upper-layer protocol and the 32-bit source and destination IP addresses. A router decides where to send the packet by looking at the destination address.INSIDE THE IPV4 PACKET08162431VersionIHLDSCP · ECNTotal LengthIdentificationFlagsFragment OffsetTTLProtocolHeader ChecksumSource AddressDestination Address20 byteswithout options← 32 bits← 32 bitsThe router chooses the path using the DESTINATION IPTTL drops by 1 at each router · Protocol: 1 = ICMP, 6 = TCP, 17 = UDP

The fields of the IPv4 header. Diagram: The House of Routing.

The header is 20 bytes long without options (it can reach 60). The fields you will use most:

FieldWhat it is for
VersionIt is 4 in IPv4
IHLHeader length, in 4-byte words (5 = 20 bytes)
DSCP · ECNQuality of service marking and congestion notification
Total LengthTotal packet size, header plus data
Identification, Flags, Fragment OffsetAllow a packet to be fragmented and put back together
TTLEach router subtracts 1; if it reaches 0, the packet is dropped and ICMP reports it. That way no packet loops forever.
ProtocolWhat it carries inside: 1 = ICMP, 6 = TCP, 17 = UDP, 89 = OSPF
Header ChecksumChecks for errors in the header only
Source and Destination AddressThe source and destination IP addresses, 32 bits each
The key idea: the router makes its forwarding decision by looking at the packet’s destination IP address and comparing it with its routing table. That is why a good addressing plan makes routing correct and efficient.

32 bits and binary conversion

An IPv4 address has 32 bits. To make it easier to read, it is split into 4 groups of 8 bits called octets (or bytes), and each octet is written in decimal, separated by a dot. This is dotted decimal notation: 192.168.10.37.

An IPv4 address: 32 bits in 4 octetsThe address 192.168.10.37 written in decimal and in binary. It is 32 bits grouped into 4 octets of 8 bits separated by dots. Each bit in an octet is worth a power of 2, from 128 down to 1: for example, 37 = 32 + 4 + 1 = 00100101.32 BITS · 4 OCTETS · DOTTED DECIMAL NOTATION19211000000Octet 1.16810101000Octet 2.1000001010Octet 3.3700100101Octet 4Value of each bit inside an octet1282⁷642⁶322⁵162⁴82³42²22¹12⁰37 = 32 + 4 + 1 → 00100101

The same address in decimal and in binary. Diagram: The House of Routing.

In decimal each position is worth a power of 10 (hundreds, tens, units). In binary each position is worth a power of 2. In an octet, from left to right: 128, 64, 32, 16, 8, 4, 2 and 1. With all 8 bits on you get 255, the maximum value of an octet.

From decimal to binary

Go through the values from left to right. If the number you have left is greater than or equal to the value, write a 1 and subtract it; if not, write a 0.

DecimalSumBinary
168128 + 32 + 810101000
172128 + 32 + 8 + 410101100
3732 + 4 + 100100101
240128 + 64 + 32 + 1611110000

To go from binary to decimal, add the values of the positions that hold a 1: 00011110 = 16 + 8 + 4 + 2 = 30.

For your notes. Write the row 128 · 64 · 32 · 16 · 8 · 4 · 2 · 1 on the exam’s blank sheet before you start. It saves you time on every subnetting question.

Address classes

Every address has two parts: the network ID, which identifies the segment, and the host ID, which identifies the device inside that segment. It is like a phone number: the area code points to the zone and the rest to the line. Inside one network no two hosts can share the same ID.

In the original classful scheme, the value of the first octet decides how many octets belong to the network and how many to the host:

IPv4 address classesIn the classful scheme, the first octet defines the class. Class A uses 1 octet for the network and 3 for hosts; class B, 2 and 2; class C, 3 and 1. Class D is multicast and class E is experimental. Classless addressing (CIDR) is used today, but classes still show up on the exam.CLASSFUL: THE FIRST OCTET RULESClass ANetworkHostHostHost1 – 126leading bits: 0…mask 255.0.0.0 · /8Class BNetworkNetworkHostHost128 – 191leading bits: 10…mask 255.255.0.0 · /16Class CNetworkNetworkNetworkHost192 – 223leading bits: 110…mask 255.255.255.0 · /24Class D · 224 – 239 · multicastClass E · 240 – 255 · experimental0.0.0.0/8 · 127.0.0.0/8 (loopback) · 255.255.255.255 (broadcast)

Classes A, B and C, multicast and experimental. Diagram: The House of Routing.

ClassFirst octetLeading bitsDefault maskHosts per network
A1 to 1260255.0.0.0 (/8)16,777,214
B128 to 19110255.255.0.0 (/16)65,534
C192 to 223110255.255.255.0 (/24)254
D224 to 2391110Not applicable: multicast—
E240 to 2551111Not applicable: experimental—

0 and 127 are not assigned as class A networks: 0.0.0.0/8 means “this network” and 127.0.0.0/8 is loopback (127.0.0.1 is the device itself). The address 255.255.255.255 is the limited broadcast, which does not cross routers.

Today the internet works classless: the mask or prefix says where the network ends, whatever the first octet. Even so, the exam still asks about classes and their default masks.

Private and special ranges

RFC 1918 reserves three blocks for private use. Any home or company can use them without asking permission, because they are not routed on the internet. To reach the internet, a router or firewall translates those addresses to a public one with NAT (or with PAT, which shares a single public IP).

Private addresses and special rangesRFC 1918 reserves three private blocks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They are used inside homes and companies and are not routed on the internet: to get out they need NAT. Other special ranges are loopback 127.0.0.0/8, link-local 169.254.0.0/16, shared address space 100.64.0.0/10 and documentation blocks such as 192.0.2.0/24.PRIVATE · RFC 191810.0.0.0/810.0.0.0 – 10.255.255.2551 class A network172.16.0.0/12172.16.0.0 – 172.31.255.25516 class B networks192.168.0.0/16192.168.0.0 – 192.168.255.255256 class C networksOTHER SPECIAL RANGES127.0.0.0/8Loopback169.254.0.0/16Link-local (APIPA)100.64.0.0/10Shared space (CGN)192.0.2.0/24DocumentationPrivate addresses are not routed on the internet: they go out through NAT

The three private blocks and other ranges you should recognize. Diagram: The House of Routing.

BlockRangeUse
10.0.0.0/810.0.0.0 to 10.255.255.255Private (RFC 1918): large networks
172.16.0.0/12172.16.0.0 to 172.31.255.255Private (RFC 1918)
192.168.0.0/16192.168.0.0 to 192.168.255.255Private (RFC 1918): very common in homes and small offices (SOHO)
127.0.0.0/8127.0.0.0 to 127.255.255.255Loopback: the device itself
169.254.0.0/16169.254.0.0 to 169.254.255.255Link-local (APIPA, RFC 3927): the device assigns it to itself when it cannot get DHCP
100.64.0.0/10100.64.0.0 to 100.127.255.255Shared space for provider NAT (CGN, RFC 6598)
192.0.2.0/24 · 198.51.100.0/24 · 203.0.113.0/24—Documentation and examples (RFC 5737)
Exam tip. 172.32.1.1 is not private: the 172.16.0.0/12 block ends at 172.31.255.255. And if a Windows PC shows 169.254.x.x, it got no answer from the DHCP server: check the cable, the VLAN or the server.

Mask and prefix

The subnet mask separates the network ID from the host ID. It is a continuous run of ones (the network part) followed by zeros (the host part). The PC and the router use it to decide whether a destination is on their own network or whether the packet must go to the default gateway.

Because the ones are always contiguous, a mask octet can only be 0, 128, 192, 224, 240, 248, 252, 254 or 255. The same mask is also written as a prefix: a slash and the number of ones. 255.255.255.0 is /24.

PrefixMaskHost bitsAddressesUsable hosts
/24255.255.255.08256254
/25255.255.255.1287128126
/26255.255.255.19266462
/27255.255.255.22453230
/28255.255.255.24041614
/29255.255.255.248386
/30255.255.255.252242
/20255.255.240.01240964094
/16255.255.0.01665,53665,534

The host formula is 2h − 2, where h is the number of host bits. Two are subtracted because every network or subnet has two addresses that are not given to devices: the network address (all host bits 0) and the broadcast address (all host bits 1).

The AND operation

To find the network of an address, the device performs a bitwise logical AND between the IP and the mask. Only 1 AND 1 gives 1; 1 AND 0, 0 AND 1 and 0 AND 0 give 0. Where the mask has ones, the IP bit passes through; where it has zeros, it becomes 0.

The AND operation between the IP and the maskTo find which network 192.168.0.100/28 belongs to, the device performs a bitwise AND with the mask 255.255.255.240. A result bit is 1 only if both bits are 1. The result, 192.168.0.96, is the subnet address.IP AND MASK = NETWORK ADDRESSIP address192.168.0.10011000000.10101000.00000000.01100100Mask /28255.255.255.24011111111.11111111.11111111.11110000Network (result)192.168.0.9611000000.10101000.00000000.01100000AND1 AND 1 = 1 · any other case, 0PCs and routers do this to know whether the destination is on their own network

192.168.0.100 AND 255.255.255.240 = 192.168.0.96. Diagram: The House of Routing.

Another example with a class B address: 150.150.2.1/24 AND 255.255.255.0 gives 150.150.2.0, so that host is on subnet 150.150.2.0/24. A PC uses this result to decide: if the destination’s network equals its own, it delivers the packet directly (with ARP); if it is different, it sends it to its default gateway.

Creating subnets

A subnet is a part of a major network. You create it by borrowing bits from the host portion and adding them to the network portion: the mask grows to the right by as many bits as you borrow. The goal is to split one large network into smaller ones, one per segment (one per VLAN, one per router-to-router link).

Subnetting by borrowing bitsThe network 192.168.0.0/24 is divided by borrowing 4 bits from the host portion: the mask becomes /28. With 4 subnet bits you get 2⁴ = 16 subnets, and with the 4 host bits left, 2⁴ − 2 = 14 usable hosts per subnet. Subnets go up in steps of 16.192.168.0.0/24 → /2811111111111111111111111111110000Network · 24 bitsSubnet · 4 borrowed bitsHost · 4 bits255.255.255.240 = /282⁴ = 16 subnets2⁴ − 2 = 14 hosts per subnetSubnets go up in steps of 16.0 · .16 · .32 · .48 · .64 · .80 · .96 · .112 · … · .240

Four borrowed bits turn a /24 into 16 /28 subnets. Diagram: The House of Routing.

With n borrowed bits you get 2n subnets; with the h bits left for hosts, 2h − 2 hosts per subnet. In the example, 192.168.0.0/24 with 4 borrowed bits gives 16 /28 subnets of 14 hosts:

SubnetNetworkFirst hostLast hostBroadcast
1192.168.0.0192.168.0.1192.168.0.14192.168.0.15
2192.168.0.16192.168.0.17192.168.0.30192.168.0.31
3192.168.0.32192.168.0.33192.168.0.46192.168.0.47
……………
16192.168.0.240192.168.0.241192.168.0.254192.168.0.255

How to choose the prefix: if you need S subnets, find the smallest n with 2n ≥ S. If you need H hosts per subnet, find the smallest h with 2h − 2 ≥ H. For example, 6 subnets need 3 bits (8 subnets); 50 hosts need 6 host bits (62 hosts), that is, a /26.

The magic number

On the exam you have no time to convert everything to binary. This method gives you the network, broadcast and host range in seconds:

  1. Find the interesting octet: the first one in the mask that is not 255.
  2. Work out the magic number: 256 minus the value of that octet. It is the size of each block.
  3. Count in multiples of the magic number and place the IP’s value in that octet. The multiple immediately below (or equal) is the network.
  4. The broadcast is the next network minus 1. The first host is the network + 1 and the last, the broadcast − 1.
The magic number methodTo place 192.168.0.100/28 without binary: the mask is 255.255.255.240 and 256 − 240 = 16, the magic number. Subnets go up by 16 and 100 falls between 96 and 112. So the subnet is 192.168.0.96, the first host .97, the last .110 and the broadcast .111.NO BINARY: 256 − MASK = BLOCK SIZE/28 = 255.255.255.240 → 256 − 240 = 160163248648096112128144160176192208224240Host .100Subnet192.168.0.96First host192.168.0.97Last host192.168.0.110Broadcast192.168.0.111The next subnet starts at .112: the broadcast is one less, .111

192.168.0.100/28 falls in the block that starts at 96. Diagram: The House of Routing.

Example 1: 192.168.0.100/28. Mask 255.255.255.240, magic number 256 − 240 = 16. Blocks: 0, 16, 32, 48, 64, 80, 96, 112… 100 falls between 96 and 112. Network 192.168.0.96, first host .97, last .110, broadcast .111.

Example 2, in the third octet: 172.16.45.14/20. Mask 255.255.240.0; the interesting octet is the third and the magic number is 256 − 240 = 16. 45 falls between 32 and 48. Network 172.16.32.0, broadcast 172.16.47.255, first host 172.16.32.1, last 172.16.47.254. That is 212 − 2 = 4094 hosts.

Technology first, then the command. The magic number is a shortcut. Practice the binary method with the AND operation first: if you understand why it works, no question with odd prefixes such as /19 or /27 will fool you.

/31, /32 and ip subnet-zero

Subnet zero (the first one, with the subnet bits at 0) and the all-ones subnet (the last one) used to be avoided in older networks. In Cisco IOS the ip subnet-zero command allows subnet zero and has been on by default since IOS 12.0, so today you count every subnet: 2n, without subtracting two. If a question states no ip subnet-zero or refers to old classful networks, use 2n − 2 for the subnets.

PrefixTypical use
/30Classic point-to-point link between two routers: 4 addresses, 2 hosts
/31Point-to-point link with no network or broadcast address (RFC 3021): both addresses are usable. IOS accepts it on point-to-point links and it saves half the addresses.
/32A single address: loopback interfaces and host routes
R1(config)# interface gigabitethernet0/1
R1(config-if)# ip address 10.0.0.0 255.255.255.254
% Warning: use /31 mask on non point-to-point interface cautiously
R1(config-if)# interface loopback0
R1(config-if)# ip address 1.1.1.1 255.255.255.255

VLSM

With fixed-size subnets, every segment gets the same block: a link between two routers would waste 14 addresses of a /28 to use 2. VLSM (variable length subnet mask) lets you use different prefixes inside the same major network and give each segment only what it needs.

VLSM: variable-size subnetsThe network 192.168.1.0/24 is split according to what each segment needs: a /25 for 100 hosts, a /26 for 50, a /27 for 20 and two /30s for the router-to-router links. You always assign from the largest subnet to the smallest, and free space is left to grow.192.168.1.0/24 SPLIT WITH VLSM/25 · LAN A100 hosts → 126/26 · LAN B50 hosts → 62/27LAN C · 20.0.128.192.224/30 · WAN links .224 and .228Free: .232 to .255Assign from the largest subnet to the smallest100, 50 and 20 hosts plus two point-to-point links, without wasting a /24 per segment

A /24 split into a /25, a /26, a /27 and two /30s. Diagram: The House of Routing.

The method:

  1. Sort the segments from the most hosts to the fewest.
  2. For each one, choose the smallest prefix that is enough (2h − 2 ≥ hosts).
  3. Assign the block at the first free address that is a multiple of its size.
SegmentHostsPrefixNetworkHost rangeBroadcast
LAN A100/25192.168.1.0.1 to .126.127
LAN B50/26192.168.1.128.129 to .190.191
LAN C20/27192.168.1.192.193 to .222.223
WAN 12/30192.168.1.224.225 to .226.227
WAN 22/30192.168.1.228.229 to .230.231

192.168.1.232 to .255 are left free to grow. For networks with different masks to be advertised correctly, you need classless routing protocols (OSPF, EIGRP, RIPv2), which send the mask with every route.

CIDR and summarization

CIDR (Classless Inter-Domain Routing, RFC 4632) allocates blocks with any prefix, ignoring the boundaries of classes A, B and C. It was born in the 1990s to slow IPv4 exhaustion and the growth of internet routing tables. Together with NAT and private addresses, it is what kept IPv4 alive while IPv6 arrives.

CIDR also allows summarization (or supernetting): advertising several contiguous networks with a single route. To summarize, find how many leading bits they share:

NetworkThird octet in binary
172.16.0.0/2400000000
172.16.1.0/2400000001
172.16.2.0/2400000010
172.16.3.0/2400000011

The 16 bits of the first two octets and the first 6 of the third match: 16 + 6 = 22. The summary route is 172.16.0.0/22. Benefits of CIDR: better use of the IPv4 space, smaller routing tables and less work for routers.

Configuring IPv4 in Cisco IOS

On a router, each connected interface is a different network. You configure it with ip address and enable it with no shutdown, because router interfaces come shut down.

R_CCS_01(config)# interface fastethernet0/0
R_CCS_01(config-if)# description Conexion a LAN de Caracas
R_CCS_01(config-if)# ip address 172.16.0.1 255.255.255.0
R_CCS_01(config-if)# no shutdown
R_CCS_01(config-if)# interface serial0/0/0
R_CCS_01(config-if)# description Conexion a S0/0/0 de R_MIA_01
R_CCS_01(config-if)# ip address 172.16.1.1 255.255.255.0
R_CCS_01(config-if)# no shutdown
R_CCS_01(config-if)# interface loopback0
R_CCS_01(config-if)# ip address 1.1.1.1 255.255.255.0
R_CCS_01(config-if)# end
R_CCS_01# copy running-config startup-config

You can put more than one network on the same interface with ip address … secondary. On a layer 2 switch the IP is for management only: it goes on an SVI, and the switch needs a default gateway to answer from other networks.

SW_CCS_01(config)# interface vlan 1
SW_CCS_01(config-if)# ip address 172.16.0.2 255.255.255.0
SW_CCS_01(config-if)# no shutdown
SW_CCS_01(config-if)# exit
SW_CCS_01(config)# ip default-gateway 172.16.0.1

On a layer 3 switch you enable ip routing and use one SVI per VLAN or routed ports with no switchport, as you saw in chapter 3. To verify:

R_CCS_01# show ip interface brief
Interface          IP-Address      OK? Method Status                Protocol
FastEthernet0/0    172.16.0.1      YES manual up                    up
FastEthernet0/1    unassigned      YES unset  administratively down down
Serial0/0/0        172.16.1.1      YES manual up                    up
Serial0/1/0        172.16.7.1      YES manual up                    up
Loopback0          1.1.1.1         YES manual up                    up
R_CCS_01# show ip route connected
C        172.16.0.0/24 is directly connected, FastEthernet0/0
C        172.16.1.0/24 is directly connected, Serial0/0/0
R_CCS_01# ping 172.16.1.2
!!!!!
Success rate is 100 percent (5/5)

Read the states like this: administratively down means no shutdown is missing; up/down points to a layer 1 or 2 problem (cable, encapsulation, the far end); up/up is what you want. show ip interface g0/0 also shows the mask and the broadcast address.

Typical mistakes: two interfaces of the same router in the same subnet (IOS rejects it with overlaps with), giving a host the network or broadcast address, different masks on the two ends of a link and a PC whose default gateway is outside its subnet.

Verifying on Windows, macOS and Linux

Exam topic 1.10 asks you to verify IP parameters on the user’s device. On all three systems you look for the same things: IP address, mask or prefix, default gateway, DNS servers and whether the address came from DHCP.

SystemIP and maskDefault gatewayDNS
Windowsipconfig · ipconfig /allipconfig · route printipconfig /all · nslookup
macOSifconfig en0 · ipconfig getifaddr en0netstat -rn · route get defaultscutil --dns
Linuxip address show (or ip a)ip route showresolvectl status · cat /etc/resolv.conf
C:\> ipconfig /all
Ethernet adapter Ethernet:
   DHCP Enabled. . . . . . . . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 172.16.0.10(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 172.16.0.1
   DNS Servers . . . . . . . . . . . : 172.16.0.100

$ ip address show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
    inet 172.16.4.10/24 brd 172.16.4.255 scope global eth0
$ ip route show
default via 172.16.4.1 dev eth0
172.16.4.0/24 dev eth0 proto kernel scope link src 172.16.4.10

On Windows, ipconfig /release and ipconfig /renew ask the DHCP server for a new address. macOS shows the mask in hexadecimal in ifconfig (netmask 0xffffff00 is /24). On Linux, brd is the subnet’s broadcast address.

For your notes. Order to troubleshoot a PC: 1) does it have a valid IP or 169.254.x.x? 2) does the mask match the network’s? 3) is the default gateway in its subnet and does it answer ping? 4) is there DNS? 5) ping and tracert (on macOS and Linux, traceroute) toward the destination.

What you take away

  • IPv4 uses 32 bits in 4 octets. The header is 20 bytes and the router decides with the destination IP.
  • An octet’s values are 128, 64, 32, 16, 8, 4, 2 and 1: with them you convert between binary and decimal.
  • Classes: A 1–126 (/8), B 128–191 (/16), C 192–223 (/24), D multicast, E experimental. 127 is loopback.
  • Private (RFC 1918): 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. 169.254.0.0/16 means DHCP failed.
  • Hosts per subnet: 2h − 2. Subnets: 2n with the borrowed bits.
  • Network = IP AND mask. Magic number = 256 − interesting octet; broadcast = next network − 1.
  • /30 for classic links, /31 with no network or broadcast (RFC 3021), /32 for loopbacks.
  • VLSM: assign from the largest subnet to the smallest. CIDR summarizes contiguous networks, such as four /24s into a /22.
  • In IOS: ip address, no shutdown, show ip interface brief; on the layer 2 switch, an SVI and ip default-gateway.
  • On the client: ipconfig /all (Windows), ifconfig or ipconfig getifaddr (macOS), ip a and ip route (Linux).

In the next chapter you move into routers and routing: how a router uses these addresses and its routing table to carry each packet from one network to another.

AGLE methodInstructor-guidedThe class slides and videos.

Slides

These slides support the guided class: view them here, full screen, or download the PDF for your notes. Part 1 goes with videos 1 and 2; Part 2 with video 3; and Part 3 with videos 4 and 5.

Class videos

The videos are in Spanish. The translation of the videos is in development.

Each part of the chapter has its own video. Tap a card and the video opens right here, over the page; use the Close button or the Esc key to go back to where you were. Use them alongside the slides of the same part.

When you play a video, it loads from YouTube (no cookies until you open it). See the full playlist on YouTube.

AGLE methodLabsHands-on practice in Packet Tracer.

Packet Tracer labs

The labs are in Spanish. The translation of the labs is in development.

Download each lab's files and open them with Cisco Packet Tracer. Tap the name to see the two downloads.

Lab 1IPv4 addressing across four branches

You configure the interfaces of routers R_CCS_01, R_MIA_01, R_NYC_01 and R_PARIS_01 (Caracas, Miami, New York and Paris) with the address, description and no shutdown given in each branch’s table on the 172.16.0.0 network, plus their loopback. You save with copy running-config startup-config, check with show running-config and test each link with ping. Console and enable password: gj123.

AGLE methodContinuous assessmentExam-style questions to measure your progress.

Chapter assessment

There are 100 single-choice questions, split into 10 tabs of 10. Each tab mixes every topic in the chapter and rises in level: questions 1 to 3 are low difficulty, 4 to 8 are medium and 9 to 10 are high.

We do not save your answers. They run in your browser and, if you close or reload the page, you start from zero. Getting it wrong here is the cheapest way to learn.

Additional resources

These links take you to official sites outside this portal. Use them to practice, go further and confirm what you learned.

To study and practice

Exam and certification

Standards and references

Source and credits. Chapter built from Jesús Espinoza’s “IPv4 addressing” notes and “IPv4” slides (CCNA 200-301, part 4), paraphrased, corrected, updated and aligned with the official CCNA 200-301 v1.1 exam topics. Text drafted with AI assistance; original diagrams by The House of Routing. Technical details were checked against official Cisco documentation and RFCs 791, 1918, 3021, 3927, 4632, 5737 and 6598.

Navigate