Cisco IOS 'show hosts' output: Which items are reported by the 'show hosts' command on a router (choose the correct combination)?

Difficulty: Easy

Correct Answer: 1 and 4

Explanation:


Introduction / Context:
The show hosts command displays the router’s hostname resolution information, including cached and statically defined mappings used when you ping or telnet by name instead of by IP address.



Given Data / Assumptions:

  • (1) Temporary DNS entries
  • (2) Names of routers created using the hostname command
  • (3) IP addresses of workstations allowed to access the router
  • (4) Permanent name-to-address mappings created using the ip host command
  • (5) Length of time a host has been connected via Telnet


Concept / Approach:

show hosts shows name resolution tables: cached DNS lookups and static mappings defined by ip host. It does not list access permissions, Telnet session durations, or the mere fact that you set the router’s own hostname.



Step-by-Step Solution:

Recognize valid outputs: temporary DNS cache (1); static mappings (4).Eliminate non-related items: (2) local hostname setting, (3) access lists or authorization, (5) session timers.Select the combination '1 and 4'.


Verification / Alternative check:

Run show hosts on a lab router with ip host entries defined and after a DNS lookup; observe both static and cached entries listed with their IPs and time-to-live values (for cached entries).



Why Other Options Are Wrong:

Combos including (2), (3), or (5) are incorrect because those items are not part of host name resolution tables.



Common Pitfalls:

Confusing show hosts with show users or show sessions; assuming router hostname settings appear in host tables; mixing up DNS features with access-control features.



Final Answer:

1 and 4

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion