liveBook · Manning

Exec-timeout

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

exec-timeout is a Cisco IOS line-configuration command that sets the inactivity period before a CLI session is disconnected.

exec-timeout is a Cisco IOS line-configuration command that disconnects an inactive CLI session after a specified period. The default is 10 minutes. section 5.1.1 section 5.4

Configure the timeout from line configuration mode:

  • Select the relevant line, such as line con 0 for the console or line vty 0 15 for remote sessions. section 5.1.1 section 5.2.2
  • Enter exec-timeout minutes; for example, exec-timeout 20 disconnects the session after 20 minutes of inactivity. section 5.2.2
  • Use exec-timeout 0 to disable the inactivity timer. section 5.4

Apply and verify a VTY timeout

SW1(config)# line vty 0 15 SW1(config-line)# exec-timeout 20 The running configuration can show exec-timeout 20 0 under each configured VTY-line group, such as lines 0–4 and 5–15. section 5.2.2

Figure 5.5 Enabling Telnet on SW1. Users must log in with a local user account and will be logged out after 20 minutes of inactivity. Only Telnet can be used to connect to the VTY lines, and only hosts in 192.168.1.0/24 are permitted.

Relates the 20-minute timeout to Telnet access, local authentication, permitted protocols, and an access-class restriction. section 5.2.2

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains line selection, default behavior, custom duration, disabling, and running-configuration verification.
Examples
Uses console authentication and a 20-minute VTY configuration shown in running-config output.
What it assumes
Assumes familiarity with Cisco IOS line configuration and distinguishes console access from VTY-based remote access.
What you can do after
Configure and verify inactivity disconnection for Cisco IOS console and VTY sessions.
How it connects
Connects console lines and VTY lines with CLI sessions, Telnet, SSH, and line authentication.

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.