Network Services – DHCP, DNS and More
BeginnerLesson 6 of 9 in Networking Fundamentals Course
What you will learn
- Explain how hosts lease their addresses, configure DHCP scopes and relay agents, keep a reliable record of the address space, and fix clients that get no address or the wrong settings.
- Follow how a client leases, renews and releases an addressDescribe the four DHCP messages, the lease timers and the options a client receives, and recognize what a self-assigned address means. Compare DHCP with the ways IPv6 hosts get their addresses.
- Configure a DHCP scope with exclusions, reservations and optionsPlan a scope for a subnet, keep fixed addresses out of the pool, reserve addresses for particular devices, choose a lease time and verify the server, using Cisco IOS as the worked example.
- Relay DHCP across subnets and troubleshoot failed leasesExplain why clients in other subnets need a relay agent, configure one with ip helper-address, and work through the usual causes of missing or wrong addresses, including rogue servers and exhausted pools.
- Plan and track the address space with IPAMBuild a structured address plan, keep records of every subnet and assignment, measure how full each subnet is, and keep the records in line with what is really on the network.
- Follow how a client leases, renews and releases an address
- Read and write the common DNS record types, follow a name lookup step by step from the client to the authoritative server, and diagnose name-resolution problems with command-line tools.
- Read DNS zones and record typesExplain the DNS namespace, zones and authoritative servers, and read and write the A, AAAA, CNAME, MX, NS, PTR, TXT and SOA records, including reverse zones and time to live.
- Follow how a name is resolvedTrace a lookup from the client's own resolver through a recursive resolver, the root, the top-level domain and the authoritative server, and explain caching, forwarders, the hosts file and secure DNS options.
- Diagnose name-resolution problemsSeparate DNS faults from connectivity faults, query DNS servers directly with nslookup, dig and Resolve-DnsName, read their results, and fix stale caches, record mistakes and client misconfiguration.
- Read DNS zones and record types
- Synchronize device clocks with NTP, collect status and counters with SNMP, and gather and interpret syslog messages so that events across the network can be monitored and lined up.
- Synchronize clocks with NTPExplain why accurate time matters, how NTP strata and polling work, configure NTP client and server mode on network devices, and compare NTP with PTP and secure time options.
- Monitor devices with SNMPDescribe the SNMP manager, agent, MIB and OIDs, the operations and ports, the differences between versions 1, 2c and 3, and calculate link utilization from interface counters.
- Collect and read syslog messagesExplain the syslog severity levels and facilities, send device logs to a central collector, read Cisco-format messages and line up events using correct timestamps.
- Synchronize clocks with NTP
- Explain how quality of service protects delay-sensitive traffic on congested links, and how proxies and load balancers stand between clients and servers to filter, cache and share traffic.
- Classify and mark traffic for QoSDescribe what quality of service controls and why voice and video need it, classify traffic, and read and choose CoS and DSCP markings, including EF, AF and CS values and the trust boundary.
- Manage congestion with queuing, dropping, policing and shapingExplain where congestion arises and how queuing, tail drop, WRED, policing and shaping each handle excess traffic, and choose between policing and shaping for a given link.
- Explain forward and reverse proxiesDescribe how a proxy relays requests, compare forward and reverse proxies and their uses, and explain explicit and transparent setups, HTTPS inspection, caching and common proxy faults.
- Distribute traffic with load balancersExplain how a load balancer presents one virtual address for a pool of servers, checks their health, chooses a server with common algorithms and keeps sessions together, and compare it with DNS round robin.
- Classify and mark traffic for QoS
DHCP and DNS study guide
1Give devices the right addresses
A device needs more than an unused IP address: it also needs the right mask, gateway and DNS servers for its subnet. DHCP supplies these settings and keeps track of leases, while a relay lets one server serve several networks. You will build a scope, trace a failed lease from client to server, and keep the address plan accurate as devices join, move and leave. IPAM connects that plan to the live DHCP and DNS records.
1.1 How a DHCP lease begins and stays valid
DHCP, the Dynamic Host Configuration Protocol, supplies an IPv4 address and settings for a limited time called a lease. The server listens on UDP 67; the client uses UDP 68. Laptops, printers, phones and router interfaces can all be clients. On Cisco IOS, ip address dhcp makes an interface request its settings.
Get the first lease
A new client uses four messages, remembered as DORA:
- Discover: with no usable address or known server, the client broadcasts from 0.0.0.0 to 255.255.255.255.
- Offer: a server proposes an address, lease time and settings.
- Request: the client asks for the chosen offer. This request is normally broadcast, so other offering servers learn that they were not selected.
- Acknowledge: the chosen server confirms the lease. The client can now use it.
For example, a laptop receives 192.168.10.57/24, gateway 192.168.10.1, DNS server 192.168.10.5 and an 8-hour lease. Many clients check the address with ARP before using it. If another host answers for that address, the client sends DHCPDECLINE and starts again.
Settings arrive as numbered options. Option 1 supplies the subnet mask, 3 the router, 6 the DNS servers, 15 the domain name and 51 the lease time. Options such as 43 or 150 help phones and access points find a controller or configuration server. A correct address with an incorrect DNS server is therefore still a DHCP configuration problem.
Renew before the lease ends
The lease has two default renewal times, measured from its start:
| Time | Client action | For an 8-hour lease |
|---|---|---|
| T1: 50% | Unicast Request to the original server | After 4 hours |
| T2: 87.5% | Broadcast Request that any server may answer | After 7 hours |
| Expiry | Stop using the address and begin Discover again | After 8 hours |
An acknowledgment during renewal restarts the lease, usually for the same address. Users keep working during normal background renewal; a short lease does not disconnect them on a schedule.
On Windows, ipconfig /all shows the server and lease times. ipconfig /release returns the address, and ipconfig /renew requests a lease. A device that leaves without releasing still occupies its lease until it expires. If DHCP fails, Windows may assign itself a link-local APIPA address such as 169.254.37.112. This permits communication with other link-local hosts on that segment, but provides no routed internet access.
Compare IPv6 address setup
With SLAAC, a host builds an IPv6 address using a /64 prefix advertised by a router. Router Advertisement flags direct hosts toward DHCPv6: M requests managed address configuration; O requests other settings such as DNS. Stateful DHCPv6 supplies an address; stateless DHCPv6 supplies extra settings while SLAAC supplies the address. DHCPv6 uses UDP 546 for clients and 547 for servers. The default gateway comes from Router Advertisements or manual configuration, not DHCPv6.
Key Takeaways
- DORA establishes the initial lease; an Offer alone does not confirm it.
- DHCP options supply settings such as the gateway and DNS servers.
- Default T1 and T2 are 50% and 87.5% of the lease.
- An expired lease must no longer be used.
- An APIPA address points to a failed IPv4 lease process.
- IPv6 hosts learn their default gateway from a router, not DHCPv6.
1.2 Build and verify a DHCP scope
A scope, called a pool on Cisco devices, combines a subnet's leasable addresses with the settings clients need there. Plan the addresses before entering commands, so the DHCP server and devices configured by hand never claim the same address.
Choose the available range
Start with the network, prefix and usable host range. List the gateway, servers and other fixed devices, then exclude their addresses. For 192.168.10.0/24, the usable range is .1 through .254. Excluding .1 through .20 leaves .21 through .254:
That pool supports 234 leases. An expected 260 clients will not fit; use a larger subnet such as a /23 with 510 usable addresses, or another subnet. Count excluded and reserved space as well as active users when planning growth.
An exclusion tells the server never to lease an address. A reservation ties an address to a particular MAC address or client identifier, while the device still uses DHCP. A printer with a reservation receives updated DNS settings at renewal. A printer with a manually typed static configuration must be updated on the device itself.
| Choice | Where it is controlled | How conflicts are avoided |
|---|---|---|
| Static address | On the device | Keep it outside the dynamic range or exclude it |
| Reservation | On the DHCP server | Associate it with the intended client |
| Dynamic lease | On the DHCP server | Allocate from the available pool |
Configure a pool on Cisco IOS
Enter the exclusion in global configuration. The remaining settings belong inside the pool:
ip dhcp excluded-address 192.168.10.1 192.168.10.20
ip dhcp pool OFFICE
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 192.168.10.5
domain-name example.com
lease 0 8
lease 0 8 means 0 days and 8 hours. Without a lease command, the IOS default is 1 day. The gateway must match this subnet; copying another pool's default-router can leave clients able to reach local hosts but unable to leave their network.
Check the result with show ip dhcp pool for pool capacity, show ip dhcp binding for clients and expiry times, and show ip dhcp conflict for addresses removed after a conflict. Windows Server uses the same scope, exclusion, reservation and option concepts; scope options can override server-wide options.
Match lease time and redundancy to demand
Guest Wi-Fi benefits from leases of roughly 1–4 hours because departed devices release their space sooner through expiry. Stable desktops can use leases lasting several days; the Windows Server default is 8 days. A pool of 200 addresses with 60 new guest devices each day can fill in about 3.3 days if those leases remain held. Shortening the configured duration helps as new leases and renewals take effect; it does not instantly erase existing leases.
Two servers may split the range without overlap, such as an 80/20 split, or use a supported failover feature that shares lease state. Two independent servers must not freely allocate the same addresses: each could otherwise give one address to a different client.
Key Takeaways
- Exclude manually assigned addresses from DHCP.
- A reservation keeps a fixed assignment under DHCP control.
- Calculate capacity after exclusions and other unavailable addresses.
- Set the gateway separately for each subnet.
- Verify capacity, bindings and conflicts with different commands.
- Independent DHCP pools serving one subnet must not overlap.
1.3 Find where the lease process stops
A client broadcasts its Discover on its local segment. An ordinary router does not forward that broadcast, so a DHCP server in another subnet needs a relay agent to hear it. The relay usually runs on the router or layer-3 switch interface that serves as the client subnet's gateway.
Relay the request and identify the subnet
The relay receives the broadcast and sends a unicast request to the server. It inserts its client-facing interface address in giaddr, the gateway IP address field. The server uses this address to select the client's scope and sends its reply back through the relay.
For VLAN 20, suppose the gateway is 192.168.20.1 on GigabitEthernet0/1 and the server is 10.0.0.10. Configure:
interface GigabitEthernet0/1
ip helper-address 10.0.0.10
The command belongs on the client-facing interface. A helper on the server-facing interface misses the client broadcast. The server also needs a scope for 192.168.20.0/24 and a route back to 192.168.20.1. A second helper line can name a backup server. On IOS, helper addresses forward several UDP broadcast services by default, including DNS and TFTP, so review that behavior when designing the network.
Work outward from the client
Use the symptom to choose the next check:
| Observation | Next check |
|---|---|
| A 169.254 address | Whether a usable DHCP reply arrived |
| Correct subnet, wrong gateway or DNS | Scope options and the responding server |
| Only a new VLAN fails | VLAN membership, its scope and its relay |
| New clients fail while old clients work | Available pool space and conflict entries |
| Unexpected private subnet and gateway | The DHCP Server entry in ipconfig /all |
Then inspect the path. Confirm the switch port's VLAN, the helper's server address, routing in both directions and ACL or firewall rules for DHCP. Clients use UDP 68 and servers UDP 67; relay-to-server traffic uses the server port. A working DNS service does not show that DHCP traffic is permitted.
For example, VLAN 10 works but a new VLAN 30 receives only APIPA addresses. If the server is remote and VLAN 30 has no helper, its Discover never reaches the server. Add the relay on that VLAN's gateway and verify that the server has a matching scope before testing renewal again.
Fix the cause before clearing state
An exhausted pool has no free addresses to offer. In show ip dhcp pool, compare leased addresses with total minus excluded addresses, then check the conflict list for further unavailable space. Repeated ipconfig /renew requests cannot create capacity. Review stale exclusions and reservations, adjust lease duration for turnover, or enlarge the address space.
A static device inside the dynamic pool can cause duplicate-address warnings. Find and correct that overlap, then clear resolved conflict entries with clear ip dhcp conflict * when appropriate. Clearing the list while the duplicate still exists invites the same fault again.
An unauthorized rogue DHCP server, often a connected home router, may supply the wrong gateway. Identify it from the client configuration and remove it. DHCP snooping prevents untrusted switch ports from sending server replies, protecting later clients from the same mistake.
Key Takeaways
- A relay converts the local DHCP broadcast into a request to a remote server.
- The server uses giaddr to choose the client subnet’s scope.
- Place the helper on the client-facing interface.
- Check pool space and conflicts before retrying failed leases.
- Identify the responding server when clients receive unexpected settings.
1.4 Keep an address plan that matches the network
IP address management (IPAM) joins planning with record keeping and discovery. It answers practical questions: Which subnet belongs to this VLAN? Who owns this address? Is it static, reserved or leased? Which range still has room? A spreadsheet can hold a small plan; a dedicated tool can also compare that plan with live devices. Products combining DNS, DHCP and IPAM are called DDI.
Record enough to make the next change safely
For every subnet, record its network and prefix, VLAN ID, gateway, purpose, location, DHCP range and exclusions. For each static assignment, record the hostname, MAC address, device type, owner and assignment date. These fields make it possible to distinguish an address that is merely quiet from one that is available for reuse.
A site using 10.20.0.0/16 might assign:
| Function | Subnet |
|---|---|
| Staff | 10.20.10.0/24 |
| Phones | 10.20.20.0/24 |
| Printers | 10.20.30.0/24 |
| Device management | 10.20.99.0/24 |
Within each subnet, .1 can be the gateway, .2–.20 the fixed range, and .21–.254 the DHCP range. Documenting this pattern helps an engineer recognize a device's role and prevents two teams from allocating overlapping space. The plan still needs an individual record when a fixed address is assigned.
Measure headroom
Address utilization compares used addresses with usable addresses:
A /22 has 1,022 usable IPv4 addresses. If 870 are in use, utilization is about 85.1%. An alert threshold of 80% would already have triggered planning for more space. Keep this subnet measure separate from DHCP pool availability: exclusions and reservations can leave a dynamic pool full even while the subnet still has unassigned addresses.
Reconcile the plan with evidence
IPAM discovery can read DHCP leases, DNS records and router ARP tables, and scan subnets. Compare these views: a discovered address with no owner may be an undocumented device; a recorded server with no current evidence may have been retired. Investigate the difference before changing the assignment.
Before assigning a static address, check the IPAM record, DHCP leases and DNS. A failed ping is too little evidence: the current owner may be switched off or may block ping. After assigning the address, record the device and protect the assignment from DHCP. When retiring it, reclaim the address and remove stale DNS records so a future user does not inherit the old name.
DHCP can update DNS dynamically, keeping a client's A and PTR records aligned with its lease. IPAM brings these records into one view, but automatic discovery still needs an accurate plan and ownership information to explain what a device is supposed to be doing.
IPv6 removes the pressure to count every possible host address in a /64. It does not remove the need to plan. Record which /64 prefix belongs to each site and VLAN, along with gateways and important fixed assignments. Track the structure and ownership of the address space even when individual host addresses change often.
Key Takeaways
- Record each subnet’s prefix, VLAN, gateway and allocation ranges.
- Track the owner and assignment method of fixed addresses.
- Use utilization trends to plan before capacity runs out.
- Check several records before reusing an address; silence to ping is insufficient.
2Read DNS answers and trace name lookups
A name lookup depends on several pieces working together: the client’s local settings, a resolver, the servers responsible for the domain, and cached answers along the way. Learning who supplies each answer makes DNS faults easier to locate. You will read records, follow a lookup from the root to the domain, and compare replies from different servers to find stale data, missing records and blocked traffic.
2.1 What DNS records tell clients
DNS, the Domain Name System, stores information under names arranged in a tree. Read www.example.com. from right to left: the root is the final dot, com is the top-level domain, and example and www identify lower levels. A fully qualified domain name (FQDN) gives the complete path to the root.
Find who owns the answer
A zone is a managed part of that tree, held on authoritative name servers. The primary holds the editable copy; secondaries hold read-only copies obtained by zone transfer over TCP 53. The SOA serial number lets secondaries detect a newer version. Multiple authoritative servers keep answers available when one server fails.
Read the record type before its value
| Record | What it holds |
|---|---|
| A | An IPv4 address for a name |
| AAAA | An IPv6 address for a name |
| CNAME | Another name, the alias's canonical target |
| MX | A mail server name and preference number |
| NS | An authoritative server name for a zone |
| PTR | A name returned by a reverse address lookup |
| TXT | Text such as an SPF rule or ownership proof |
| SOA | Primary server, contact, serial number and zone timers |
| SRV | A server location for a named service |
For example, "www.example.com. 3600 IN A 203.0.113.10" maps a name to an IPv4 address. "www.example.com. 3600 IN AAAA 2001:db8::10" supplies IPv6. In these records, 3600 is the cache lifetime in seconds and IN is the internet class.
An alias such as "shop.example.com. 3600 IN CNAME www.example.com." points to the name, not directly to its address. A lookup follows that target to obtain an A or AAAA answer. A CNAME cannot share its name with ordinary data such as A, MX, SOA or NS records. DNSSEC metadata is a special exception. The zone apex needs SOA and NS records, so a standard CNAME cannot be placed there; provider alias or flattening features are different record-handling features.
MX preferences run in the opposite direction from a “higher is better” score. With preference 10 for mail1.example.com. and 20 for mail2.example.com., senders try mail1 first. MX values must be hostnames with direct A or AAAA records. MX and NS targets must not be CNAME aliases.
Reverse the address and control caching
Forward lookups start with a name; reverse lookups start with an address. For IPv4 address 203.0.113.25, the PTR owner is 25.113.0.203.in-addr.arpa.. IPv6 reverse lookup uses reversed hexadecimal digits under ip6.arpa. Adding an A record does not create a PTR unless an update feature does so.
Time to live (TTL) is the maximum normal cache lifetime in seconds: 300 is 5 minutes, 3600 an hour and 86400 a day. Before an address change, lower the TTL from 86400 to 300 and wait at least the old day-long TTL. Then change the address, allowing ordinary caches to refresh within 5 minutes, and raise the TTL again after the move.
In a zone file, a name without a final dot is relative to the current zone. Writing mail.example.com in the example.com zone produces mail.example.com.example.com. Use mail.example.com. for the complete name, or the relative name mail.
Key Takeaways
- Read the record type to distinguish an address, alias, mail route or authority.
- Lower MX preference numbers are tried first.
- PTR records support reverse lookups and are maintained separately from A records.
- A CNAME cannot coexist with ordinary records at the same name.
- A TTL change does not shorten copies already cached with the old TTL.
- Use a final dot for an absolute name in a zone file.
- Increase the SOA serial when publishing a changed zone.
2.2 Follow a lookup through DNS
A computer does not normally contact every DNS server itself. Its stub resolver asks a recursive resolver to obtain the answer. The resolver either has a usable cached answer or contacts the servers that are authoritative for parts of the name.
Start on the client
Local sources include the hosts file and the client's DNS cache. A hosts entry can override DNS for that computer. The Windows path is C:\Windows\System32\drivers\etc\hosts; Linux and macOS use /etc/hosts. A forgotten test entry can explain why one computer reaches an old server while every other computer works.
The client learns its resolver address from DHCP option 6 or manual configuration. Its request is recursive: it asks that resolver for the final answer. The client is delegating the search, not asking for directions to the next DNS server.
Work from the root toward the name
For a lookup of www.example.com with empty caches:
- The client asks its recursive resolver.
- The resolver asks a root server, which refers it to the
comservers. - A
comserver refers it to the authoritative servers forexample.com. - A domain server returns
"A 203.0.113.10", with TTL 3600. - The resolver caches that answer and returns it to the client.
The resolver's requests along the hierarchy are iterative: each server supplies its best answer or referral. The root does not hold every site's address. There are 13 root server identities, named a through m, each served by many physical systems using anycast addresses.
The next client can receive the cached answer without repeating this search. A tool may label it "Non-authoritative answer"; this identifies the answer's source, not an error. Referrals and negative answers are cached too. An NXDOMAIN result can therefore remain visible after a missing name has been added, until its negative cache lifetime ends.
Use forwarding when another resolver should search
A resolver can send unanswered requests to an upstream forwarder, which performs the search. A conditional forwarder sends requests for a particular domain to designated servers. For example, a company can direct a partner's internal domain to the partner's resolver while sending ordinary public names elsewhere.
| Request path | Who finishes the search? |
|---|---|
| Client recursive query | The client's resolver |
| Resolver iterative queries | The resolver follows successive referrals |
| Query sent to a forwarder | The upstream recursive resolver |
Separate privacy from authenticity
Ordinary DNS uses UDP or TCP port 53. Most small queries use UDP; zone transfers and many large replies use TCP. DNS over TLS (DoT) encrypts the client-resolver connection on TCP 853. DNS over HTTPS (DoH) carries queries through HTTPS on port 443 and can bypass filtering that watches only ordinary DNS.
DNSSEC instead lets a validating resolver check signatures and detect altered or forged DNS data. It does not encrypt queries or answers. Encryption protects the transport path; signed data supports authenticity.
After an address edit, authoritative servers publish the new data but do not push it into every resolver cache. Users can temporarily receive different answers because their cached copies have different remaining TTLs. That cache lifetime explains the usual delay described as “DNS propagation.”
Key Takeaways
- The stub asks a recursive resolver for a final answer.
- Iterative replies guide a resolver through the DNS hierarchy.
- A cached non-authoritative answer can be correct.
- Forwarders search for other resolvers; conditional forwarding selects by domain.
- DoH and DoT encrypt transport; DNSSEC validates DNS data.
2.3 Use DNS replies to locate a fault
Start with the exact failure. “Could not find host” means a name lookup failed. “Connection refused” after a successful lookup points elsewhere. Testing a known address and then its name helps separate name resolution from access to the destination.
If ping 203.0.113.10 works but ping www.example.com reports that it cannot find the host, investigate resolution. If both fail, check addressing and routing, but remember that ping can also be filtered. A failed ping alone cannot establish that DNS is broken or that the service is unreachable.
Ask the right server directly
Find the configured DNS servers using ipconfig /all, resolvectl status, or /etc/resolv.conf where applicable. Then compare queries:
nslookup www.example.com
nslookup www.example.com 192.0.2.53
nslookup -type=MX example.com
dig @192.0.2.53 example.com MX
dig -x 203.0.113.25
dig +trace www.example.com
Resolve-DnsName www.example.com -Type AAAA
The first lookup tests the client's selected resolver; an explicit server address tests a chosen resolver or authority. dig +trace follows referrals. A successful direct query but a failing application lookup suggests local settings, cache or the hosts file.
Interpret the reply
| Result | Meaning |
|---|---|
| NOERROR with answer data | The requested data was returned |
| NOERROR without requested data | The name has no answer of that type |
| NXDOMAIN | The queried name does not exist |
| SERVFAIL | The server could not complete the lookup |
| REFUSED | The server's policy rejects the query |
| No reply or timeout | Check reachability and whether the server responds |
SERVFAIL can follow an unreachable authority or failed DNSSEC validation. REFUSED is different: a reachable server may allow recursion only for internal clients. In dig, the aa flag identifies an authoritative answer.
Compare old and new data
Suppose a server moved from 203.0.113.10 to 203.0.113.80. The authority returns .80 while the office resolver returns .10 with time left on an old 86400-second TTL. The edit is published; the office cache is stale. Wait for expiry or clear the affected resolver and client caches. ipconfig /flushdns clears the Windows client cache, not every upstream cache. Lowering the TTL in advance avoids a long wait during a planned move.
When only one computer differs, inspect its hosts file and local cache. When authoritative servers disagree, compare SOA serials: a changed primary zone with an unchanged serial may not transfer to secondaries.
Match the failing service to its records
A wrong A record affects IPv4. An incorrect or unusable AAAA record can cause IPv6 connection delays even when IPv4 works; an IPv4-only server does not need an AAAA record. For mail, verify the MX names and their direct A or AAAA records. Without MX, senders can try the domain's own address records. A missing PTR may affect mail acceptance and makes logs harder to read.
Finally, allow both UDP and TCP 53 where ordinary DNS requires them. A firewall allowing UDP alone may pass small replies yet break large answers and zone transfers.
Key Takeaways
- Use the exact error to separate a lookup failure from a connection failure.
- Compare the configured resolver with a specific server and the authority.
- NXDOMAIN, SERVFAIL and REFUSED describe different problems.
- A client cache flush does not clear an upstream resolver.
- Wrong AAAA data can cause delays; missing AAAA data is valid for IPv4-only services.
- Permit DNS over TCP as well as UDP.
3Put device reports on a shared timeline
A useful incident record needs three things: clocks that agree, measurements that show how devices are behaving, and event messages that explain what changed. NTP supplies shared time, SNMP collects device values, and syslog gathers events. You will configure and verify these services, turn byte counters into traffic rates, and read severity thresholds so the collector receives the events you need.
3.1 Keep clocks in sync with NTP
Shared time makes events comparable. If a switch records a port failure and a router records a lost neighbor, accurate timestamps help establish their order. Time also affects certificate validity and authentication: Active Directory's Kerberos default allows only 5 minutes of clock difference.
Understand the clock hierarchy
NTP, the Network Time Protocol, exchanges timestamped packets over UDP 123. Four timestamps let the client estimate its clock offset and network delay. It polls repeatedly, commonly at intervals of 64–1,024 seconds. Small corrections are usually made gradually, called slewing, to avoid sudden backward jumps.
A stratum describes distance from a reference clock:
| Stratum | Example |
|---|---|
| 0 | A GPS receiver or atomic reference clock |
| 1 | A time server connected directly to that reference |
| 2 | A router synchronized to the stratum 1 server |
| 3 | A switch synchronized to that router |
| 16 | An unsynchronized system |
Usable network strata run from 1 to 15. Stratum is not an accuracy score: a nearby stratum 2 server may produce better results than a distant stratum 1 source reached over a variable-delay path.
Use several upstream sources, ideally at least four, for the internal time servers. This lets NTP compare sources and reject a false one. Other network devices can synchronize to those internal servers, limiting external traffic and keeping the local timeline consistent.
Configure and verify a client
On Cisco IOS, ntp server 192.0.2.123 selects an upstream server; adding prefer marks a preferred source. A synchronized device can then answer time requests from other devices. ntp master 4 instead advertises the router's own clock as a stratum 4 source. Its default is stratum 8 when the number is omitted. Use such a local reference only when no better source exists, such as in an isolated lab.
Check show ntp status for synchronization and the local stratum. If the upstream is stratum 2, the synchronized client becomes stratum 3. In show ntp associations, an asterisk marks the selected source. Allow several minutes for a new association to settle before treating the initial unsynchronized state as a persistent fault.
NTP distributes UTC. The device's time-zone and daylight-saving configuration controls the displayed local time. For example, clock timezone CET 1 sets a one-hour standard offset on IOS. An exact whole-hour error suggests display settings. Many organizations log in UTC to avoid converting between sites during an incident.
Protect time and choose the needed precision
Symmetric-key authentication limits accepted time sources to those sharing the configured key. Network Time Security (NTS) uses a TLS-based key exchange on TCP 4460, then authenticates the NTP packets that still travel over UDP 123. Restrict which hosts may query or control time services as well.
Precision Time Protocol (PTP, IEEE 1588) follows a grandmaster clock and uses hardware timestamps in network cards and switches to reach sub-microsecond accuracy on suitable local networks. It serves needs such as mobile networks and industrial control where ordinary NTP's millisecond-level timing is insufficient. PTP can run over Ethernet or IP; IP transport uses UDP 319 for event messages and UDP 320 for general messages. SNTP is a simpler NTP implementation for clients with less demanding time needs.
Key Takeaways
- NTP uses UDP 123 and synchronizes time in UTC.
- A client’s stratum is one above its chosen upstream; stratum 16 is unsynchronized.
- A lower stratum alone does not guarantee better accuracy.
- Verify synchronization status and the selected association.
- Time-zone settings control local display, not the time supplied by NTP.
- NTS authenticates NTP; PTP provides hardware-assisted precision.
3.2 Read device values and calculate link use
SNMP, the Simple Network Management Protocol, lets a monitoring manager read data from an agent on a device. The data is described by a management information base (MIB). Each object has an object identifier (OID), a dotted path in a tree. For example, 1.3.6.1.2.1.1.5.0 identifies sysName; 1.3.6.1.2.1.1.3.0 identifies sysUpTime. Vendor objects live under the enterprises branch, 1.3.6.1.4.1.
Combine scheduled polling with alerts
The agent listens on UDP 161 for requests. The manager receives traps and informs on UDP 162.
| Operation | Purpose |
|---|---|
| Get | Read a value |
| GetNext or GetBulk | Walk through related objects, such as interface tables |
| Set | Change a writable value |
| Trap | Send an unsolicited event notification without acknowledgment |
| Inform | Send a notification that requests acknowledgment |
A manager might poll traffic, CPU and memory every 5 minutes to build graphs. A trap can report a failed link immediately. Use both: traps may be lost over UDP, and a failed device may be unable to send any notification. Informs retry according to timeout and retry settings, but can still fail after retries run out.
Choose a secure version
SNMPv1 and v2c send a community string in plain text. Read-only (RO) access permits reads; read-write (RW) access also permits supported changes. Version 2c adds GetBulk, informs and high-capacity counters. SNMPv3 uses accounts with security levels noAuthNoPriv, authNoPriv and authPriv. Prefer authPriv, which authenticates and encrypts messages, where supported.
An IOS v2c configuration can use snmp-server community N3tM0n-RO RO 10 to restrict reads using ACL 10. snmp-server host 192.0.2.50 version 2c N3tM0n-RO selects the notification receiver, and snmp-server enable traps enables traps. A v3 example is:
snmp-server group NMS v3 priv
snmp-server user monitor NMS v3 auth sha <auth-password> priv aes 128 <priv-password>
Avoid default communities such as "public" and "private", limit access to management hosts and grant write access only when needed. SNMP exposes MIB objects; it is not a remote command shell.
Convert a counter change into utilization
Counters measure accumulated bytes, also called octets. Suppose ifHCInOctets rises from 18,250,000,000 to 19,750,000,000 in 300 seconds:
- Subtract the readings: 1,500,000,000 bytes arrived.
- Multiply by 8: 12,000,000,000 bits arrived.
- Divide by 300 seconds: 40,000,000 bit/s, or 40 Mbit/s.
- Divide by the 100 Mbit/s link rate: inbound utilization averaged 40%.
This is an interval average, so brief peaks may be higher. Forgetting the byte-to-bit factor gives a rate eight times too small.
A 32-bit counter reaches 4,294,967,295 and wraps to zero. At 1 Gbit/s it wraps in about 34 seconds, so a 5-minute poll interval can miss several wraps. Use 64-bit ifHCInOctets and ifHCOutOctets, supported by v2c and v3, for fast links. Check counter continuity before interpreting a negative difference as negative traffic.
Key Takeaways
- The manager queries the device’s agent; MIB objects are identified by OIDs.
- Requests use UDP 161; notifications arrive at UDP 162.
- Polling and event notifications cover different monitoring needs.
- SNMPv3 authPriv authenticates and encrypts messages.
- Convert byte differences to bits before calculating bit/s.
- Use 64-bit counters when 32-bit counters can wrap between polls.
3.3 Collect events and read their severity
Syslog sends event messages to a central collector. Central collection preserves evidence across device restarts and allows an engineer to search several devices together. A security information and event management system (SIEM) can use those records to correlate events.
Traditional syslog uses UDP 514. TCP transport provides delivery acknowledgments at the transport layer; TLS on TCP 6514 also protects the connection. Even reliable transport needs working collection and storage, so verify that messages actually arrive.
Read the severity threshold correctly
Syslog levels run from 0 to 7, with smaller numbers meaning greater severity:
| Level | Name | Meaning |
|---|---|---|
| 0 | Emergency | System unusable |
| 1 | Alert | Immediate action needed |
| 2 | Critical | A critical condition |
| 3 | Error | An error condition |
| 4 | Warning | A warning condition |
| 5 | Notice | Normal but significant event |
| 6 | Informational | General information |
| 7 | Debug | Detailed diagnostic information |
A configured threshold includes that level and every more severe level. logging trap warnings sends levels 0–4, not just level 4. The IOS remote-logging default is informational, levels 0–6. Enabling debugging sends all levels and can generate a large amount of traffic and processing work.
Separate facility from severity
The syslog facility identifies a source category. Examples include kern (0), user (1), mail (2) and auth (4). Local0 through local7, codes 16–23, are available for local use; Cisco devices default to local7. A collector can sort network-device messages using that code.
A message's priority combines both fields:
Local7 at severity 3 produces 187, written as "<187>". The number is an encoded pair, not a separate severity scale.
Cisco's visible message pattern is "%FACILITY-SEVERITY-MNEMONIC: description". In "%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down", LINEPROTO names the IOS feature, 5 means Notice, and UPDOWN identifies the event. This feature name is distinct from the transport facility local7. "%SYS-5-CONFIG_I: Configured from console by admin on vty0" records a configuration change.
Choose destinations and align timestamps
Destinations have separate settings. logging buffered 16384 informational keeps an in-memory buffer, read with show logging. logging host 192.0.2.50 selects a collector. logging trap warnings sets its threshold. In a remote terminal session, terminal monitor displays monitored messages. Debug output to the console can overload a busy device's CPU.
Use service timestamps log datetime msec to add date and millisecond timestamps, and NTP to synchronize clocks. A port-down event at 10:42:13.208, a router neighbor loss at 10:42:13.350 and the port's return at 10:42:17.511 form a useful sequence. They suggest a related link problem worth investigating; they do not identify a faulty cable by themselves. Without shared time, the apparent order may simply reflect clock error.
Key Takeaways
- Lower severity numbers mean more urgent events.
- A logging threshold includes its own level and all lower numbers.
- A syslog facility code and an IOS feature label have different roles.
- Priority encodes facility and severity as 8 × facility + severity.
- Configure each destination and verify collected messages.
- NTP and detailed timestamps make cross-device event order meaningful.
4Control traffic at busy links and server edges
A busy network must decide which packets wait, which are dropped and which service receives each request. QoS protects delay-sensitive traffic at bottlenecks; proxies relay requests for clients or servers; load balancers share work among healthy servers. You will connect traffic markings to actual queue behavior, choose between policing and shaping, and examine how health checks and session storage affect a service during failures.
4.1 Classify traffic and carry its marking
A voice call and a file transfer react differently to congestion. A file can wait while TCP retransmits missing data. A conversation suffers when packets arrive late, arrive unevenly or disappear. Quality of service (QoS) lets the network give different traffic different treatment.
Identify the service need
Four properties matter: bandwidth, the amount sent per second; delay, the end-to-end travel time; jitter, variation in that delay; and loss, the share of packets dropped. Common voice design targets are no more than 150 ms one-way delay, 30 ms jitter and 1% loss. These are planning targets for usable interactive voice, not extra capacity created by a policy.
QoS is a per-hop behavior (PHB). Each router or switch applies its own policy. A packet marked for priority still needs each congested hop to recognize and serve that class. Queue priorities change service order when traffic competes; classification, marking and rate limits can act even on an uncongested link.
Classify first, then mark
Classification identifies traffic using addresses and ports, an incoming interface, an existing marking or application recognition such as Cisco NBAR. Marking writes a value into a frame or packet so later devices can identify its class cheaply.
| Marking | Location and size | What happens across routing |
|---|---|---|
| CoS | 3 bits in an 802.1Q VLAN tag; 0–7 | The tag is local to that frame and may be removed or rebuilt |
| DSCP | 6 bits in the IP header; 0–63 | Travels with the IP packet unless a device re-marks it |
DSCP occupies six bits of IPv4's ToS byte or IPv6's Traffic Class. The remaining two bits are ECN, explicit congestion notification. CoS cannot appear in a frame sent without the VLAN tag.
Decode common DSCP values
Best effort is 0. Expedited forwarding (EF) is 46, binary 101110, commonly used for voice media. Assured forwarding (AFxy) identifies class x, from 1–4, and drop precedence y, from 1–3:
Thus AF11, AF21, AF31 and AF41 are 10, 18, 26 and 34. For AF32, calculate 8 times 3 plus 2 times 2 to obtain 28. Within class 4, AF43 (38) has higher drop precedence than AF42 (36), which is higher than AF41 (34). Higher drop precedence means greater loss preference during congestion, not better protection. The configured policy determines resources between different AF classes.
Class selectors use 8 times their number: CS3 is 24, often used for call signaling; CS6 is 48, commonly used for routing traffic.
Decide whose markings to trust
At a trust boundary, the network decides which incoming markings it will honor. An access switch can trust an IP phone while re-marking the connected PC's traffic to best effort. Otherwise, a user could mark a large download EF and compete with calls. Internet providers' ordinary services generally do not preserve a customer's QoS treatment end to end.
To size voice capacity, include headers. A G.711 call sending 50 packets per second, each with 160 voice bytes plus 40 header bytes, uses 200 bytes per packet. Multiplying by 8 and then by 50 gives 80,000 bit/s, or 80 kbit/s per direction. Twenty calls use 1.6 Mbit/s in each direction at the IP layer, before layer-2 overhead.
Key Takeaways
- Delay, jitter and loss affect real-time traffic differently from file transfers.
- Classification identifies traffic; marking labels it for later hops.
- CoS is in a VLAN tag; DSCP is in the IP header.
- EF is 46; AFxy encodes class and drop precedence.
- Compare AF drop precedence within the same class.
- Trust markings only at a deliberate network boundary.
- Include packet headers when sizing voice bandwidth.
4.2 Choose what happens to excess packets
Congestion begins when packets arrive faster than an interface can send them. A 1 Gbit/s LAN feeding a 100 Mbit/s WAN can create this bottleneck even if the LAN itself is lightly loaded. Waiting packets enter an output queue; time spent there adds delay.
Select the next packet to send
FIFO, first in, first out, sends packets in arrival order. Class-based weighted fair queuing (CBWFQ) gives traffic classes minimum bandwidth shares during congestion. Low-latency queuing (LLQ) adds a strict priority queue for delay-sensitive traffic, with a configured limit to protect other classes.
On a 100 Mbit/s WAN, a policy might allocate a 10 Mbit/s priority class to voice, guarantee 30% to business applications, and leave the remainder to default traffic. A bandwidth guarantee is a minimum share under competition, not necessarily a maximum when other classes are idle. The priority limit prevents voice-class traffic from consuming the whole congested link.
Drop before every queue fills together
Tail drop discards newly arriving packets when a queue is full. If many TCP flows experience that loss together, they can all slow down and later speed up together. This global synchronization wastes capacity.
Weighted random early detection (WRED) starts dropping selected packets before the queue fills. Flows then back off at different times. A DSCP-aware policy can drop AF13 more readily than AF11 because both are in class 1 but AF13 has higher drop precedence. UDP voice does not reduce its sending rate in response to such loss, so WRED is not the usual treatment for the voice priority queue.
Distinguish policing from shaping
| Method | Excess traffic | Delay and placement |
|---|---|---|
| Policing | Dropped or re-marked | No buffering delay; input or output |
| Shaping | Buffered, then sent at the configured rate | Adds waiting delay; output |
A provider may police at the committed information rate (CIR). Bursts above the contract can be discarded even if the physical port is faster. TCP may show a sawtooth pattern as it recovers and is cut back again.
A shaper buffers bursts locally and releases traffic at the configured rate. Its burst allowance for an interval is:
For 200 Mbit/s and a 10 ms interval, convert 10 ms to 0.010 s. Multiplication gives 2,000,000 bits per interval; division by 8 gives 250,000 bytes.
Suppose the site has a 1 Gbit/s handoff but the provider polices at 200 Mbit/s. Shape the site's outbound traffic to 200 Mbit/s and apply the voice queue inside that shaper. The waiting then occurs where the site controls priority, before the provider discards excess packets.
Apply and inspect the policy
On IOS, a class-map identifies traffic, a policy-map defines actions, and service-policy attaches the policy to an interface and direction. A queue policy only changes competition during congestion. Policing and shaping still enforce their configured rate on an otherwise idle link. Oversized queues can make voice delay worse by increasing waiting time.
Key Takeaways
- Queuing controls send order and minimum shares during congestion.
- LLQ protects delay-sensitive packets while limiting the priority class.
- WRED spreads TCP backoff by dropping before the queue is full.
- Policing drops or re-marks excess traffic; shaping buffers it.
- Shape before a slower provider rate limit to keep queue control locally.
4.3 Tell client proxies from server proxies
A proxy receives a request and makes a separate request toward its destination. The client connects to the proxy, and the proxy connects onward. This application-level role lets it filter, cache or route requests. NAT instead rewrites addresses in packets without acting as the application's request-handling server.
Ask whom the proxy represents
| Proxy | Acts for | Typical jobs |
|---|---|---|
| Forward proxy | Clients accessing other services | Filter web access, authenticate users, scan downloads, cache responses and record access |
| Reverse proxy | Servers receiving client requests | Terminate TLS, route by host or path, cache static content and filter web attacks |
A forward proxy can provide one controlled internet exit for an organization's users. A reverse proxy can publish www.example.com at 203.0.113.10 while forwarding requests to internal servers such as 10.1.1.21 and 10.1.1.22. The direction of representation is the defining difference.
Configure or intercept client traffic
An explicit proxy is known to the client. Its address and port, such as 10.0.0.8 on 3128 or 8080, may be entered manually, distributed by management software or selected through a PAC, proxy auto-configuration, file. WPAD helps discover proxy configuration automatically. These port numbers are common choices, not universal requirements for all proxies.
A transparent proxy receives traffic redirected by the network without client proxy settings. It can still be a forward proxy because it acts for clients. Client awareness and whom the proxy represents are two different comparisons.
Understand what happens to HTTPS
With an explicit proxy, a client can send a CONNECT request. The proxy establishes a tunnel, and encrypted traffic passes through it. The proxy can see the requested destination, but tunneling alone does not reveal the protected HTTP content.
To inspect that content, the proxy must perform TLS interception. It creates separate protected connections and presents certificates signed by the organization's certificate authority. Clients must trust that authority. Certificate-pinned applications can reject this replacement certificate, so some destinations need inspection exemptions. Interception also changes who can read the traffic, which makes privacy part of the design decision.
A caching proxy can reuse responses only when HTTP caching rules allow it. Repeated software downloads or static resources can save WAN bandwidth. Personal or frequently changing data often cannot be shared from a cache. Ordinary encrypted tunnels do not give a proxy access to the content needed for such inspection and caching.
Diagnose a proxy-specific failure
If browsing fails while other applications work, inspect the proxy address, port and reachability. If automatic configuration fails, test access to the PAC file. If internal sites fail only through the proxy, check the bypass rules: a pattern such as *.corp.example.com can keep those requests on the internal path.
For incoming web services, a reverse proxy may send /api to an application server and /images to a static-content server. If it spreads eligible requests among several back ends, it is also performing load balancing. Central TLS termination simplifies certificate management, while the internal connections may be re-encrypted when required.
Key Takeaways
- A proxy handles separate client-facing and destination-facing connections.
- A forward proxy acts for clients; a reverse proxy acts for servers.
- Explicit and transparent describe how clients reach a forward proxy.
- CONNECT tunneling preserves encrypted content; TLS interception decrypts it.
- Check PAC access, proxy settings and internal bypass rules when web access fails.
4.4 Share requests among healthy servers
A load balancer presents a virtual IP address (VIP) to clients and sends traffic to a pool of back-end servers. The client uses one service name while the pool supplies capacity and tolerates individual server failures. For maintenance, draining stops new connections to one server and lets existing work finish before removal.
Test the service before sending it work
A health check should match the service clients need. Ping tests whether a host responds, a TCP check tests whether a port accepts connections, and an HTTP check can test a page such as /health for status 200. A host may answer ping even after its web process crashes.
For shop.example.com, suppose the VIP is 203.0.113.20 on port 443 and the pool is 10.1.2.11–10.1.2.13 on port 8080. Checks run every 5 seconds and mark a server down after three consecutive failures. Detection takes roughly three check intervals, about 15 seconds, with actual timing affected by check scheduling and timeouts. Once .13 is down, new connections go to .11 and .12. Those survivors need enough spare capacity for the extra load.
Choose how to distribute work
| Algorithm | Selection rule | Useful caution |
|---|---|---|
| Round robin | Each server in turn | Equal connection counts can still mean unequal work |
| Weighted round robin | Turns in configured ratios | Weights must reflect intended capacity |
| Least connections | Fewest active connections | Measures current connection counts, not every kind of workload |
| Source IP hash | Consistent choice from client address | Many users behind one NAT address may cluster |
Weights 3:2:1 divide 600 new connections into 300, 200 and 100. With active counts 12, 7 and 9, least connections chooses the second server. These algorithms choose among eligible healthy servers, not ones already removed by health checks.
Keep session state available
Session persistence, or sticky sessions, sends a user back to the same server when that server stores their session, such as a cart. A cookie or source address can identify the user. Stickiness can make the load less even; if that server fails, its local session may be lost. A shared database or cache lets other servers recover the session and reduces dependence on one back end.
A layer 4 balancer uses addresses and ports to distribute TCP or UDP traffic without reading application content. A layer 7 balancer reads information such as HTTP hostnames, paths and cookies. To inspect HTTPS content it terminates TLS, called TLS offload, and can establish a new encrypted connection toward the back end.
Protect the entry point too
A single load balancer can itself fail. An active-passive pair has a standby ready to take over the VIP; an active-active design lets both handle traffic.
Plain DNS round robin publishes several A records for a name and rotates their order. It offers simple distribution but has no built-in service health checks or immediate removal of cached addresses. Clients can keep using a failed address until records are changed and caches expire. Global server load balancing adds health and location decisions to DNS responses, but cache lifetimes still matter.
Key Takeaways
- A VIP gives clients one entry point for a healthy server pool.
- Check the application service, not just whether the host answers ping.
- Algorithms distribute work in different ways; equal turns do not guarantee equal load.
- Persistence keeps a user with a server; shared session storage supports failover.
- Layer 7 routing can use application content and requires HTTPS termination to read it.
- Make the load balancer redundant as well as the back ends.
- Plain DNS round robin leaves health and cache-expiry problems unresolved.
DHCP and DNS examples
1Bring a new office subnet online
19 steps
- 1IntroductionFrom an address plan to a working client
A new office segment needs usable addresses, correct network options and a reliable way to reach the central DHCP server. Follow that setup from the client’s first request through capacity checks and relay configuration. You will also decide what evidence makes a static assignment safe. Keep three questions in mind: which subnet is this client on, who assigned its settings, and which addresses are still available?
- 2ExplanationBegin with a client that has no address
The client cannot start by sending from a normal leased address. It broadcasts a Discover from 0.0.0.0 to 255.255.255.255 so local DHCP servers can hear it. The server side uses UDP 67 and the client side UDP 68. A server’s Offer proposes an address and options, but the client has not yet received a confirmed lease. That distinction matters when tracing a process that stops after an offer.
- 3ExplanationSelect and confirm the offer
The client sends a Request to select an offer. During this initial exchange, broadcasting also lets other offering servers know their offers were not chosen. The selected server sends Acknowledge, completing DORA. The client can then use the settings. If its address check finds another host using the proposed address, it can send DHCPDECLINE and restart discovery instead of accepting a duplicate.
- 4ExampleWork out an eight-hour lease
A laptop receives an 8-hour lease at 08:00. Default T1 is halfway through: 4 hours later, at 12:00, it asks the original server by unicast. If that server stays silent, T2 is 7 hours after the start, at 15:00, and the client broadcasts for another server. Without an answer by 16:00, the lease expires and the client must stop using the address.
- 5ChallengePredict the next lease action
A client has a 4-hour lease beginning at 10:00. No server has answered its renewal attempt. At what time does default rebinding start, and what changes about the request?
---reveal---
T2 is 87.5% of 4 hours, or 3 hours 30 minutes after the start: 13:30. The client broadcasts its Request so any server can respond, instead of unicasting only to the original server. It may keep using the address until expiry at 14:00.
- 6ConnectionKeep IPv6’s gateway source separate
For IPv6, Router Advertisements can supply the /64 prefix for SLAAC and identify a default router. Stateful DHCPv6 can supply an address, while stateless DHCPv6 supplies extra settings. The client uses UDP 546 and server UDP 547. Even when DHCPv6 is involved, it does not supply the default gateway. A complete IPv6 setup therefore needs the router information as well as any DHCPv6 settings.
- 7ExampleProtect the fixed range first
Plan 192.168.10.0/24 with .1 as gateway and .2–.20 for fixed devices. There are 254 usable addresses, so excluding .1–.20 leaves 234 for DHCP. Enter the exclusion globally with
ip dhcp excluded-address 192.168.10.1 192.168.10.20. A manually configured device must not remain eligible for an unrelated dynamic lease, even if it is switched off while the pool is configured. - 8ExplanationAttach the right options to the pool
Under
ip dhcp pool OFFICE, setnetwork 192.168.10.0 255.255.255.0,default-router 192.168.10.1anddns-server 192.168.10.5. The address and mask identify the subnet; the gateway gets traffic off that subnet; DNS enables name lookups.lease 0 8selects 8 hours. A copied pool needs its gateway checked carefully because another subnet’s gateway can leave local access working while routed access fails. - 9ChallengeChoose central control for a printer
A printer needs a stable address, and the team expects its DNS settings to change later. Should it use a reservation or a manually typed static configuration? Why?
---reveal---
Use a reservation if central DHCP control is wanted. The printer still requests a lease, but the server recognizes its client identifier and supplies its reserved address and current options. A static configuration also provides a stable address, but its DNS setting must be changed on the printer.
- 10TipCheck the actual allocation state
Use
show ip dhcp poolto compare leased addresses with total minus excluded addresses.show ip dhcp bindingidentifies the clients holding leases, andshow ip dhcp conflictshows addresses removed after detected conflicts. A full pool needs allocation or capacity changes. Repeated client renewals cannot help when every eligible address is already held. Shorter future leases help turnover as they take effect. - 11ExplanationCross the router with a relay
The central server is at 10.0.0.10, but VLAN 20 clients broadcast on 192.168.20.0/24. Their gateway receives those broadcasts and relays requests by unicast. It puts 192.168.20.1 in giaddr, identifying the client subnet. The server uses that field to choose the VLAN 20 scope and replies through the relay. A matching scope and a return route are part of this path, not optional substitutes for the relay.
- 12ExamplePlace the helper where broadcasts arrive
On the interface serving VLAN 20 clients, configure
ip helper-address 10.0.0.10. The command must be on the client-facing interface because that is where the request arrives as a broadcast. A helper on the server-facing interface cannot rescue a broadcast that never crossed the router. The helper names the remote server; giaddr tells that server which client subnet needs a lease. - 13ChallengeDiagnose the new VLAN
A new VLAN gets 169.254 addresses. Existing VLANs use the same remote DHCP server successfully. The new gateway has no helper and the server has no scope for it. What two configuration changes are needed?
---reveal---
Add the helper on the new client-facing gateway interface, and add a matching scope with that subnet’s options. The relay delivers the broadcast to the server, while the scope gives it addresses to offer. Fixing only one still leaves the lease process incomplete.
- 14TipFind the server that actually answered
If clients receive addresses from an unexpected subnet, read the DHCP Server entry in
ipconfig /all. An unauthorized home router may be supplying its own gateway and DNS settings. Remove the rogue server and protect access ports with DHCP snooping, allowing replies only from trusted directions. This differs from pool exhaustion: here a server answered, but its settings are wrong. - 15ExplanationConnect assignments to their owners
The subnet plan records network, prefix, VLAN, gateway, location, purpose, dynamic range and exclusions. Each static device also needs its name, MAC address, owner and assignment date. IPAM ties these records together. DHCP says who currently holds a lease; DNS says how names map to addresses; the plan says who should be using the space and why. Discovery compares those intentions with live evidence.
- 16ExampleCalculate the planning threshold
The address block 10.20.0.0/22 has 1,022 usable IPv4 addresses. With 870 in use, divide 870 by 1,022 and multiply by 100 to get about 85.1% utilization. If the planning alert is 80%, expansion needs attention already. This calculation uses the whole subnet’s usable addresses. DHCP free space may be lower because excluded and reserved addresses are not all available for new dynamic leases.
- 17ChallengeCheck before reusing a quiet address
A scanner is off today and does not answer ping. Its address is still listed under a current owner in IPAM. Can you assign that address to a new printer now? What evidence should you check?
---reveal---
Do not treat silence as availability. Check the owner’s assignment, DHCP records and DNS, then confirm retirement or release before reuse. A switched-off device can return later with its old configuration. Record the new assignment and keep DHCP from allocating the same address.
- 18ChallengeSeparate pool health from subnet use
New guests get no leases, but IPAM shows only 75% of the subnet in use. The dynamic pool is fully leased and the unused addresses are excluded. Why can both reports be right?
---reveal---
They measure different ranges. IPAM compares used addresses with all usable addresses; the dynamic pool counts only addresses DHCP may allocate. Check whether exclusions still serve a purpose, review lease turnover, and adjust capacity deliberately. A lower subnet percentage does not create a free dynamic lease.
- 19RecapUse the evidence to choose the next action
A client with no lease sends you toward pool capacity, relay delivery and the DHCP path. A client with a valid but wrong configuration sends you toward options and the responding server. Before changing allocations, compare the live leases with the address plan. The useful repair is the one that restores the missing part of that process, then leaves a clear record of the new assignment.
2Trace a name lookup and repair stale answers
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFollow the answer back to its source
- 2ExampleRead an address record
- 3ExplanationFollow an alias without changing its meaning
- 4ExampleRead a mail preference
- 5ChallengePrepare for the address move
- 6ConnectionReverse an address in a separate zone
- 7ExplanationLet the resolver do the search
- 8ExampleReuse a valid cached answer
- 9ChallengeChoose the protection the requirement needs
- 10TipSend a domain to a particular resolver
- 11ExampleCompare resolver and authoritative answers
- 12Key InsightClear the cache that holds the old answer
- 13ChallengeDistinguish absent data from an absent name
- 14TipUse the failure mode to choose a test
- 15ChallengeLocate the outdated copy
- 16RecapMake each comparison answer one question
3Build a timeline from counters and events
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMeasure the link and explain the interruption
- 2ExplanationChoose a shared source of time
- 3ExampleFollow the reference distance
- 4TipVerify before trusting displayed time
- 5ChallengeSeparate synchronization from the display
- 6ExplanationRead objects from an agent
- 7ExampleStart with the counter difference
- 8ExampleConvert bytes to a bit rate
- 9ChallengeTry a fresh counter calculation
- 10Key InsightAvoid hidden wraps on fast links
- 11ConnectionUse secure polling and timely alerts
- 12ExplanationGive events a permanent destination
- 13ExplanationRead a threshold as a range
- 14ExampleDecode the two different facility meanings
- 15ChallengePredict what reaches the collector
- 16ChallengeCombine the timeline with the graph
- 17RecapKeep the units and timeline attached
4Protect voice and keep a web service available
20 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFind the constraint before choosing a control
- 2ExplanationDescribe the call problem precisely
- 3ExplanationIdentify the class, then carry a label
- 4ExampleCalculate a voice stream’s rate
- 5ExampleRead AF without treating it as a score
- 6ChallengeDecide what the marking really promises
- 7ExplanationLook at the queue where traffic waits
- 8ExampleMatch the contract before the provider drops
- 9ExampleConvert the shaping interval
- 10ChallengeChoose between dropping and waiting
- 11Key InsightUse early drops for responsive flows
- 12ExplanationKeep the proxy’s role separate from awareness
- 13ExplanationUnderstand an HTTPS tunnel
- 14ChallengeIdentify the deployment from its behavior
- 15ExplanationCheck a member before assigning new work
- 16ExampleChoose a distribution rule that fits
- 17ChallengeKeep state available when a member fails
- 18TipProtect the entry point during maintenance
- 19ChallengeCombine the service-edge decisions
- 20RecapPlace each decision where it can help
DHCP and DNS practice questions
Set 1: Configure services and interpret evidence10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Addresses, names and service roles10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Trace failures across the service path10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Plan capacity, publication and failover10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Combine evidence and choose a repair10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
A record
www.example.com to 203.0.113.10 so IPv4 clients can locate that web service.AAAA record
Address discovery
Address utilization
APIPA
Authoritative server
B
Binding
C
Cache flush
ipconfig /flushdns clears the Windows client’s entries while the upstream resolver keeps its own cache.CBWFQ
CIR
Classification
CNAME record
shop.example.com points to www.example.com, whose address record supplies the destination.Community string
Conditional forwarder
Congestion
CONNECT tunnel
CoS
D
DDI
DHCP
DHCP option
DHCP relay
DHCP scope
DHCP snooping
DHCPv6
DNS cache
DNS round robin
DNS zone
DNSSEC
Draining
DSCP
E
Encrypted DNS
Exclusion
Explicit proxy
F
Facility
FIFO
Forward proxy
FQDN
mail.example.com. is absolute, while a name without the last dot is relative to the zone.G
giaddr
H
Health check
/health because a web server can answer ping even when its application is unavailable.High-capacity counter
ifHCInOctets so the manager does not miss several counter wraps between polls.I
Inform
IPAM
J
Jitter
L
Lease
Least connections
LLQ
M
Marking
MIB
MX record
N
NS record
NTP
NTS
NXDOMAIN
O
OID
1.3.6.1.2.1.1.5.0 to read the device’s sysName value.P
PAC file
Policing
Pool exhaustion
PTP
PTR record
25.113.0.203.in-addr.arpa..Q
QoS
R
Rebinding
Recursive resolver
Referral
com servers instead of returning every website’s address.REFUSED
Renewing
Reservation
Reverse proxy
/api requests to application servers and /images requests to static-content servers.Rogue DHCP server
S
SERVFAIL
Session persistence
Severity
Shaping
SLAAC
Slewing
SNMP agent
SNMP manager
SOA record
Split scope
SRV record
Stratum
Stub resolver
Syslog
Syslog priority
T
TLS interception
Transparent proxy
Trap
Trust boundary
TTL
TXT record
U
UTC
V
VIP
W
Weighted round robin
WRED
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.