DHCP β Dynamic Host Configuration Protocol
RFC 2131 Β· UDP 67 (server) / UDP 68 (client)
DHCP automatically assigns IP addresses, subnet masks, default gateways, and DNS servers to hosts. The four-step DORA process is essential exam knowledge.
D
DISCOVER
Client broadcasts to 255.255.255.255 UDP 67
"Is there a DHCP server?"
O
OFFER
Server unicasts an IP address offer with lease time and options
R
REQUEST
Client broadcasts acceptance of the offered IP (may notify other servers)
A
ACK
Server confirms the lease. Client applies the IP configuration.
DHCP Relay Agent (ip helper-address): When the DHCP server is on a different subnet, configure ip helper-address <server-ip> on the router interface facing the clients. The router unicasts the broadcast to the server.
DHCP Server Config
ip dhcp excluded-address 192.168.1.1 192.168.1.10
ip dhcp pool LAN_POOL
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
lease 7 ! 7 days
DHCP Relay (on router)
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip helper-address 10.0.0.100
! 10.0.0.100 = DHCP server IP
DNS β Domain Name System
UDP/TCP 53 Β· Hierarchical distributed database
DNS translates human-readable names (cisco.com) into IP addresses. The hierarchy: Root β TLD (.com, .org) β Authoritative Name Servers β Resolving Resolvers β Client.
Key Record Types
AIPv4 address
AAAAIPv6 address
CNAMEAlias (canonical name)
MXMail server
PTRReverse lookup (IPβname)
NSName server for zone
Cisco DNS Client Config
ip domain-name corp.example.com
ip name-server 8.8.8.8 8.8.4.4
ip domain-lookup ! enabled by default
! Disable lookup (stops DNS on typos)
no ip domain-lookup
NTP β Network Time Protocol
UDP 123 Β· Stratum-based time hierarchy
Accurate time is critical for logging, certificates, and AAA. NTP uses a stratum hierarchy β lower stratum = closer to the reference clock = more accurate.
0
Stratum 0 β Reference Clock
GPS, atomic clocks. Never on the network directly.
1
Stratum 1 β Primary NTP
Syncs directly to Stratum 0. Public NTP servers (time.google.com).
2
Stratum 2 β Secondary NTP
Enterprise NTP servers. Syncs to Stratum 1.
3β15
Stratum 3β15
Further downstream. Most end devices are Stratum 3β5.
NTP Client Config
ntp server 216.239.35.0
ntp server 216.239.35.4
! show ntp status
! show ntp associations
NTP Master (internal stratum)
ntp master 3
! Makes this router a Stratum 3
! source for other devices
FHRP β First Hop Redundancy Protocols
Provides a virtual gateway IP shared between multiple routers
When the default gateway fails, traffic stops. FHRPs create a virtual IP and virtual MAC address shared between two or more routers β clients only see the virtual IP, so failover is transparent.
HSRP
Cisco Proprietary
Protocol: UDP 1985 (Hello)
Roles: Active / Standby
Virtual MAC: 0000.0c07.acXX
Version: v1 (IPv4) / v2
Election: Priority (default 100)
Only Active router forwards traffic. Standby is idle but ready.
VRRP
IEEE Standard
Protocol: Multicast 224.0.0.18
Roles: Master / Backup
Virtual MAC: 0000.5e00.01XX
RFC: RFC 5798
Election: Priority (default 100)
Open standard equivalent of HSRP. Works across vendor equipment.
GLBP
Cisco Proprietary
Protocol: UDP 3222 (Hello)
Roles: AVG + up to 4 AVFs
Load Balancing: Yes (multiple MACs)
Election: AVG by priority
AVG: Active Virtual Gateway
Unique: actively load-balances traffic across multiple routers simultaneously.
HSRP Configuration Example
! On the primary router (higher priority = becomes Active)
interface GigabitEthernet0/1
ip address 192.168.1.2 255.255.255.0
standby 1 ip 192.168.1.1 ! Virtual IP
standby 1 priority 110 ! Default=100; higher=Active
standby 1 preempt ! Take back Active if priority recovers
standby 1 track GigabitEthernet0/0 20 ! Decrement by 20 if G0/0 fails
CDP & LLDP β Neighbor Discovery
Layer 2 discovery protocols β they do NOT use IP
CDP (Cisco Discovery Protocol) is Cisco proprietary. It runs at Layer 2 and discovers directly connected Cisco devices: hostname, IOS version, IP address, platform, and interface.
CDP Commands
show cdp neighbors ! Summary
show cdp neighbors detail ! Full info + IP
show cdp interface ! Per-interface status
no cdp run ! Disable globally
no cdp enable ! Disable on interface
LLDP (Link Layer Discovery Protocol, IEEE 802.1AB) is the vendor-neutral open standard. Disabled by default on most Cisco devices β you must enable it manually.
LLDP Commands
lldp run ! Enable globally
show lldp neighbors
show lldp neighbors detail
! interface-level control:
lldp transmit ! send LLDPDUs
lldp receive ! receive LLDPDUs
Syslog β System Logging
UDP 514 Β· 8 severity levels (0β7)
Syslog sends device log messages to a centralized server. The severity level controls which messages are sent. Memorise: "Every Awesome Cisco Engineer Will Need Daily Inspection"
| Level | Name | Mnemonic | Meaning |
| 0 | Emergency | Every | System unusable |
| 1 | Alert | Awesome | Immediate action required |
| 2 | Critical | Cisco | Critical conditions |
| 3 | Error | Engineer | Error conditions |
| 4 | Warning | Will | Warning conditions |
| 5 | Notice | Need | Normal but significant |
| 6 | Informational | Daily | Informational messages |
| 7 | Debugging | Inspection | Debug-level messages (verbose!) |
Syslog Config
logging host 10.0.0.200 ! Send to syslog server
logging trap informational ! Send severity 0β6
logging buffered 4096 debugging ! Buffer locally (size, level)
service timestamps log datetime msec ! Add timestamps
show logging ! View buffered logs
Lab A β DHCP Server on a Router
Topology: R1 (DHCP server) β SW1 β PC1, PC2
1
Exclude reserved addresses
Keep the first 10 IPs free for static assignments (router, servers, printers).
ip dhcp excluded-address 192.168.10.1 192.168.10.10
2
Create the DHCP pool
Define the network, gateway, DNS, and lease time.
ip dhcp pool LAN
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8
lease 7
3
Verify DHCP bindings
Check which IPs have been leased and to which MAC addresses.
show ip dhcp binding
show ip dhcp pool
show ip dhcp conflict
Lab B β Configure HSRP Active/Standby
Topology: R1 (Active) and R2 (Standby) sharing virtual IP 192.168.1.1
1
Configure R1 (Active β higher priority)
interface GigabitEthernet0/1
ip address 192.168.1.2 255.255.255.0
standby 1 ip 192.168.1.1
standby 1 priority 110
standby 1 preempt
2
Configure R2 (Standby β default priority)
interface GigabitEthernet0/1
ip address 192.168.1.3 255.255.255.0
standby 1 ip 192.168.1.1
standby 1 priority 100
! No preempt on standby router
3
Verify HSRP state
show standby
show standby brief
! R1 should show: Active local 192.168.1.1
! R2 should show: Standby local 192.168.1.2
Lab C β NTP and Syslog
1
Configure NTP client
ntp server 216.239.35.0 prefer
ntp server 216.239.35.4
show ntp status
show ntp associations
2
Configure Syslog
logging host 10.0.0.200
logging trap informational
service timestamps log datetime msec localtime
show logging