An administrator on a campus core switch named Core-SW1 is configuring SSH for secure management access. The administrator sets a hostname of Core-SW1 and attempts to run the command `crypto key generate rsa`, but receives the system message: `% Please define a domain-name first.` Which configuration command must be entered in global configuration mode to resolve this issue and allow key generation?
- ip domain-name example.comAnswer
- Bip ssh version 2
- Ctransport input ssh
- Dusername admin secret Cisco12345
Answer
Configure an IP domain name using the global configuration command `ip domain-name example.com`.
Generating an RSA key pair on a Cisco IOS device requires both a non-default hostname and an IP domain name. The device uses these two parameters to form the fully qualified domain name (FQDN) that names the key pair. Executing `ip domain-name example.com` supplies the missing parameter so that `crypto key generate rsa` can run successfully.
Step-by-Step Solution
Key Concept
SSH Prerequisite Configuration and RSA Key Pair Naming
Estimated Time:1m 0s