IT141 · SESSION 6 · FIELD NOTES

DHCPv4: New Hire Day

Every host at the OSI Company has an address someone typed in by hand. That was fine for four PCs. It isn't fine for a floor of new hires. This session R1 becomes the onboarding desk, leasing addresses, gateways and DNS servers automatically. There's one problem: the new hires shout their requests as broadcasts, and broadcasts don't cross a router. D1 learns to carry the message.

Exam Module group 5–6 New material Module 7 — DHCPv4 Network change hosts move to DHCP; the home router's WAN port Next session Module 8 — SLAAC and DHCPv6; Module 9 — FHRP

Module 7

What Session 6 covers

The module-group exam on Modules 5–6 comes first. Then one module, in NetAcad's order: how DHCPv4 works; configuring a Cisco router as a DHCPv4 server, including relaying requests from other subnets; and configuring a router as a DHCPv4 client.

Cold open · Local Dispatch, New Hire Day

Twelve new laptops arrive at Front Desk on a cart. The Rookie looks at the stack, then at the spreadsheet of addresses, then at the clock. "We're not typing twelve addresses," says the Surveyor. "R1 hands them out. That's what the onboarding desk is for." The Rookie plugs in the first laptop and waits. Nothing. It gives itself a 169.254 address and sulks. "It's shouting," the Surveyor says, pointing at the capture. "It doesn't know where the desk is, so it asks the whole room. But the desk is two doors away, and shouts don't go through doors." She taps D1. "Somebody in the room has to hear the shout and walk it over."

Topology used on this page HQ as Session 5 left it: three EtherChannels in a triangle, D1 as the gateway for VLANs 10, 30 and 99, and D1's routed link to R1 (10.0.0.8/30). R1 becomes the DHCP server for HQ, on a different subnet from every host, so D1 relays for it. At the Shipping site, R2 serves its own LAN, 192.168.20.0/24, directly. The addressing rule stays the same: in each /24, .1–.100 are static and .101 up are leased.

Module group exam

Modules 5–6: cross-module review

The exam covers Spanning Tree and EtherChannel. If you can answer these cold, Sessions 4 and 5 have landed.

Where to actually study The checkpoints, flashcards and quizzes for Session 4 and Session 5, plus the election drill and the bundle drill.

Module 7.1

How DHCPv4 works

DHCPv4 (Dynamic Host Configuration Protocol) hands a host everything it needs to use the network: an IPv4 address and mask, a default gateway, DNS servers, and a domain name. The address is leased, not given: the host borrows it for a set time.

CCNA 1 callback In CCNA 1 you met DORA and learned which of its messages are broadcasts, and you used a 169.254 address as the clue that DHCP had failed. Configuring the server, and ipconfig /release and /renew, were left for CCNA 2. Here they are.

A new client has no address and doesn't know where the server is, so it starts with a broadcast. Four messages follow, often remembered as DORA:

Clientno address yet DHCP serverUDP 67 1 · DISCOVERbroadcast 2 · OFFERusually unicast 3 · REQUESTbroadcast 4 · ACKusually unicast
Figure 1. DORA on one subnet. The client's two messages are broadcasts, because it has no address and doesn't know where the server is. The server's two replies are usually unicast to the client's MAC address.
MessageFrom → toWhat it says
DHCPDISCOVERClient → everyone (broadcast)"I need an address. Is there a DHCP server out there?" The client has no address yet, so it sends from 0.0.0.0 to 255.255.255.255.
DHCPOFFERServer → client (usually unicast)"You can have this address, with this mask, gateway and DNS server, for this long." The server reserves the address while it waits.
DHCPREQUESTClient → everyone (broadcast)"I'll take the offer from that server." Broadcast, so any other server that made an offer can withdraw it.
DHCPACKServer → client (usually unicast)"Confirmed. The lease starts now." The client checks nobody else is using the address (with ARP), then uses it.

Module 7.1

Leases and renewal

A lease has an expiry time, one day by default on a Cisco router. A client doesn't wait for the end: it renews well before.

WhenWhat the client does
50% of the lease (T1)Sends a DHCPREQUEST straight to the server that gave it the lease (unicast). The server answers with a DHCPACK, and the lease starts over. No discover, no offer.
87.5% of the lease (T2)If its own server never answered, it broadcasts a DHCPREQUEST, so any server can renew it.
Lease expiresIt stops using the address and starts over with a DHCPDISCOVER.

