NETW 0014 Week 3, Day 2 — DHCP Troubleshooting & Reservations

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

18 Terms

1
New cards

Which DORA messages are broadcasts, and why?

the Discover and the Request: the client has no address yet

2
New cards

What does sudo dhcpd -t -cf /etc/dhcp/dhcpd.conf do?

tests the file without touching the running service

3
New cards

What does journalctl -u isc-dhcp-server do?

shows why a start failed and which interfaces it uses

4
New cards

What does /var/log/dhcpd.log (via log-facility) do?

shows each DISCOVER, OFFER, REQUEST and ACK once it is running

5
New cards

What would an error resulting from a missing semicolon look like?

dhcpd -t reports line N: semicolon expected., where N is the line after the one you broke

6
New cards

What would an error resulting from a range outside the declared subnet look like?

dhcpd -t reports bad range, address ... not in subnet ... with no file or line number

7
New cards

What would an error resulting from A missing subnet for the interface look like?

dhcpd -t passes, because the file itself is valid, but when the service starts it logs No subnet declaration for eth0 ... and Not configured to listen on any interfaces! and exits, so the service is failed and nothing answers.

8
New cards

A host { hardware ethernet <MAC>; fixed-address <IP>; } block pins an address to a client. The address does not need to be inside the range, only inside the declared subnet. Why do you want to keep the address outside the range?

Keep it outside the range, so that the pool can never hand that address to another client. The match is on the client's hardware (MAC) address as carried in the packet, so a mistyped MAC silently falls back to a pool address.

9
New cards

A client with a reservation is not written to dhcpd.leases - where would you find its Offer and Ack instead?

find its Offer and Ack in /var/log/dhcpd.log

10
New cards

How would you force a fresh exchange on S2?

To force a fresh exchange on S2 (NetworkManager): bring the connection down and up again, or reapply the device.

11
New cards

What happens if two DHCP servers share a segment?

both Offer, the client takes one, overlapping ranges cause duplicates: one authoritative server per segment, and rogue-server detection is a real network-security control.

12
New cards

Which error did not show up in dhcpd -t, and how did you find it?

the missing subnet; the journal

13
New cards

Can a server on 10.12.1.0/24 serve a different subnet?

not without a relay agent, because DISCOVER is a broadcast that does not cross routers (ip helper-address in IOS).

14
New cards

What is the likely cause and fix for the following issue: S2 does not get the reserved address

MAC mistyped, config not reloaded, or S2 did not re-request

Copy the MAC exactly from ip -br link on S2; test and restart dhcpd; bring S2's connection down and up; read the dhcpd log for the match

15
New cards

What is the likely cause and fix for the following issue: The capture shows nothing

Capturing on eth1, or S2 did not re-request

Capture on eth0 with port 67 or port 68; take S2's connection down and up

16
New cards

What is the likely cause and fix for the following issue: Service shows failed after a restart, and S2 gets nothing

Missing or mismatched subnet block

Read the journal for "No subnet declaration for eth0"; restore the subnet

17
New cards

What is the likely cause and fix for the following issue: Renewal not visible in the capture

Lease not shortened, or the client has not reached T1 yet

Confirm the new lease time in the lease file; wait about half the lease, with the capture running

18
New cards

What is the likely cause and fix for the following issue: S2 stranded without an address

The server stopped or the scope was broken

Restore S1's working config first; if needed use the Hyper-V console and nmcli on S2