Pcornel
Networking · Security › Device Access & Management

Console Access

Cheat sheet · https://pcornel.dk/topic.php?topic=745

Back to the Topic

Answer

Console access is the device's serial (or USB) management port, reached directly or through a terminal server. It works without the network, so it is the recovery path when SSH, AAA or routing fails.

Remember

Protect it like any other login: login authentication <list> (AAA with local fallback) or login local, exec-timeout 5 0, and physical security of the device and terminal server. Make sure a local account works on the console even if the AAA server is down. Logging to the console (logging console) can slow a busy device; use logging buffered instead.

First checks

  • show running-config | section line con — login method, exec-timeout, transport.
  • show line con 0 — line settings and whether it is in use.
  • show users — who is logged in on the console and VTY lines.
  • show running-config | section aaa — the method list the console uses.
  • show logging | include CONSOLE|login — console logins and failures.

Commands

exec-timeout <minutes> <seconds>
Disconnect idle line sessions after the given time.
line console 0
Enter configuration for the console line.
password <password>
Set the line password (used with "login").
login
Require the line password at login.
login local
Authenticate line logins against local usernames.

Verify in this order

physical or terminal-server access restricted → console line requires login → AAA with local fallback → session times out when idle → logins logged

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=745

Confirmation

Confirm action

Continue?