A shorter lease frees unused addresses faster, which suits a busy guest network; a longer one means less DHCP traffic. On a Windows PC, ipconfig /release gives the lease back and ipconfig /renew asks for one, which is how you test DHCP without waiting.

Module 7.2

Configure a Cisco router as a DHCPv4 server

A Cisco IOS router can be a full DHCP server. Two pieces of configuration: the addresses it must never hand out, and a pool for each subnet it serves.

HQ's design rule decides the pools: in each /24, .1–.100 are for static devices and are excluded, and the rest is leased. VLAN 30 is a /26, so its excluded block is smaller.

VLANSubnetExcludedLeasedAddresses
10192.168.10.0/24.1–.100.101–.254154
30192.168.30.0/26.1–.9.10–.6253
99192.168.99.0/24.1–.100.101–.254154, with no clients until Session 10
R1 · exclusions first, then one pool per VLAN
R1# configure terminal ! Exclusions are global, not inside a pool. Do them first, so no address leaks out ! before the range is protected. R1(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.100 R1(config)# ip dhcp excluded-address 192.168.30.1 192.168.30.9 R1(config)# ip dhcp excluded-address 192.168.99.1 192.168.99.100 ! R1(config)# ip dhcp pool HQ-VLAN10 R1(dhcp-config)# network 192.168.10.0 255.255.255.0 ! The gateway is D1's SVI. R1 isn't on this subnet at all. R1(dhcp-config)# default-router 192.168.10.1 R1(dhcp-config)# dns-server 192.168.20.100 R1(dhcp-config)# domain-name it141.example R1(dhcp-config)# exit ! R1(config)# ip dhcp pool HQ-VLAN30 ! The /26 mask. A /24 here is the classic mistake. R1(dhcp-config)# network 192.168.30.0 255.255.255.192 R1(dhcp-config)# default-router 192.168.30.1 R1(dhcp-config)# dns-server 192.168.20.100 R1(dhcp-config)# domain-name it141.example R1(dhcp-config)# exit ! R1(config)# ip dhcp pool HQ-VLAN99 R1(dhcp-config)# network 192.168.99.0 255.255.255.0 R1(dhcp-config)# default-router 192.168.99.1 R1(dhcp-config)# dns-server 192.168.20.100 R1(dhcp-config)# domain-name it141.example R1(dhcp-config)# end R1# copy running-config startup-config
CommandWhat it sets
ip dhcp excluded-address low [high]Addresses never leased: gateways, servers, printers, anything static
ip dhcp pool nameCreates a pool and enters dhcp-config mode. The name is a local label, and case-sensitive.
network address maskThe subnet the pool leases from. This, not the name, ties a pool to a VLAN.
default-router addressThe gateway the client will use: D1's SVI, never the server's own address
dns-server addressThe DNS server (SRV1)
domain-name nameThe DNS suffix, it141.example
lease days [hours [minutes]] | infiniteThe lease time. HQ keeps the 1-day default; lease 0 8 would be 8 hours.

Module 7.2

DHCP relay: carrying the shout across the door

A DHCPDISCOVER is a broadcast, and routers don't forward broadcasts. A PC in VLAN 30 shouts, D1 hears it on its Vlan30 SVI, and the message stops there. R1, the server, never hears it. A DHCP relay agent fixes that.

PC-CVLAN 10 D1relay · Vlan10 R1server .9 DISCOVERbroadcast unicastto 10.0.0.9 giaddr 192.168.10.1 OFFERto the giaddr OFFERonto VLAN 10 REQUEST and ACK take the same two legs each way
Figure 2. The same exchange through HQ's relay. The broadcast stops at D1, so D1 forwards it to R1 as a unicast and writes its own Vlan10 address in the giaddr field. R1 uses the giaddr twice: to choose the VLAN 10 pool, and as the address to send its reply to.

A relay agent is an interface that listens for DHCP broadcasts from clients and forwards each one as a unicast to a server address it has been given. On a Cisco router or Layer 3 switch, that's one command on the interface where the clients' broadcasts arrive: ip helper-address.

