Cisco IOS Device Management
How you actually log into and configure a Cisco device. Covers console / SSH / Telnet access, command modes (user / privileged / config), saving config, banners, the password types, and modern best practices for line security.
- Three ways in: console (cable for first setup), SSH (remote standard), AUX (out-of-band fallback). Telnet exists but never use it: it's unencrypted.
- Three command modes: user EXEC (R1>), privileged EXEC (R1#), global config (R1(config)#). Each one allows more.
-
copy running-config startup-config(orwr) saves changes to survive a reload. Forget this and your config evaporates.
Studying for an exam? Get a free study plan from a Cisco NetAcad instructor. 20 minutes, no card.
Mental model
A Cisco device runs IOS, which exposes a command-line interface. You connect to that CLI through one of several access methods, navigate through a hierarchy of command modes, and either inspect (with show commands) or configure (with everything else).
Every Cisco engineer’s day-1 muscle memory:
R1> ← user EXEC (show some things, ping, traceroute)
R1> enable ← move up to privileged EXEC
R1# ← privileged EXEC (all show commands, debug, reload)
R1# configure terminal
R1(config)# ← global config (change device settings)
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ← interface config (change one interface)
exit moves you back one level. end jumps all the way to privileged EXEC. Ctrl+Z is the keyboard shortcut for end.
The three ways in
| Method | Used for | Encryption |
|---|---|---|
| Console | First setup, password recovery, troubleshooting when network is down | None (physical cable) |
| SSH (VTY) | Daily remote management | SSH-2 protocol (RFC 4253), port 22. Note: SSH is not TLS; it has its own crypto transport. |
| AUX / OOB management | Out-of-band backup access (over a separate management network or modem) | Varies |
| Telnet (VTY) | DON’T USE: port 23, unencrypted | None |
Always disable Telnet, always enable SSH. Telnet sends passwords in plain text; any attacker on the path can read them. There’s zero reason to allow it in 2026.
Configuring SSH and disabling Telnet
R1(config)# hostname R1
R1(config)# ip domain-name corp.local ! required for crypto key gen
R1(config)# crypto key generate rsa modulus 2048 ! generate SSH keys
! Configure VTY lines (remote access)
R1(config)# line vty 0 15
R1(config-line)# transport input ssh ! only SSH allowed
R1(config-line)# login local ! use local username database
R1(config-line)# exec-timeout 10 0 ! kick idle sessions after 10 min
! Create a local user
R1(config)# username admin privilege 15 secret strong-password
! Console line: set a password
R1(config)# line console 0
R1(config-line)# login local
R1(config-line)# logging synchronous ! stop log msgs interrupting your typing
R1(config-line)# exec-timeout 0 0 ! console doesn't time out (debatable)
Critical: the secret keyword stores a hashed password. The older password keyword stores it in plaintext (or weakly reversible Type 7). Always secret, never password.
Password types: know your hash
Cisco IOS supports several password storage formats:
| Type | What it is | Use? |
|---|---|---|
| Type 0 | Plaintext | Never |
| Type 7 | Weakly reversible | Never: decoded in seconds |
| Type 5 | MD5 hash | Acceptable, weak by modern standards |
| Type 8 | PBKDF2-SHA256 | Good |
| Type 9 | scrypt | Best: use this for new configs |
! Type 9 (scrypt): modern, strong
R1(config)# username admin algorithm-type scrypt secret strong-password
! Enable password encryption for all stored passwords
R1(config)# service password-encryption
service password-encryption upgrades any remaining Type 0 to Type 7 (still weak, but at least not plaintext). It doesn’t downgrade stronger hashes.
Saving and reloading
R1# copy running-config startup-config ! save the current config
R1# wr ! shortcut for the same
R1# show running-config ! what's running now
R1# show startup-config ! what will load on next reload
R1# reload ! reboot
Forgetting to save is the #1 mistake of new engineers. Make config changes → forget to save → device reloads (planned or panic) → all your changes gone. Always end a config session with wr.
Banners
A banner shows on login. Two types you’ll meet:
R1(config)# banner motd #
Enter TEXT message. End with the character '#'.
WARNING: Authorized access only. Activity is logged.
#
R1(config)# banner login #
Welcome to corporate router R1.
#
motd (message of the day) appears first, as soon as someone connects. login appears after the MOTD and before the username/password prompts. banner exec appears after a successful login. Use motd (or login) for legal warnings: courts have ruled this matters for prosecuting unauthorized access.
The four “show” commands you’ll run constantly
R1# show running-config ! the live config
R1# show ip interface brief ! one-line summary of every interface
R1# show version ! IOS version, uptime, model, serial
R1# show running-config | section interface ! filter to interface configs
| pipes the output through filters. | include X, | begin X, | section X, | exclude X. All useful. CCNA loves to test the difference between include (lines containing) and section (whole subsection starting with).
Common mistakes
-
Leaving Telnet enabled.
transport input sshon every VTY line, every device. -
service password-encryptionand thinking it’s secure. It uses weak Type 7, which online tools decode in seconds. Use stronger algorithms for important secrets (Type 8 or 9). -
No console password. A physical attacker can connect to the console port and get unrestricted access. Always set a console password.
-
exec-timeout 0 0on VTY lines. Means idle sessions never time out. A walked-away admin’s session is a permanent open door. Set 10 min or less for VTY. -
Forgetting
copy running startup. The single most common reason for “my config disappeared after reboot.” -
Putting the
enable passwordinstead ofenable secret. The oldenable passwordstores plaintext (Type 0), or weak Type 7 ifservice password-encryptionis on.enable secretstores Type 5/8/9. Alwayssecret. -
Using the same
enable secretacross every device. If one device is compromised, the secret is reused everywhere. Use TACACS+/RADIUS (centralized AAA) so each user has unique credentials. -
Disabling DNS-lookup on console without realizing why.
no ip domain-lookupis a common config item. Without it, mistyping a command makes the router try to DNS-resolve it as a hostname, timing out for ~30 seconds. Most engineers add this on every device.
Lab to try tonight
- Console into a fresh Cisco router (CML, Packet Tracer, or real device).
- Set hostname, enable secret (Type 9), and a console password.
- Configure SSH: generate RSA key 2048, create a local user, enable SSH on VTY lines, disable Telnet.
- From another device, SSH in. Verify Telnet fails.
- Configure a
motdbanner with a legal warning. - Make some config changes. Run
show running-configthenshow startup-config. Note they differ. wr. Re-run both: they now match.- Reload. Verify your changes survived.
- Bonus: configure AAA pointing at a RADIUS / TACACS+ server (see AAA topic).
Cheat strip
| Concept | Plain English |
|---|---|
| Modes | user (R1>) → priv (R1#) → config (R1(config)#) |
| Console | Physical cable. Day-1 setup, password recovery. |
| SSH / VTY | Daily remote access. Port 22, encrypted. |
| Telnet | Never use. Plaintext. |
enable secret |
Privileged password. Hashed. |
secret (in username) |
Hashed user password. Always this, never password. |
| Type 9 | scrypt: best password hash |
service password-encryption |
Type 0 → 7. Weak but better than nothing. |
copy run start |
Save config. Survive reboot. |
exit / end / Ctrl+Z |
Back one level / all the way out |
wr |
Shortcut for copy run start |
OSI Model & TCP/IP
Two networking reference models compared side-by-side. The seven OSI layers, the four TCP/IP layers, and which one the real internet actually runs on (spoiler: not OSI).
IPv4 Addressing
32-bit addresses, dotted decimal, classful vs classless, private ranges, and the special addresses (loopback, broadcast, APIPA) you should never accidentally use for production hosts.
Want this drilled into reflex?
1:1 weekly sessions, live feedback on your labs, and US interview prep: built around the CCNA® exam blueprint. Free first session. No card on file until you decide.
Related topics
AAA · RADIUS & TACACS+
AAA (authentication, authorization and accounting) explained: RADIUS vs TACACS+, method lists, and why networks over 5 devices use centralized auth.
Network FundamentalsIPv4 Addressing
32-bit addresses, dotted decimal, classful vs classless, private ranges, and the special addresses (loopback, broadcast, APIPA) you should never accidentally use for production hosts.
Network FundamentalsOSI Model & TCP/IP
Two networking reference models compared side-by-side. The seven OSI layers, the four TCP/IP layers, and which one the real internet actually runs on (spoiler: not OSI).
Stuck on Cisco IOS Device Management?
Walk your plan with a Cisco NetAcad instructor in a free 20 minute call. We find the one thing blocking you and name the next step. No card. No pitch.
- 20 minutes, 1:1 with a Cisco NetAcad instructor
- No card, no obligation, no sales pitch
- You pick the slot that fits your week
Get your study plan in a free 20-minute call
- ✓ 1:1 with a senior network engineer, by video
- ✓ You leave with a written study plan and a realistic exam date
- ✓ No card, no sign-up, no sales pitch