CCNA 200-301 practice question 14 of 35

A network engineer is configuring a switch so that it is remotely reachable via SSH. The engineer has already configured the host name. Which additional command must the engineer configure before entering the command to generate the RSA key?

Full set: 1,210 questions
Answer options
A: ip domain-name domain Correct answer
B: password password
C: crypto key generate rsa modulus 1024
D: ip ssh authentication-retries 2
Correct Answer:
A. ip domain-name domain
Explanation

For a Cisco IOS device to generate an RSA key pair, which is essential for enabling SSH, it must have a unique identity. This identity is formed by combining a unique hostname with an IP domain name to create a fully qualified domain name (FQDN). The question states the hostname is already configured. Therefore, the mandatory next step before executing the crypto key generate rsa command is to configure the IP domain name using the ip domain-name command.

Why Incorrect

B. password password: This command sets various passwords (e.g., for console, VTY lines, or enable secret) but is not a direct prerequisite for RSA key generation.
C. crypto key generate rsa modulus 1024: This is the command used to generate the RSA key itself; it cannot be a prerequisite for its own execution.
D. ip ssh authentication-retries 2: This is an optional command to enhance SSH security by limiting login attempts; it is configured after SSH is enabled, not before key generation.

References

1. Cisco Systems

Inc.

Cisco IOS Security Configuration Guide

Release 12.4

"Securing User Services." In the "Configuring Secure Shell" section

the configuration steps explicitly list configuring the hostname and IP domain name as prerequisites before generating the RSA key pair. The guide states

"You must configure a host name and a domain name for the router before you can generate an RSA key."

2. Odom

W.

CCNA 200-301 Official Cert Guide

Volume 1

Cisco Press

2019. In Chapter 28

"Implementing Switch Security

" the section "Configuring Secure Shell (SSH) on a Switch" outlines the configuration process. Table 28-3

"SSH Configuration Steps on a Cisco Switch

" lists Step 1 as setting the hostname

Step 2 as setting the IP domain name

and Step 3 as generating the RSA crypto keys

confirming the required order.

3. University of Kentucky

College of Engineering

"Cisco Router Configuration for SSH

" Course Material for CS/ECE 578. The documentation outlines the necessary steps for enabling SSH

specifying that both hostname and ip domain-name commands must be issued before the crypto key generate rsa command.

Scroll to Top