D1 · one helper on each SVI
D1# configure terminal D1(config)# interface vlan 10 D1(config-if)# ip helper-address 10.0.0.9 D1(config-if)# exit D1(config)# interface vlan 30 D1(config-if)# ip helper-address 10.0.0.9 D1(config-if)# exit ! No VLAN 99 client until Session 10, but the relay is ready with the pool. D1(config)# interface vlan 99 D1(config-if)# ip helper-address 10.0.0.9 D1(config-if)# end D1# copy running-config startup-config

The giaddr: two jobs

When D1 relays, it writes the address of the interface the broadcast arrived on, 192.168.10.1, into the message's giaddr (gateway IP address) field. R1 uses it twice:

R1 · the routes back to every giaddr (from Session 3)
R1# show ip route static ... S 192.168.10.0/24 [1/0] via 10.0.0.10 S 192.168.20.0/24 [1/0] via 10.0.0.2 192.168.30.0/26 is subnetted, 1 subnets S 192.168.30.0 [1/0] via 10.0.0.10 S 192.168.99.0/24 [1/0] via 10.0.0.10

R1 already had these from Session 3. Without the VLAN 30 route, R1 would hear PC-D, answer, and drop the answer: it has no default route until Session 11.

Check the relay on D1

D1 · is the helper set?
D1# show ip interface vlan 10 Vlan10 is up, line protocol is up Internet address is 192.168.10.1/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 1500 bytes Helper address is 10.0.0.9 ...

On real IOS, an SVI without a relay says Helper address is not set.

Module 7.2

The direct case: R2 serves its own LAN

No relay is needed when the server sits on the client's own subnet. R2's G0/0/1 is the gateway for the Shipping LAN, so its clients' broadcasts reach R2 directly.

R2 · a pool for its own LAN
R2# configure terminal R2(config)# ip dhcp excluded-address 192.168.20.1 192.168.20.100 R2(config)# ip dhcp pool SHIPPING-VLAN20 R2(dhcp-config)# network 192.168.20.0 255.255.255.0 R2(dhcp-config)# default-router 192.168.20.1 R2(dhcp-config)# dns-server 192.168.20.100 R2(dhcp-config)# domain-name it141.example R2(dhcp-config)# end R2# copy running-config startup-config

The excluded block protects R2's own .1, S3's management address .2, and SRV1 at .100.

HQ (VLANs 10, 30, 99)Shipping (VLAN 20)
ServerR1R2
Is the server on the clients' subnet?No. R1 isn't in any HQ VLAN.Yes. R2 G0/0/1 is 192.168.20.1.
Relay needed?Yes: ip helper-address on each D1 SVINo: the broadcast reaches R2 directly
How the server picks the poolFrom the giaddr the relay wroteFrom the address of the interface the broadcast arrived on
Route back needed?Yes, to each giaddrNo: the clients are on a connected network

Either way the server needs no interface command. A pool whose network matches the clients' subnet is enough.

Module 7.2

Verify DHCPv4

Check both ends: the client should have the right address, mask, gateway and DNS server, and the server should list the lease.

On the client

PC-C · after switching to DHCP (IP Configuration → DHCP)
C:\> ipconfig /all FastEthernet0 Connection:(default port) Connection-specific DNS Suffix..: it141.example Physical Address................: 00E0.F70C.0011 Link-local IPv6 Address.........: FE80::2E0:F7FF:FE0C:11 IPv6 Address....................: 2001:DB8:ACAD:10:2E0:F7FF:FE0C:11 IPv4 Address....................: 192.168.10.101 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: FE80::1 192.168.10.1 DHCP Servers....................: 10.0.0.9 DNS Servers.....................: :: 192.168.20.100 ...
LineWhere it came from
DNS Suffix it141.exampleThe pool's domain-name
IPv4 Address .101The first free address after the excluded block
Subnet MaskThe pool's network line
Default Gateway 192.168.10.1The pool's default-router. FE80::1 above it comes from D1's IPv6 router advertisements, not DHCP.
DHCP Servers 10.0.0.9R1, not D1, even though D1 relayed the request. PC-C sends its renewals there.
DNS Servers 192.168.20.100The pool's dns-server

PC-D's check is its mask: 255.255.255.192 proves the /26 pool answered. The MAC addresses on this page are made up, and the address each PC gets depends on the order the clients asked in.

PC-C · give the lease back, then ask again
C:\> ipconfig /release IP Address......................: 0.0.0.0 Subnet Mask.....................: 0.0.0.0 Default Gateway.................: 0.0.0.0 DNS Server......................: 0.0.0.0 C:\> ipconfig /renew IP Address......................: 192.168.10.101 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.10.1 DNS Server......................: 192.168.20.100

