Instiq
Chapter 6 · Network Fundamentals·v1.0.0·Updated 7/20/2026·~16 min

What's changed: Initial version

6.3IP services and port numbers (DHCP, DNS, NAT, SNMP, NTP)

Key points

Covers the common IP services apps/automation depend on—DHCP (auto IP assignment), DNS (name resolution), NAT (address translation), SNMP (monitoring), NTP (time sync)—and the port numbers to memorize (SSH 22 / Telnet 23 / HTTP 80 / HTTPS 443 / NETCONF 830 / SNMP 161 / NTP 123 / DNS 53 / DHCP 67-68), framed as the diagnosis of "which missing service breaks an API call and how."

Behind one line of an automation script, requests.get("https://api.example.com/devices"), DNS must resolve the name, NAT must translate the source address, and it must reach the target on the right port number (443 for HTTPS). If any one of these IP services or ports is missing, the symptom looks like "the app is broken," yet the causes are entirely different. This section organizes the roles of DHCP, DNS, NAT, SNMP, and NTP that apps/automation depend on, plus the must-memorize key port numbers, as knowledge for pinpointing "which service/port this failure belongs to."

6.3.1Key IP services

  • DHCP (UDP 67 server / 68 client) auto-distributes IP address, subnet mask, default gateway, and DNS server to a host. If DHCP fails, the host lacks a correct IP/GW/DNS in the first place, so no downstream communication succeeds.
  • DNS (UDP/TCP 53) resolves a hostname to an IP address. Since automation specifies endpoints by FQDN, if DNS cannot resolve, it fails with Name or service not known before connecting. NAT translates private IPs to global (and vice versa) so internal hosts can talk to the outside; if the return mapping (translation table) breaks, symptoms like one-way-only reachability appear.
  • SNMP (UDP 161, traps 162) monitors device state by polling/notification. NTP (UDP 123) synchronizes device/server time. Time skew is fatal to automation because TLS certificate validity, API token expiry, log correlation, and Kerberos auth are time-dependent, so bad NTP often surfaces as "certificate error" or "auth failure."

6.3.2Port numbers to memorize

  • Management/API: SSH 22 (TCP) / Telnet 23 (TCP, plaintext, deprecated) / HTTP 80 (TCP) / HTTPS 443 (TCP) / NETCONF 830 (TCP, over SSH). Automation's RESTCONF uses HTTPS 443 and NETCONF uses 830—commonly tested; do not mistake "NETCONF is SSH so port 22."
  • Infrastructure services: DNS 53 (UDP/TCP) / DHCP 67-68 (UDP) / SNMP 161 (traps 162, UDP) / NTP 123 (UDP) / Syslog 514 (UDP). When passing automation through a firewall, whether these required ports are permitted is the crux of connectivity.
Exam point

Memorize the ports: SSH 22 / Telnet 23 / HTTP 80 / HTTPS 443 / NETCONF 830 / DNS 53 / DHCP 67-68 / SNMP 161 (trap 162) / NTP 123 / Syslog 514. Traps target: RESTCONF=HTTPS (443) vs. NETCONF=830 confusion, NTP skew masquerading as certificate/auth errors, and DNS failure dropping before connect with Name or service not known.

Suppose your CI/CD pipeline injects configuration nightly into Cisco devices over HTTPS (RESTCONF/443). One morning, every job suddenly starts failing with SSL: CERTIFICATE_VERIFY_FAILED: certificate is not yet valid. Reading only the error string tempts "let us replace the certificate," but this is a time trap. not yet valid means the client clock is skewed into the past relative to the certificate's validity start date. Indeed, the CI runner's date shows several days ago, and the cause is NTP (UDP/123) sync failure. The runner was recently moved to another segment, and the firewall on the path did not permit UDP/123, so the clock drifted and time-dependent TLS validation failed. The lesson: the symptom (certificate error) and the root cause (NTP/port block) live in different layers, and when isolating automation failures you must "not take the error string at face value." Even if NTP were fine, the next checks are whether DNS (53) resolves the endpoint FQDN (a Name or service not known drops before connect), whether RESTCONF's 443 passes the firewall (not confused with NETCONF's 830), and whether NAT translation maps the return traffic—closing out the dependent IP services and ports one by one. Following error string -> dependent service -> required port, you can identify many connectivity faults before touching application code.

Service/protocolPortL4App impact if missing
SSH22TCPCLI/some automation management cannot connect
HTTPS (RESTCONF)443TCPREST API/RESTCONF calls fail
NETCONF830TCPNETCONF session will not establish
DNS53UDP/TCPFQDN unresolved, fails before connect
DHCP67/68UDPNo IP/GW/DNS, so all communication fails
SNMP161 (trap 162)UDPMonitoring polls/notifications do not arrive
NTP123UDPSkew breaks certs/tokens/auth
Warning

Trap: "NETCONF runs over SSH, so its port is 22" is wrong—NETCONF's default is 830 (it uses SSH transport but a dedicated port). Also wrong: "certificate is not yet valid/has expired is always fixed by swapping the certificate"—it is often caused by NTP skew, and the real fix is restoring time sync (including permitting UDP/123). Beware confusing RESTCONF=HTTPS (443) with NETCONF=830.

Key IP services and port numbers (22/443/830/53/161/123).
Not taking an error string at face value

6.3.3Section summary

  • Apps/automation depend on DHCP (67/68), DNS (53), NAT, SNMP (161), NTP (123); any one missing looks like "app trouble" but the causes differ
  • Memorize key ports: SSH 22 / Telnet 23 / HTTP 80 / HTTPS 443 / NETCONF 830 / DNS 53 / SNMP 161 / NTP 123. Do not confuse RESTCONF=443 vs. NETCONF=830
  • Do not take error strings at face value: not yet valid/expired suspect NTP skew first, Name or service not known suspect DNS, and connection refused/timeout suspect port block/route

Sign in to track progress — Log in.

Quick check

(just a quick review)

Q1. A CI/CD pipeline that nightly injects config via RESTCONF (HTTPS/443) suddenly fails all jobs one morning with `SSL: CERTIFICATE_VERIFY_FAILED: certificate is not yet valid`. The runner's `date` shows several days ago. What is the most appropriate first response?

Q2. An automation script running `requests.get("https://api.example.com/devices")` fails instantly with `Name or service not known` before any TCP handshake. From the same host, `https://203.0.113.10/devices` (direct IP) succeeds. What is the most likely cause?

Q3. You want automation to establish a NETCONF session to a network device and must request a firewall permit for exactly one port. Separately from RESTCONF (HTTPS), which port is required for NETCONF?

Check your understandingPractice questions for Chapter 6: Network Fundamentals

Keep track of your progress

The full study guide is free to read. Sign up free to practice with the question bank, track what you have read, review your mistakes, and highlight passages.