1.6
Addresses: IP, MAC, Ports, ARP and DHCP
The three addresses on every packet, public vs private, subnets, and how a device gets and resolves them.
34 min Reading + animations
Tip: tap or hover any dotted-underlined term to see what it means.
By the end of this lesson you will be able to
- Name the three addresses every packet carries (MAC, IP, port) and say which layer uses each one and how far it travels.
- Read an IPv4 address in binary, split it into network and host parts with a subnet mask or CIDR prefix, and calculate network, broadcast, range and host count.
- Recognise private, public, loopback, link-local (169.254), CGNAT and documentation addresses, and read and shorten IPv6 addresses.
- Explain ports, sockets and the 5-tuple, and the well-known, registered and ephemeral port ranges.
- Walk through DHCP (DORA, leases) and ARP (request, reply, cache, gratuitous ARP, off-subnet traffic), including what goes wrong: no DHCP server, IP conflicts, rogue servers and spoofing.
- Spot four common myths: that MAC addresses are permanent, that IPv6 comes with mandatory IPsec, that 255.255.255.0 is a “classful” mask, and that the switch does ARP.
#Three addresses on every packet
When your laptop sends anything over a network, the data carries three different addresses, one per layer:
| Address | Layer | Example | Identifies | Travels |
|---|---|---|---|---|
| MAC address | L2 (Data Link) | 3c:22:fb:01:01:01 | One network interface on the local link | One hop: rewritten at every router |
| IP address | L3 (Network) | 192.168.1.10, 2001:db8::10 | A host (an interface) on the whole network | End to end (unless NAT rewrites it) |
| Port number | L4 (Transport) | 443, 53000 | One program / connection on that host | End to end (unless NAT rewrites it) |
The notes define the first two:
- IP (Internet Protocol) gives devices a logical address on the network and carries packets towards it. “Logical” means it is assigned by configuration, not burned into hardware, and it depends on which network you are on.
- MAC (Media Access Control) is the hardware address that identifies a network interface on the local network. Frames on Ethernet and Wi-Fi are delivered by MAC.
#IPv4 addresses
An IPv4 address is a 32-bit number. To make it readable, it is written as four octets (8-bit bytes) in decimal, separated by dots: dotted-decimal notation. Each octet is 0–255.
| Octet 1 | Octet 2 | Octet 3 | Octet 4 | |
|---|---|---|---|---|
| Decimal | 192 | 168 | 1 | 10 |
| Binary | 11000000 | 10101000 | 00000001 | 00001010 |
To convert an octet, add up the bit values that are 1: 128, 64, 32, 16, 8, 4, 2, 1. For 192 that is 128 + 64, so 11000000; for 10 it is 8 + 2, so 00001010.
32 bits give 2³² ≈ 4.3 billion addresses. That sounds a lot, but with phones, laptops, servers and IoT devices it ran out: the central pool (IANA) was exhausted in 2011, and the regional registries (APNIC for Bangladesh and Asia-Pacific) soon after. Private addresses, NAT and IPv6 are the answers you will meet below.
#Network part and host part
Every IPv4 address has two parts:
- the network part (prefix): which network the address belongs to, the same for every device on that subnet;
- the host part: which device inside that network.
Where the split happens is given by the subnet mask, written either in dotted form or as a CIDR prefix length (Classless Inter-Domain Routing): the number of leading 1-bits.
IP address 192.168.1.10 11000000.10101000.00000001.00001010
Subnet mask 255.255.255.0 11111111.11111111.11111111.00000000 (= /24)
───────── network (24 bits) ───────── host (8 bits)
Network 192.168.1.0 (host bits all 0)
Broadcast 192.168.1.255 (host bits all 1)
Usable hosts 192.168.1.1 – 192.168.1.254 → 2⁸ − 2 = 254
The address with all host bits 0 names the network itself, and the one with all host bits 1 is the subnet’s broadcast address (“everyone on this subnet”). That is why usable hosts = 2^(host bits) − 2.
| Prefix | Mask | Addresses | Usable hosts | Typical use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | The whole 10.0.0.0/8 private range |
| /16 | 255.255.0.0 | 65,536 | 65,534 | A cloud VPC, a campus |
| /24 | 255.255.255.0 | 256 | 254 | A home or office LAN, a cloud subnet |
| /25 | 255.255.255.128 | 128 | 126 | Half a /24 |
| /26 | 255.255.255.192 | 64 | 62 | A small subnet |
| /30 | 255.255.255.252 | 4 | 2 | Old-style point-to-point link |
| /31 | 255.255.255.254 | 2 | 2 | Point-to-point link (no network/broadcast needed) |
| /32 | 255.255.255.255 | 1 | 1 | One single host (firewall rules, routes) |
Each extra prefix bit halves the block. Splitting a network into smaller ones is called subnetting: a /24 can become two /25s, four /26s, and so on.
Those are exactly the two reasons networks are subnetted:
- Less broadcast traffic. ARP requests and DHCP discovers go to every device on the subnet. With 1,000 devices on one flat network, every machine spends time on everyone else’s broadcasts; with 5 subnets of 200, each broadcast reaches only its own room, because routers do not forward broadcasts.
- Easier security and access control. Traffic between subnets must pass a router or firewall, so you can write one rule for a whole room: “the guest Wi-Fi subnet may reach the internet but not the accounts subnet”.
Real subnets come in powers of two, not neat 200s. For 5 rooms of up to 200 devices you would use five /24 subnets (254 usable each), for example 10.1.1.0/24 to 10.1.5.0/24.
Subnet calculator: network part, host part
Type any IPv4 address and drag the prefix. Blue bits name the network, grey bits name the host inside it.
192.168.1.10 /24
Subnet mask 255.255.255.0
Subnet mask
255.255.255.0 (/24)
Network address
192.168.1.0/24
Broadcast address
192.168.1.255
Usable host range
192.168.1.1 – 192.168.1.254
Addresses in block
256
Usable hosts
254 (= 256 − 2)
Type of address: Private (192.168/16): not routed on the internet
Is this destination on my subnet?
192.168.1.20: Same subnet: the network bits match. The laptop ARPs for this address and sends the frame straight to it.
#Local or not? The decision every host makes
Before sending, a host compares the destination with its own network, using the mask (a bitwise “and” of the bits):
- Same network part → on my subnet: find the destination’s MAC with ARP and deliver the frame directly.
- Different network part → somewhere else: send the frame to the default gateway (the router), using the router’s MAC.
With mask /24, 192.168.1.20 is local to 192.168.1.10, but 192.168.2.5 and 198.51.100.20 are not. Try both in the calculator above. A wrong mask is a classic misconfiguration: hosts try to ARP for machines that are really behind the router, or send local traffic to the router for no reason.
#Public, private and special addresses
Some ranges are reserved for special purposes. Knowing them lets you read a configuration at a glance:
| Range | Name | Meaning |
|---|---|---|
10.0.0.0/8 | Private | Free for anyone to use internally; never routed on the internet (RFC 1918) |
172.16.0.0/12 | Private | 172.16.0.0 – 172.31.255.255 (not all of 172.x!) |
192.168.0.0/16 | Private | Typical home routers: 192.168.0.x or 192.168.1.x |
100.64.0.0/10 | Shared / CGNAT | Used inside ISPs that put customers behind carrier-grade NAT |
127.0.0.0/8 | Loopback | 127.0.0.1 = “this machine”; never leaves the host |
169.254.0.0/16 | Link-local (APIPA) | Self-assigned when DHCP fails; works only on the local link |
0.0.0.0 | Unspecified | “No address yet” (DHCP) or, when a server binds, “all interfaces” |
255.255.255.255 | Limited broadcast | Everyone on this link (used by DHCP Discover) |
224.0.0.0/4 | Multicast | One-to-many groups (streaming, routing protocols) |
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 | Documentation | For examples and books only, like the ones in this course |
Everything else is (roughly) public: globally unique, assigned through registries to ISPs and companies, and routable on the internet.
- A private address is unique only inside its own network. Millions of homes use
192.168.1.10at the same time. To reach the internet, the router’s NAT swaps it for a public address (lesson 1.7 covers NAT in detail). - CGNAT: many ISPs, especially mobile operators, no longer give each home router a public IPv4 address. The router gets a
100.64.x.xaddress and the ISP translates again. The side effect: nobody on the internet can open a connection into your home.
Private, public, CGNAT and loopback
Two homes use exactly the same private addresses. Only public addresses are unique on the internet.
Scenario
Both laptops are 192.168.1.10. That is fine: private ranges (10/8, 172.16/12, 192.168/16) are reused in millions of networks and are never routed on the internet.
#IPv6 addresses
IPv6 uses 128-bit addresses: 2¹²⁸ ≈ 3.4 × 10³⁸, enough to give every device a globally unique address with no NAT. They are written as eight groups of four hexadecimal digits, separated by colons:
Full: 2001:0db8:0000:0000:0000:ff00:0042:8329
Rule 1 (drop leading zeros in each group):
2001:db8:0:0:0:ff00:42:8329
Rule 2 (replace ONE run of consecutive all-zero groups with ::):
2001:db8::ff00:42:8329
:: may appear only once, otherwise you could not tell how many zero groups each one hides.
| Prefix | Type | Like IPv4’s… |
|---|---|---|
2000::/3 | Global unicast (public) | public addresses |
fe80::/10 | Link-local, on every interface automatically | 169.254.x.x, but always present and normal |
fc00::/7 (in practice fd00::/8) | Unique local | private ranges |
::1 | Loopback | 127.0.0.1 |
ff00::/8 | Multicast | multicast (IPv6 has no broadcast) |
2001:db8::/32 | Documentation | 192.0.2.0/24 etc. |
The usual split is /64: the first 64 bits are the network prefix (given by the router), the last 64 bits the interface ID, which a device can generate itself (SLAAC, shown in the DHCP animation below). In a URL, an IPv6 address goes in brackets so its colons are not confused with the port: https://[2001:db8::10]:443/.
Most networks today run dual stack: devices have both IPv4 and IPv6 addresses, and DNS returns both A and AAAA records.
The notes list IPv6’s benefits as auto-configuration (SLAAC, above), no need for NAT (every device can have a global address, though a firewall still decides what may come in) and “strong built-in security (IPsec)”. The last one needs a correction:
#MAC addresses
A MAC address is 48 bits (6 bytes), written as six pairs of hex digits: 3c:22:fb:01:01:01 (Linux, macOS) or 3C-22-FB-01-01-01 (Windows).
- The first 3 bytes are the OUI (Organizationally Unique Identifier), assigned by the IEEE to the manufacturer. You can look up a vendor from it. The last 3 bytes are chosen by the manufacturer.
ff:ff:ff:ff:ff:ffis the broadcast MAC: every device on the link accepts the frame.- A MAC belongs to a network interface, not to a device: a laptop has one for Wi-Fi and another for Ethernet.
- It is meant to be unique but is not fixed: software can change it, and phones and laptops now use a random MAC per Wi-Fi network for privacy (the second hex digit is then 2, 6, A or E, marking a “locally administered” address). Never treat a MAC as a secure identity.
#IP address vs MAC address
From the notes:
- The IP address identifies the packet’s network-level source and destination.
- The MAC address helps the frame reach the next device on the local link.
- When your computer sends to the router, the destination IP can be the server’s IP, but the destination MAC is usually the router’s local interface MAC.
- When the router forwards on the next link it builds a new link-layer frame, so the MAC addresses change on every link.
- In normal routing without NAT, the source and destination IPs stay the same end to end.
- An IPv4 router decrements TTL when it forwards a packet; in IPv6 the equivalent field is Hop Limit.
IP vs MAC: what changes on every link
The connection from the notes: 192.168.1.10:53000 → 198.51.100.20:443 over TCP. Highlighted fields were just rewritten.
Scenario
Built by the laptop
Source MAC
3c:22:fb:01:01:01
Destination MAC
00:1a:2b:00:00:01
Source IP
192.168.1.10
Destination IP
198.51.100.20
Source port
53000
Destination port
443
Protocol / flag
TCP SYN
TTL
64
The laptop opens a connection. Source IP 192.168.1.10 (its private address), destination IP 198.51.100.20 (the server), source port 53000 (a temporary port picked for this connection), destination port 443 (HTTPS), TCP with the SYN flag.
Self-checkQuestion
Your laptop (192.168.1.10/24) sends a packet to 198.51.100.20. What is the destination MAC address of the frame leaving the laptop?
#Ports
An IP address gets a packet to the right machine; a port gets it to the right program on that machine. A port is a 16-bit number, 0–65535, in the TCP or UDP header. TCP and UDP have separate port spaces: TCP 53 and UDP 53 are different.
The example from the notes: your computer opens a connection to a web server over HTTPS. (The addresses are reserved documentation examples, not a real Google server.)
| Field | Example | Meaning |
|---|---|---|
| Source IP | 192.168.1.10 | The client’s private IP |
| Destination IP | 198.51.100.20 | The server’s IP (example) |
| Source port | 53000 | The client’s temporary port |
| Destination port | 443 | The usual server port for HTTPS |
| Protocol | TCP | The transport protocol |
| TCP flags | SYN, ACK, … | Control the connection and data transfer |
In simple words:
- Source IP: where the packet is sent from.
- Destination IP: which IP the packet should reach.
- Source port: identifies this particular connection on the client.
- Destination port: identifies which transport service on the server the data goes to.
Port 443 is only the conventional port for HTTPS; it is not mandatory (https://example.com:8443 works fine). Likewise the client port 53000 is just an example, not a fixed rule: the operating system picks a free one for each new connection.
| Range | Name | Who uses it |
|---|---|---|
| 0–1023 | Well-known ports | Standard services; on Linux only root can listen on them by default |
| 1024–49151 | Registered ports | Applications registered with IANA (databases, tools) |
| 49152–65535 | Dynamic / ephemeral ports | Temporary client-side ports (Linux by default uses 32768–60999) |
Ports worth knowing by heart:
| Port | Service | Port | Service | |
|---|---|---|---|---|
| 22 | SSH | 443 | HTTPS (TCP, and UDP for HTTP/3) | |
| 25 | SMTP (mail between servers) | 3306 | MySQL | |
| 53 | DNS (UDP and TCP) | 5432 | PostgreSQL | |
| 67 / 68 | DHCP server / client (UDP) | 6379 | Redis | |
| 80 | HTTP | 27017 | MongoDB |
#Sockets and the 5-tuple
- A socket is one endpoint of a conversation: IP address + port (+ protocol), for example
198.51.100.20:443. - A server listens on a socket. A client connects from its own socket with an ephemeral port.
- Each connection is uniquely identified by its 5-tuple: protocol, source IP, source port, destination IP, destination port. That is how one server on port 443 handles thousands of clients at once, and how two browser tabs to the same site stay separate.
Ports and sockets: one IP, many conversations
An IP address gets the packet to the machine; the port gets it to the right program. A connection is identified by its 5-tuple.
Scenario
Connections on the server (5-tuples)
| Protocol | Remote IP:port | Local IP:port | Program |
|---|---|---|---|
| TCP | 192.168.1.10:53000 | 198.51.100.20:443 | nginx |
Tab 1 connects to the website. The operating system picks a free ephemeral source port, 53000. Destination: 198.51.100.20 port 443, where nginx is listening.
Two failure messages tell you a lot: “connection refused” (a fast TCP RST) means the machine is reachable but nothing listens on that port; a timeout usually means a firewall dropped the packet or the host is unreachable.
#DHCP: getting an address automatically
A device needs four things before it can use a network: an IP address, a subnet mask, a default gateway and DNS servers. Typing them by hand on every phone would be impossible, so DHCP (Dynamic Host Configuration Protocol) hands them out automatically. On a home network, the Wi-Fi router is the DHCP server.
DHCP: how a device gets its address
A laptop joins the Wi-Fi with no address at all. DHCP uses UDP: clients on port 68, servers on port 67.
Scenario
Discover, Offer, Request, Acknowledge: four messages and the device is ready.
The laptop has a MAC address but no IP, no gateway and no DNS server. It cannot send to anyone specific yet, so it must broadcast.
The four-message exchange is remembered as DORA:
- Discover (client → broadcast): “Is there a DHCP server?” The client has no IP yet, so it sends from
0.0.0.0to255.255.255.255, UDP port 68 → 67. - Offer (server → client): “You can have 192.168.1.10, mask /24, gateway .1, DNS .1, for 24 hours.”
- Request (client → broadcast): “I accept the offer from 192.168.1.1.” Broadcast so other DHCP servers know they were not chosen.
- Acknowledge (server → client): “Confirmed.” The lease starts. The ACK also carries the mask, the default gateway and the DNS servers.
Details that matter in practice:
- Leases expire. At 50 % of the lease the client renews directly with the server; at 87.5 % it asks any server; at 100 % it must stop using the address.
- Reservations make the server always give the same IP to the same MAC address: good for printers and home servers. Static addresses must be kept outside the DHCP pool, or you get conflicts.
- Broadcasts do not cross routers, so in big networks a DHCP relay on the router forwards requests to a central DHCP server.
- If no server answers, Windows and macOS self-assign 169.254.x.x (APIPA): the device can only reach other devices on the same link, with no internet. Seeing 169.254 means “DHCP failed”.
- Anyone can run a DHCP server, so a rogue DHCP server can hand out itself as gateway. Managed switches block this with DHCP snooping.
#ARP: from IP address to MAC address
The host now knows which IP to send to (the destination itself, or the gateway). But Ethernet and Wi-Fi deliver frames by MAC. ARP (Address Resolution Protocol) finds the MAC address that belongs to an IP address on the local network.
ARP: finding the MAC address for an IP
Laptop A (192.168.1.10/24) wants to send to an IP. Ethernet needs a MAC address first.
Scenario
A wants to reach 192.168.1.20. Its /24 mask says this is on the same subnet, so it can deliver directly. But its ARP cache has no MAC for .20.
How it works:
- The host checks its ARP cache. If the IP is there, done.
- If not, it broadcasts an ARP request (destination MAC
ff:ff:ff:ff:ff:ff, EtherType0x0806): “Who has 192.168.1.20? Tell 192.168.1.10.” - Every host on the link receives it; only the owner of that IP sends a unicast ARP reply: “192.168.1.20 is at
aa:bb:cc:00:00:20.” - The sender caches the answer for a while and sends the frame.
Key points:
- ARP is used only for neighbours on the same subnet. For any off-subnet destination, the host ARPs for its default gateway, never for the remote server. ARP broadcasts never cross a router.
- Gratuitous ARP is an announcement nobody asked for (“192.168.1.100 is at my MAC”). Devices send it when they come up, and high-availability pairs use it to move a virtual IP to the standby machine within a second.
- IP conflict: two devices with the same IP both answer ARP, and neighbours’ caches flip between them. Operating systems probe with ARP before using an address and warn “IP address conflict”.
- ARP spoofing: ARP has no authentication, so an attacker on the same LAN can claim the gateway’s IP and become a man-in-the-middle. Defences are Dynamic ARP Inspection on switches and, above all, encryption (TLS, SSH, VPN).
- IPv6 replaces ARP with NDP (Neighbor Discovery Protocol), which uses multicast ICMPv6 messages instead of broadcasts.
#Putting it all together
When your laptop joins a Wi-Fi network and opens a website, the addresses come into play in this order:
- DHCP gives the laptop its IP (
192.168.1.10/24), gateway (192.168.1.1) and DNS server. - The laptop wants to ask DNS. The DNS server is off-subnet (or is the router itself), so it ARPs for the gateway and caches the router’s MAC.
- DNS (lesson 1.8) turns the name into the server’s IP,
198.51.100.20. - The laptop opens a TCP connection from an ephemeral port (
53000) to port443, sending frames to the router’s MAC with the server’s IP inside. - The router applies NAT and the packet crosses the internet hop by hop, with new MACs on every link (lesson 1.5).
#Addressing in system design
- Plan cloud networks with CIDR. A VPC might be
10.0.0.0/16, split into/24subnets per availability zone, public and private. Make the ranges non-overlapping with your office, other VPCs and partners, because you cannot connect overlapping networks with peering or VPN without painful NAT. Leave room to grow; AWS also reserves 5 addresses in every subnet. - Private by default. Databases, caches and internal services live in private subnets with no public IP; only load balancers face the internet. Security groups and firewalls are written in terms of CIDR blocks and ports (“allow TCP 5432 from 10.0.1.0/24”).
- Do not hard-code IPs. Instances, containers and pods get new addresses when they restart. Use DNS names and service discovery, and floating/virtual IPs where needed.
- Ports are a finite resource. Proxies and NAT gateways that open many connections to one destination can run out of ephemeral ports. Connection pooling and keep-alive avoid it.
- IPv4 is scarce and costs money. Clouds now charge for public IPv4 addresses, which is pushing services towards IPv6 and shared load balancers.
- Know the special ranges when debugging. 169.254.x.x means DHCP failed (also used by cloud metadata services at
169.254.169.254); 100.64.x.x on your router’s WAN means CGNAT; a 127.0.0.1 binding means local only.
#Try it yourself
# Your IP, mask, gateway, DNS, MAC and DHCP lease
ipconfig /all # Windows
ip addr; ip route # Linux ("default via ..." is your gateway)
ifconfig; netstat -rn # macOS
# Your ARP / neighbour cache
arp -a # Windows, macOS, Linux
ip neigh # Linux
# Release and renew the DHCP lease (watch DORA in Wireshark with filter "dhcp")
ipconfig /release && ipconfig /renew # Windows
sudo dhclient -r && sudo dhclient # Linux
# Which programs listen on which ports, and your open connections (5-tuples)
netstat -ano # Windows
ss -tlnp # Linux: listening TCP sockets
ss -tn # Linux: established connections
# Your public IP as the internet sees it (compare with ipconfig!)
curl -4 https://ifconfig.me
curl -6 https://ifconfig.me
If ipconfig shows 192.168.x.x but curl -4 ifconfig.me shows something else, that difference is NAT. If your router’s WAN address starts with 100.64–100.127, you are behind CGNAT.
#Summary
Key takeaways
- Every packet carries a MAC (L2, one hop, rewritten at every router), an IP (L3, end to end unless NAT) and a port (L4, which program).
- IPv4 is 32 bits in four octets. The subnet mask / CIDR prefix splits it into network and host parts; usable hosts = 2^(host bits) − 2 (a /24 has 254).
- A host sends directly (after ARP) to destinations on its subnet, and to the default gateway for everything else.
- Private ranges 10/8, 172.16/12, 192.168/16 are reused everywhere and need NAT; also know 127.0.0.1 loopback, 169.254 (DHCP failed), 100.64/10 (CGNAT) and the documentation ranges.
- IPv6 is 128 bits in hex groups; drop leading zeros and replace one run of zero groups with
::. Link-localfe80::, loopback::1, no broadcast, /64 subnets. - Ports 0–65535: well-known (22, 53, 80, 443…), registered (3306, 5432, 6379), ephemeral (49152–65535). A socket is IP:port; a connection is a unique 5-tuple.
- DHCP (Discover, Offer, Request, Acknowledge) leases an IP, mask, gateway and DNS. ARP maps an IP to a MAC on the local link with a broadcast request and unicast reply, cached; gratuitous ARP announces, spoofing abuses it.
- Myths to drop: MACs are not permanent (phones use a random MAC per Wi-Fi network); IPv6 does not force IPsec on (RFC 6434 made it optional);
255.255.255.0is just/24written differently, not “classful”; the host sends ARP, the switch only forwards it. - Subnet for two reasons: smaller broadcast domains and access control between subnets.
Answer on your own first, then read the explanation, even when you got it right.
Self-checkQuestion
How many bits long is an IPv4 address?
Self-checkQuestion
What is the octet 192 in binary?
Self-checkQuestion
What do the first three bytes of a factory-assigned MAC address tell you?
Self-checkQuestion
Which of these is a private (RFC 1918) address?
Self-checkQuestion
In which order are the four DHCP messages exchanged when a device joins a network?
Self-checkQuestion
Which port range does IANA reserve as dynamic or ephemeral ports, used for temporary client-side ports?
Self-checkQuestion
What is the shortest correct form of 2001:0db8:0000:0000:0000:0000:0000:0001?
Self-checkQuestion
IPv6 has no ARP. What finds a neighbour’s MAC address on an IPv6 link?
Self-checkQuestion
Choose two. Which of these addresses are never routed on the public internet?
Choose 2
Self-checkQuestion
How many usable host addresses does the subnet 10.0.5.0/26 have?
Self-checkQuestion
A colleague’s laptop shows the address 169.254.37.12 and has no internet. What is the most likely problem?
Self-checkQuestion
Two browser tabs open HTTPS connections to the same server at 198.51.100.20:443. What keeps the two connections apart?
Self-checkQuestion
A home router gives a daughter’s phone a fixed address through a DHCP reservation tied to the phone’s MAC, and a parental-control rule uses the same MAC. After she toggles Wi-Fi settings, the rule stops working and the phone gets a different IP. What is the most likely reason?
Self-checkQuestion
A manager says: we should move our office to IPv6 because IPv6 has IPsec built in and switched on, so our traffic will be encrypted automatically. What is the correct reply?
Self-checkQuestion
Choose two. A company has 1,000 devices on one flat network and splits it into five subnets of about 200 devices each. Which two benefits does this bring?
Choose 2
Self-checkQuestion
PC A (192.168.1.10) and PC B (192.168.1.20) are plugged into the same switch. A has never talked to B. Who sends the ARP request asking who has 192.168.1.20?
Self-checkQuestion
A laptop gets an address from the office DHCP server with a 3-day lease. The owner goes on leave and the laptop stays switched off for 2 weeks. What happens when it is turned on again in the office?
Self-checkQuestion
A configuration file contains the network 10.20.30.0 with mask 255.255.255.0. A colleague calls it a classful class C network. What is accurate?
Self-checkQuestion
How many usable host addresses does a /27 subnet have?
Self-checkQuestion
A host has the address 192.168.10.77/26. What are its network and broadcast addresses?
Self-checkQuestion
A server is 10.0.1.10/25 and wants to reach 10.0.1.200. What does it do?
Self-checkQuestion
A PC is set to 192.168.1.10 with mask 255.255.0.0 by mistake; the office uses /24 subnets and 192.168.2.5 is behind the router. The PC cannot reach 192.168.2.5. Why?
Self-checkQuestion
The office network is 10.0.0.0/16 and connects to the cloud by VPN. A colleague proposes 10.0.0.0/16 for a new VPC as well. What should you say?
Self-checkQuestion
You want to host a game server at home. Your router’s WAN address is 100.72.14.9. Friends cannot connect even after you set up port forwarding. Why?
Self-checkQuestion
On an office LAN, users suddenly see certificate warnings, and arp -a on several PCs shows the gateway’s IP mapped to the MAC of an unknown laptop. What is happening, and what defends against it?
Self-checkQuestion
Some users on a LAN lose internet, and ipconfig shows their gateway as 192.168.1.66, a machine nobody recognises, instead of the router 192.168.1.1. What is the most likely cause, and the switch feature that prevents it?
Self-checkQuestion
A printer was given the static address 192.168.1.50, which is inside the DHCP pool 192.168.1.20–192.168.1.200. Occasionally the printer and a laptop both stop working on the network. What is the best fix?
Self-checkQuestion
Choose two. Which statements about ARP are true?
Choose 2
Self-checkQuestion
Choose two. Which statements about IPv6 are true?
Choose 2
Self-checkQuestion
Choose two. Besides the mask and DNS servers, what does a DHCP server normally hand a client?
Choose 2