On the server

R1 · the leases it has handed out
R1# show ip dhcp binding IP address Client-ID/ Lease expiration Type Hardware address 192.168.10.101 00E0.F70C.0011 -- Automatic 192.168.30.10 0090.2B5D.0030 -- Automatic
R1 · the whole server configuration on one screen
R1# show running-config | section dhcp ip dhcp excluded-address 192.168.10.1 192.168.10.100 ip dhcp excluded-address 192.168.30.1 192.168.30.9 ip dhcp excluded-address 192.168.99.1 192.168.99.100 ip dhcp pool HQ-VLAN10 network 192.168.10.0 255.255.255.0 default-router 192.168.10.1 dns-server 192.168.20.100 domain-name it141.example ip dhcp pool HQ-VLAN30 network 192.168.30.0 255.255.255.192 ...
R1 · message counters (counts made up for illustration)
R1# show ip dhcp server statistics Address pools 3 Automatic bindings 2 ... Message Received DHCPDISCOVER 3 DHCPREQUEST 3 DHCPRELEASE 1 ... Message Sent DHCPOFFER 3 DHCPACK 3 DHCPNAK 0

The counters are a fault-finding tool: run the command, make a client ask, and run it again. If DHCPDISCOVER didn't go up, the request never reached R1. Troubleshoot uses exactly that.

Beyond the module: two more show ip dhcp pool shows each pool's size and how many addresses are leased (a /26 pool shows 62 addresses in total, a /24 shows 254, which makes a wrong mask obvious). show ip dhcp conflict lists addresses the server found already in use before it could lease them.

Module 7.3

A router as a DHCPv4 client

Routers usually have static addresses, but the interface facing an internet provider often doesn't: the provider leases it. A Cisco router interface, and the internet port of a home router, can both be DHCP clients.

A Cisco router interface

One interface command, ip address dhcp, in place of a static address. The router then runs DORA on that link like any PC.

Scratch router · G0/0/0 leases an address from R2
Router(config)# interface g0/0/0 Router(config-if)# ip address dhcp ! Router interfaces start shut. Without this, nothing is ever sent. Router(config-if)# no shutdown Router(config-if)# end %DHCP-6-ADDRESS_ASSIGN: Interface GigabitEthernet0/0/0 assigned DHCP address 192.168.20.103, mask 255.255.255.0, hostname Router
Scratch router · proof the address came from DHCP
Router# show ip interface brief Interface IP-Address OK? Method Status Protocol GigabitEthernet0/0/0 192.168.20.103 YES DHCP up up GigabitEthernet0/0/1 unassigned YES unset administratively down down Router# show ip interface g0/0/0 GigabitEthernet0/0/0 is up, line protocol is up Internet address is 192.168.20.103/24 Broadcast address is 255.255.255.255 Address determined by DHCP ...

A home router's internet port

A home wireless router has two sides. Its internet port is a DHCP client: home routers ship set to lease an address from whatever they're plugged into, so a customer can connect one to a modem and go. Its LAN side is a DHCP server for the home, handing out 192.168.0.x behind NAT. The two ranges never mix.

In Packet Tracer the setting is in the router's GUI tab, under Setup → Basic Setup → Internet Setup: Automatic Configuration - DHCP. The Status page should show the address it leased. Menu names can differ slightly between Packet Tracer versions. The home router is on S3 F0/3 at the Shipping site, so R2 is its provider.

One cable, two very different devices Plugged in by its internet port, the home router is a well-behaved client of R2. Plugged in by a LAN port, its own DHCP server starts answering the Shipping LAN, and PC-B could end up with a 192.168.0.x address. That's a rogue DHCP server, and stopping one is Session 9's job.

Module 7

Troubleshoot DHCPv4

Start at the client. A 169.254 address means nothing answered; a real address with wrong settings means a server answered, and the fault is in what its pool hands out.

