Showing raw Markdown: the renderer could not load.
## Questions
### 1. A host is configured as `192.168.10.77/22`. What does the `/22` tell the host?
*Objective: 1 — IP vs MAC addresses; network and host parts; CIDR notation*
- A) The network has 22 usable host addresses
- B) The first 22 bits of the address are the network part and the remaining 10 bits are the host part
- C) The default gateway is the 22nd address of the network
- D) The address belongs to a Class C network, so only the last octet identifies the host
### 2. A server on the Internet must accept connections only from your branch office, which reaches it through several routers. What should the server's firewall rule match?
*Objective: 1 — IP vs MAC addresses; network and host parts; CIDR notation*
- A) The Media Access Control (MAC) addresses of the branch office laptops, because MAC addresses are globally unique and never change
- B) The MAC address of the branch office router, because all of the branch's traffic leaves through it
- C) The subnet mask of the branch office network
- D) The branch office's public IP address or prefix, because IP addresses stay the same end to end while MAC addresses are replaced at every router
### 3. A host has the address `10.1.5.200/23`. Which are its network and broadcast addresses?
*Objective: 2 — binary conversion; network, broadcast and host range*
- A) Network `10.1.4.0`, broadcast `10.1.5.255`
- B) Network `10.1.5.0`, broadcast `10.1.5.255`
- C) Network `10.1.4.0`, broadcast `10.1.4.255`
- D) Network `10.1.0.0`, broadcast `10.1.7.255`
### 4. A Linux host can reach its neighbours but nothing outside its network. You see this output. What is the problem?
*Objective: 2 — binary conversion; network, broadcast and host range*
```text
$ ip -4 addr show dev eth0
inet 172.16.40.70/28 brd 172.16.40.79 scope global eth0
$ ip route
default via 172.16.40.1 dev eth0
172.16.40.64/28 dev eth0 proto kernel scope link src 172.16.40.70
```
- A) `172.16.40.79` is not a valid broadcast address for this host
- B) `172.16.40.70` is the network address, so it can't be assigned to a host
- C) The gateway `172.16.40.1` is outside the host's network `172.16.40.64/28` (hosts `.65`–`.78`), so the host can't reach it directly
- D) A `/28` is too small to contain a default gateway
### 5. A customer wants to host a game server at home. Their router's status page shows the WAN address `100.80.3.9`. What should you tell them?
*Objective: 3 — classifying addresses by purpose*
- A) That address is in the shared address space for Carrier-Grade Network Address Translation (CGN, RFC 6598): the Internet service provider (ISP) translates it again, so inbound connections from the Internet won't reach the router without the ISP's help
- B) It is a public address, so forwarding a port on the home router to the game server is all they need
- C) It is an RFC 1918 private address, so the router is misconfigured
- D) It is a link-local address, so the router failed to get an address from the ISP
### 6. You are writing a training guide that shows example firewall rules with server addresses. Which addresses should you use?
*Objective: 3 — classifying addresses by purpose*
- A) Addresses from `10.0.0.0/8`, because private addresses are reserved for examples
- B) Addresses from `100.64.0.0/10`, because nobody uses them inside companies
- C) Addresses from `198.51.100.0/24`, because they are reserved for documentation (RFC 5737) and never assigned to real hosts
- D) Any public address that doesn't answer to ping today
### 7. Why was IPv6 created?
*Objective: 4 — why IPv6 exists; recognizing IPv6 addresses and prefixes*
- A) IPv4 cannot carry encrypted traffic, so a new protocol with built-in encryption was needed
- B) IPv6 replaces MAC addresses, so switches no longer need them
- C) IPv4 has no multicast, so sending one stream to many receivers required a new protocol
- D) IPv4's 32-bit address space (about 4.3 billion addresses) ran out; NAT stretched it but breaks end-to-end addressing, while IPv6's 128-bit addresses remove the shortage
### 8. `ip addr` on a server shows `inet6 2001:db8:acad:7::1a/64 scope global`. Which statement is correct?
*Objective: 4 — why IPv6 exists; recognizing IPv6 addresses and prefixes*
- A) The `/64` means the network can hold 64 hosts
- B) The network prefix is `2001:db8:acad:7::/64`: the first four groups identify the network and the last 64 bits identify the interface
- C) This is a link-local address, because it contains `::`
- D) This is an IPv4 address written in hexadecimal
### 9. A small office has 40 laptops, 2 printers, a file server and one router. How should you address them?
*Objective: 5 — static addressing vs DHCP; private addressing and NAT*
- A) Dynamic Host Configuration Protocol (DHCP) for the laptops; static addresses for the router, the file server and the printers, which other devices must find at a predictable address
- B) Static addresses for every device, because DHCP hands out addresses to anyone who asks and is therefore insecure
- C) DHCP for everything, including the router that runs the DHCP server
- D) Link-local `169.254.x.x` addresses for everything, so no server is needed
### 10. A home with eight devices browses the Internet with a single public IPv4 address. What makes that possible?
*Objective: 5 — static addressing vs DHCP; private addressing and NAT*
- A) The DHCP server lends the single public address to each device in turn, a few seconds at a time
- B) The ISP routes the home's RFC 1918 addresses across the Internet and back to the home router
- C) The router uses Port Address Translation (PAT): it rewrites each outgoing packet's private source address and port to its public address and a unique port, and translates the replies back
- D) The router broadcasts every reply from the Internet to all eight devices
---
## Answer key
<details>
<summary>Show answers</summary>
| # | Answer | Explanation |
|---|---|---|
| 1 | B | The prefix length is the number of leading network bits; 32 − 22 = 10 host bits (1,022 usable hosts). Classes are obsolete since Classless Inter-Domain Routing (CIDR), and a `/22` isn't split at an octet boundary at all. |
| 2 | D | IP addresses identify a network and host end to end. MAC addresses are only used on one link and are rewritten by every router, so the server never sees the branch office's MAC addresses. |
| 3 | A | A `/23` has a block size of 2 in the third octet, so networks start at even numbers: `10.1.4.0`–`10.1.5.255`. Answer B treats the prefix as a `/24`. |
| 4 | C | `.70/28` falls in the block `.64`–`.79`, so the hosts are `.65`–`.78`. The broadcast (`.79`) is correct; the gateway `.1` is in another network, so the host can't send it frames directly. |
| 5 | A | `100.64.0.0/10` (`100.64.0.0`–`100.127.255.255`) is RFC 6598 shared space for CGN. It isn't RFC 1918 or link-local, and it isn't public: port forwarding on the home router alone won't work. |
| 6 | C | RFC 5737 reserves three `/24` blocks for documentation. Private addresses may clash with real internal networks, `100.64.0.0/10` belongs to ISPs' CGN, and public space belongs to someone else. |
| 7 | D | The motivation for IPv6 is address space. IPv4 handles encryption (for example Transport Layer Security, TLS, or IP Security, IPsec) and multicast fine, and IPv6 works at Layer 3, so it doesn't replace MAC addresses. |
| 8 | B | Each group is 16 bits, so `/64` covers four groups. A `/64` has 2⁶⁴ interface identifiers, not 64. `::` only compresses zero groups; link-local addresses start with `fe80:`. |
| 9 | A | DHCP scales and avoids typing errors for clients. Infrastructure that others point to (gateway, server, printers) needs a predictable address. Link-local addresses have no gateway. |
| 10 | C | PAT (NAT with port translation) lets many private hosts share one public address by tracking address/port pairs. RFC 1918 addresses are not routed on the Internet, and DHCP doesn't hand out the router's public address. |
</details>