What's changed: Initial version
5.2Device access control and AAA
Covers local passwords that protect access to routers/switches (enable secret, line passwords, username secret) and SSH, which is safer than Telnet; password policy (complexity, management, MFA, certificates, biometrics); and AAA, which centrally manages authentication, authorization, and accounting, together with the choice between the external-server protocols TACACS+ (TCP 49, Cisco-proprietary, per-command authorization) and RADIUS (UDP, open standard, combined authentication/authorization)—judged from real device config and requirements.
If the network device itself is taken over, all the traffic it was protecting is put at risk. That is why hardening management access to routers/switches is a top-priority control. This section builds the judgment to decide "what suffices at small scale" versus "what is needed at large scale or under audit requirements," from local password configuration on a single device up to AAA (authentication, authorization, and accounting via external servers) that centrally manages many devices.
5.2.1Local passwords and SSH
- Protect privileged EXEC mode (
enable) withenable secret.enable secretis stored hashed (type 5 by default, type 8/9 scrypt on newer IOS) so the plaintext cannot be recovered. The legacyenable passwordis not encrypted and is weak, so do not use it. Note thatservice password-encryption, which weakly obscures line passwords as type 7, is reversible and provides no real protection. - On the console (
line console 0) and the VTY lines (line vty 0 4, the virtual lines for Telnet/SSH), setpasswordpluslogin, orlogin local(authenticating against the local database ofusername/secret). Useusername NAME secret PASSWORDto create per-user accounts (secret—hashed storage—is safer thanpassword). - Because Telnet sends the username, password, and commands in plaintext, always use SSH for remote management. Enabling SSH requires (1) setting a hostname and domain name, (2) generating an RSA key with
crypto key generate rsa, (3) creating a local user, and (4) specifyingtransport input sshunderline vty. SSHv2 is recommended.
Continue reading — free sign-up
You're reading the free preview. Sign up free to read this section in full, plus every chapter (including 4+) and all questions.