FaultSymptom on the clientThe command that shows itFix
1 · No helper on one SVI (Vlan30)PC-D: 169.254. PC-C in VLAN 10 is fine.D1 show ip interface vlan 30: Helper address is not setip helper-address 10.0.0.9 on Vlan30
2 · Helper on the wrong interface (G1/0/24)Every HQ PC: 169.254D1 show running-config interface g1/0/24: the helper is there, and the SVIs have noneMove it to each SVI
3 · Helper at the wrong address (10.0.0.10, D1's own end)That VLAN: 169.254D1 show ip interface vlan 10; R1's DHCPDISCOVER counter doesn't moveno ip helper-address 10.0.0.10, then the right one. A second helper line adds; it doesn't replace.
4 · Pool doesn't match the subnet (network 192.168.31.0 …)PC-D: 169.254R1 show running-config | section dhcp; statistics: DISCOVER goes up, OFFER doesn'tCorrect the network line
5 · No route back to the giaddr (R1 missing its VLAN 30 route)PC-D: 169.254R1 show ip route: no 192.168.30.0; statistics: DISCOVER and OFFER both go upPut the route back. The server replies to the giaddr, so it needs a route to it.
6 · no service dhcp on R1, or on D1Every HQ PC: 169.254show running-config | include service dhcp shows a no service dhcp line (a healthy device shows nothing)service dhcp. On IOS it switches off the relay too, not just the server.
7 · Wrong mask in the pool (VLAN 30 as /24)PC-D gets an address with mask 255.255.255.0, and works, for nowipconfig: the mask. Later clients get .63, VLAN 30's broadcast address, and then .64 and up, outside the /26.Fix the network line, then ipconfig /renew
8 · Wrong default-router (10.0.0.9, or another VLAN's .1)The PC gets an address and reaches its own subnet onlyipconfig: the gateway isn't its VLAN's .1Fix the pool, then ipconfig /renew on each client
9 · A static device inside the leased rangeOn real IOS, usually nothing visible: the server pings before offering and skips the address. If Packet Tracer doesn't check, two devices end up with the same address.R1 show ip dhcp conflict (beyond the module)Move the static device into the excluded block
10 · Client port in the wrong VLANThat client: 169.254, or an address from the wrong VLAN's poolThe switch's show vlan briefswitchport access vlan …

The method: follow the request

A 169.254 address says only that no offer came back. Walk the path in the order the request travels:

  1. Client: is it set to DHCP, and is its switch port in the right VLAN?
  2. Relay (HQ only): does that VLAN's SVI have the right helper?
  3. Did the server hear it? R1's DHCPDISCOVER counter, before and after an ipconfig /renew. If it didn't move, go back to the relay.
  4. Did the server answer? If DISCOVER moved but OFFER didn't, look at the pools.
  5. Did the answer get back? If OFFER moved and the client still has nothing, check R1's route to the giaddr.
  6. Address, but stuck in its own subnet? Then it's the options (gateway, mask), not the lease.

If Packet Tracer's counters don't move, use Simulation mode with the DHCP filter instead: you can see which leg the request stops on.

Watch for this

Common Module 7 mistakes

Most DHCP faults are a missing relay, a pool that disagrees with the subnet, or an exclusion that leaves out the wrong addresses.

1 · The helper on the wrong interface

On D1's link to R1 instead of the SVIs. The helper goes where the clients' broadcasts arrive.

2 · The gateway is the server

default-router 10.0.0.9. The default router is the gateway the client uses, D1's SVI for that VLAN. The server's address has nothing to do with it.

3 · The /26 typed as a /24

VLAN 30's pool with 255.255.255.0. PC-D works today, and later clients get addresses outside its subnet. Check the mask in ipconfig.

4 · Exclusions after the pool

If a client asks between the pool and the exclusion, it can be handed a static device's address. Exclude first.

5 · Forgetting to renew

A fixed pool doesn't reach clients that already have a lease. ipconfig /renew after every pool change.

6 · Reading 169.254 as "the network is down"

It only means no DHCP offer came back. Ping the gateway from a static host: if that works, the problem is DHCP.

End of session

What works now, and what doesn't

The routing and switching haven't changed. What's new is that most hosts now configure themselves.

TestResultWhy
Everything that worked at the end of Session 5WorksNo routing or switching change today
A new PC on an HQ VLAN 10 or 30 port, set to DHCPGets a full configurationR1's pools, through D1's relay
A new PC on S3 (VLAN 20), set to DHCPGets a full configurationR2, directly
PC-B, PC-C and PC-D → www.it141.exampleWorksThe DNS server came from DHCP
HQ DHCP if the R1–R2 link failsStill worksThe helper points at 10.0.0.9, not 10.0.0.1
HQ DHCP if D1 failsNoD1 is both the relay and the gateway. That's Session 7's problem.
VLAN 99 DHCPReady, with no clientsThe access point arrives in Session 10
IPv6 addresses from DHCPNoModule 8, Session 7
Protection against a rogue DHCP serverNoneSession 9: DHCP snooping
Coming up in Session 7 IPv6 hosts have been configuring themselves since Session 3, with SLAAC. Module 8 shows how, and how a router's announcements tell a host whether to use SLAAC, DHCPv6, or both. Module 9 then asks what happens to every gateway at HQ if the router behind it dies.

Recurring segment

The Ticket

Turn it into steps before you open the answer.

Ticket #141-06 · Priority: high · From: Logistics

The new hire at the Logistics desk can't get onto anything. Their PC says something about "APIPA". The Front Desk new hire, who started the same day, is fine. We didn't change anything.

One way to break it down
  1. "APIPA" means a 169.254 address: no DHCP offer reached the PC. The network itself may be fine.
  2. Front Desk works, Logistics doesn't. Same server, different VLAN. So R1's pools in general are fine, and the fault is something VLAN 30 has on its own: its access port, its relay, its pool, or R1's route back to it.
  3. Check the PC first: set to DHCP? Then its port: show vlan brief on S2, Fa0/11 should be in VLAN 30.
  4. Check the relay: show ip interface vlan 30 on D1 should show Helper address is 10.0.0.9.
  5. Check the server heard it: show ip dhcp server statistics on R1 before and after ipconfig /renew on the PC. DISCOVER up but OFFER not: the VLAN 30 pool (show running-config | section dhcp). Both up: R1's route to 192.168.30.0/26.
  6. Verify: the PC gets 192.168.30.x with mask 255.255.255.192 and gateway 192.168.30.1, then reaches www.it141.example.

Before Session 7

Checkpoint: Module 7

If you can do these cold, you're ready for SLAAC and DHCPv6.

Study

Flashcards

Click to flip. Double-click to mark as known.

Check yourself

Sample questions

Pick an answer to see if you're right. Same style as the module-group exam.

Applied

Worked examples

Think it through before you expand the answer.

Broadcasts

Which DORA messages are broadcasts?

A client has held 192.168.10.101 for 12 hours of its one-day lease, and has been running the whole time. Which message does it send now, and is it a broadcast? Which messages are broadcasts in a brand-new exchange?

Show answer

Twelve hours is half the lease, which is T1, so it renews with a unicast DHCPREQUEST straight to the server. Only a client with no address (or one whose renewals all failed) starts over with a broadcast DHCPDISCOVER. In a brand-new exchange, the DISCOVER and the REQUEST are the broadcasts.

Relay

Which pool?

PC-D in VLAN 30 asks for an address. D1 relays it to R1, which has pools for VLANs 10, 30 and 99. How does R1 know to use the VLAN 30 pool?

Show answer

From the giaddr. D1 relayed the request from its Vlan30 SVI, so it wrote 192.168.30.1 in the giaddr field. That address is inside the HQ-VLAN30 pool's network, 192.168.30.0/26, so R1 offers a VLAN 30 address, and sends the offer back to 192.168.30.1.

Counting

How many leases?

How many addresses can R1 lease in VLAN 30, and why isn't it 62?

Show answer

The /26 has 62 usable addresses, .1 to .62. .1–.9 are excluded, which leaves .10 to .62: 53 addresses. That's enough for CCNA 1's "LAN-C, 50 users".

Exclusions

Why didn't PC-D keep .9?

PC-D had the static address 192.168.30.9. After moving to DHCP it got 192.168.30.10. Why not .9 again?

Show answer

.9 is inside the excluded range, .1–.9, so the server will never lease it. The first address it can lease is .10. The rule works both ways: static devices live in the excluded block, and leased ones never land there.

Direct vs relay

Why no helper at R2?

PC-B gets its address from R2 with no ip helper-address anywhere. Why does HQ need one and Shipping doesn't?

Show answer

R2's G0/0/1 is 192.168.20.1, on PC-B's own subnet, so PC-B's broadcast reaches R2 directly. R1 isn't on any HQ VLAN: the broadcasts stop at D1, so D1 has to relay them.

Reference

Glossary & index

Every term from this session. Search, or jump by letter.