IP Services — Question Bank
Thirty-six questions covering CCNA Domain 4.0 (IP Services, 10% of the exam): NAT and PAT, NTP, DHCP and DNS, DHCP relay, SNMP, syslog, QoS, TFTP, and secure device access with SSH. Instant feedback and a worked explanation after every answer.
- Each part is a separate self-scoring quiz; finish them in order.
- Watch the port numbers and address roles — they are exam favourites.
- Read the explanation after every answer, right or wrong.
- Progress is saved locally on this device.
Part 1 — NAT & PAT
-
What is the main purpose of NAT with overload (PAT) at an Internet edge?
- To encrypt traffic between sites
- To let many private hosts share one or a few public addresses
- To assign DNS names to hosts
- To block malicious traffic
PAT (NAT overload) translates many inside local addresses to one inside global address by using unique source port numbers, conserving public IPv4 space.
-
Which term describes a private host's address as seen from the inside network?
- Inside global
- Outside local
- Inside local
- Outside global
Inside local is the private address of an internal host on the internal network. Inside global is that same host as it appears to the outside world.
-
Which command marks an interface as the NAT inside of the translation?
ip nat insideip nat outsidenat enable insideip address nat inside
On the inside interface use
ip nat inside; on the Internet-facing interface useip nat outside. Both are required for translation to occur. -
Which command configures dynamic PAT for traffic matched by ACL 1, using interface Gi0/0's address?
ip nat pool POOL 10.0.0.1 10.0.0.1ip nat source static list 1ip nat inside source static 10.0.0.1ip nat inside source list 1 interface gi0/0 overload
This exact form translates ACL-matched inside sources to the interface address with overload (PAT). A pool plus overload is the alternative when a set of public addresses is used.
-
Which command displays the active NAT translations?
show ip routeshow ip nat translationsshow ip interface briefshow arp
show ip nat translationslists the inside local, inside global, outside local, and outside global entries currently in the table. -
Which NAT type maps one inside address to exactly one outside address with no port translation?
- Static NAT (one-to-one)
- PAT
- Dynamic NAT with overload
- Port forwarding with a pool
Static NAT is a permanent one-to-one mapping, often used to publish an internal server to the outside. It does not consume ports because the mapping never changes.
-
A PC is reachable from the Internet only when a specific port is forwarded to it. Which concept does this describe?
- Static NAT for the whole host
- DHCP reservation
- Route summarisation
- Port forwarding (static PAT)
Static PAT (port forwarding) maps an external port on the public address to an internal host and port, so only the chosen service is exposed.
Part 2 — DHCP, DNS & TFTP
-
Which four messages make up the DHCP DORA exchange?
- Discover, Open, Reply, Accept
- Demand, Offer, Request, Acknowledge
- Discover, Offer, Request, Acknowledge
- Discover, Offer, Response, Apply
The client broadcasts Discover, the server replies Offer, the client sends Request, and the server confirms with Acknowledge. This is the DORA sequence.
-
Which UDP ports does DHCPv4 use?
- 67 for clients, 68 for servers
- 67 for servers, 68 for clients
- 53 for both
- 546 and 547 for both
DHCP servers listen on UDP 67 and clients on UDP 68 in DHCPv4. DHCPv6 uses UDP 546 (clients) and 547 (servers).
-
A router needs to give DHCP addresses to clients on a remote subnet where a central server sits. What must be configured on the router interface?
- An IP helper-address pointing at the DHCP server
ip nat inside- A second default gateway
- Port security
ip helper-address SERVER-IPconverts the client's broadcast Discover into a unicast relay to the server, and forwards replies back. This is DHCP relay. -
Which command excludes addresses 10.0.0.1 through 10.0.0.9 from a Cisco IOS DHCP pool?
ip dhcp exclude 10.0.0.1 10.0.0.9excluded-address 10.0.0.1 10.0.0.9no dhcp pool 10.0.0.1 10.0.0.9ip dhcp excluded-address 10.0.0.1 10.0.0.9
ip dhcp excluded-address(global config) removes a range from being handed out, typically for gateways and servers. The pool is then built withip dhcp pool NAME. -
Which port does DNS primarily use, and over which transport?
- TCP 53 only
- UDP 67 only
- UDP 53 for queries, TCP 53 for large transfers and zone transfers
- TCP 80
DNS uses UDP 53 for normal queries because it is fast and connectionless, and TCP 53 for zone transfers and responses that exceed UDP limits.
-
Which command configures a Cisco router as a caching DNS client to resolve names?
ip name-server 8.8.8.8ip dns enable 8.8.8.8dns server 8.8.8.8ip host 8.8.8.8
ip name-servertells the router which DNS servers to query, andip domain-lookup(on by default) enables resolution.ip hostcreates a static entry instead. -
Which protocol and port are used to back up a router configuration to a server?
- FTP over TCP 21 only
- TFTP over UDP 69
- SNMP over UDP 161
- NTP over UDP 123
TFTP uses UDP 69 and is the classic Cisco IOS method for copying configurations and IOS images (
copy running-config tftp:). It is connectionless and simple. -
Which command starts a Cisco IOS DHCP pool named LAN for 192.168.1.0/24?
dhcp pool LAN 192.168.1.0ip pool LAN 192.168.1.0ip dhcp server LANip dhcp pool LANthennetwork 192.168.1.0 255.255.255.0
Enter DHCP pool configuration with
ip dhcp pool LAN, then define thenetwork,default-router, anddns-serverfor the clients.
Part 3 — NTP & time
-
Which port and transport does NTP use?
- TCP 123
- UDP 123
- UDP 161
- TCP 49
NTP uses UDP port 123. Accurate time is important for log correlation, certificates, and Kerberos-style authentication.
-
Which command sets a Cisco device to get its time from NTP server 10.0.0.5?
ntp server 10.0.0.5ntp client 10.0.0.5time server 10.0.0.5clock ntp 10.0.0.5
The global command
ntp server 10.0.0.5configures the device to synchronise with that server. A configuredntp masterlets the device serve time to others. -
In NTP hierarchy, what does stratum indicate?
- The encryption strength
- The number of clients served
- The time zone offset
- The distance in hops from the reference clock, where stratum 1 is directly attached to an authoritative source
Stratum levels run from 0 (reference clock) to 15. Stratum 1 servers connect directly to a reference clock; each level down inherits a slightly less accurate time.
-
Which command sets the time zone and enables daylight saving adjustment?
clock timezoneonlyntp timezoneclock timezone GMT 0andclock summer-timetimezone gmt
Time zone and daylight saving are set with
clock timezoneandclock summer-time. NTP keeps UTC internally; these commands affect display only. -
Why does accurate time matter for network security?
- Logs and certificates rely on consistent timestamps; drift breaks correlation and validation.
- It encrypts management traffic.
- It assigns IP addresses.
- It prevents VLAN hopping.
When devices disagree on time, syslog and SNMP events are hard to correlate and certificate validity checks can fail, so NTP is a security-relevant service.
Part 4 — SNMP, syslog & SSH
-
Which UDP ports does SNMP use for agent queries and traps?
- 161 for traps, 162 for queries
- 161 for queries, 162 for traps
- 514 for both
- 123 for both
The SNMP manager polls the agent on UDP 161; agents send unsolicited traps to the manager on UDP 162.
-
Which syslog severity level is the most severe?
- Level 7 (debugging)
- Level 5 (notification)
- Level 0 (emergency)
- Level 3 (error)
Syslog severity runs from 0 (emergency, most severe) down to 7 (debugging, least severe). A lower number is more urgent.
-
Which command sends syslog messages to a server at 192.168.1.50?
logging host 192.168.1.50syslog server 192.168.1.50snmp host 192.168.1.50log server 192.168.1.50
logging hostpoints the device at a syslog collector;logging trap LEVELsets the minimum severity that is sent. -
Which port and protocol does SSH use, and why is it preferred over Telnet?
- TCP 23; it is faster
- UDP 22; it is connectionless
- TCP 69; it uses TFTP
- TCP 22; it encrypts the session, unlike Telnet on TCP 23 which sends credentials in clear text
SSH runs on TCP 22 and encrypts the whole session, protecting credentials and commands. Telnet (TCP 23) is plaintext and should be disabled on production devices.
-
Which sequence of commands enables SSH on a Cisco IOS device?
crypto key generate sshonly- Set hostname and domain name, generate RSA keys, create a local user, configure
line vty 0 4withtransport input sshandlogin local ip ssh server enable 22username admin ssh
SSH requires a hostname and domain name (to build the key pair), generated RSA keys, an AAA-capable local user, and VTY lines restricted to SSH with local authentication.
-
Which SNMP version adds authentication and privacy (encryption) through a user-based security model?
- SNMPv1
- SNMPv2c
- SNMPv3
- SNMPv2u
SNMPv3 adds USM (User-based Security Model) for authentication and privacy. SNMPv1 and v2c rely on plaintext community strings.
-
Which command displays the current logging configuration and the syslog server?
show loggingshow ntp statusshow snmp communityshow running-config | verbose
show loggingshows the logging destinations, trap level, and buffered log entries, confirming that logs are being sent where intended.
Part 5 — QoS
-
Which is the recommended DSCP value for voice (Expedited Forwarding)?
- AF31 (26)
- EF (46)
- CS0 (0)
- AF11 (10)
Voice is marked DSCP EF (46) for low latency, low jitter, and low loss. CS0 is best-effort and AF classes are for other priority levels.
-
Which per-hop QoS behaviour places packets into queues for forwarding?
- Queuing
- Classification
- Marking
- Policing
The QoS toolset is classify, mark, queue, and apply congestion avoidance/shaping. Queuing decides which queue a packet waits in and how it is scheduled out.
-
What does QoS marking accomplish?
- It encrypts the packet.
- It drops packets above a rate.
- It compresses the payload.
- It sets a value in the packet header (such as DSCP in IP or CoS in 802.1Q) so downstream devices know the treatment class
Marking writes a class value (Layer 3 DSCP or Layer 2 CoS) into the frame so every downstream device can classify and treat it consistently.
-
Which of these traffic types is most sensitive to jitter and delay?
- Bulk file transfer
- Interactive voice and video
- Software updates
Real-time voice and video need consistent low delay and jitter; bulk data is tolerant of delay and can be scheduled after time-sensitive flows.
-
What is the difference between shaping and policing?
- Shaping buffers excess traffic to smooth it; policing drops or remarks excess traffic.
- Shaping drops traffic; policing buffers it.
- They are identical.
- Shaping only applies to voice.
Shaping delays out-of-profile traffic (adding delay but not loss); policing enforces a rate by dropping or re-marking excess packets immediately.
Missed-question review map
| Part | Topic | Where it is covered |
|---|---|---|
| Part 1 | NAT, PAT, address roles, config | Week 9 · NAT lab |
| Part 2 | DHCP, DNS, TFTP, helper address | Week 9 · Application Layer |
| Part 3 | NTP and time sync | Week 9 · Application Layer |
| Part 4 | SNMP, syslog, SSH management | Week 10 · Security Fundamentals; Week 11 |
| Part 5 | QoS marking, queuing, DSCP EF | Week 8 · Transport Layer |
Sources & references
- Cisco. CCNA (200-301) Exam Topics, Domain 4.0 IP Services. cisco.com.
- Droms, R. RFC 2131: Dynamic Host Configuration Protocol (1997). rfc-editor.org/rfc/rfc2131.
- Sollins, K. RFC 5905: Network Time Protocol Version 4 (2010). rfc-editor.org/rfc/rfc5905.
- Harrington, D. et al. RFC 3411: An Architecture for Describing SNMP Management Frameworks (2002). rfc-editor.org/rfc/rfc3411.
- Srisuresh, P. & Holdrege, M. RFC 2663: IP Network Address Translator Terminology and Considerations (1999). rfc-editor.org/rfc/rfc2663.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.