Sub topic 2
DHCP, DNS, NAT, Ports, and Wi-Fi Basics
Assume you understand basic computer hardware, routers, the internet, and command-line use. DHCP, DNS, NAT, and Wi-Fi work together in most small office/home office (SOHO) networks.
DHCP: Automatic Addressing and Reservations
Dynamic Host Configuration Protocol (DHCP) automatically gives a device an IP address, subnet mask, default gateway, and DNS server. A DHCP lease is temporary. When it expires, the device renews it.
A DHCP reservation permanently associates a device's MAC address with a chosen IP address. Use reservations for printers, servers, cameras, or other devices that need predictable addresses. If DHCP fails, Windows may assign an APIPA address in 169.254.0.0/16, which normally indicates that no DHCP server answered.
ipconfig /all
ipconfig /renewDNS: Turning Names into Addresses
Domain Name System (DNS) translates names such as example.com into IP addresses. A device can have working network access but fail to browse if DNS is unavailable.
nslookup example.comNAT: Sharing One Public Address
Network Address Translation (NAT) lets many private devices share one public IPv4 address. The router records each connection's source port so returning traffic reaches the correct device. NAT conserves addresses but is not a replacement for a firewall.
Common Ports and Protocols
| Protocol | Port | Typical use |
|---|---|---|
| DNS | 53 | Name resolution |
| DHCP | 67/68 | Address assignment |
| HTTP/HTTPS | 80/443 | Web traffic |
| SSH/RDP | 22/3389 | Remote administration |
802.11 Standards
| Standard | Band | Theoretical maximum |
|---|---|---|
| 802.11a | 5 GHz | 54 Mbps |
| 802.11b/g | 2.4 GHz | 11/54 Mbps |
| 802.11n | 2.4 or 5 GHz | Up to 600 Mbps |
| 802.11ac | 5 GHz | Several Gbps |
| Wi-Fi 6, 802.11ax | 2.4 or 5 GHz | Up to 9.6 Gbps |
Newer standards usually support older clients, but the connection uses capabilities shared by both devices.
Bands, Channels, and Interference
The 2.4 GHz band travels farther and penetrates walls better, but it has fewer usable channels and more interference from Bluetooth, microwaves, and neighboring networks. The 5 GHz band usually provides more channels and speed, with shorter range.
Choose a clean, non-overlapping channel. Place the access point centrally, above obstructions, and away from metal, cordless phones, and appliances.
> callout note > Prefer WPA3, or WPA2 with AES when older clients require it. Avoid WEP and WPA with TKIP.
Exercise
A client has a 169.254.12.8 address, but the router works for other devices. What should you check first?
Show answer
Check DHCP availability, cabling or Wi-Fi association, and the client's lease. Then try ipconfig /renew.