Cisco CCENT – CCNA Certification Exam Tutorial – Logging Synchronous And Exec-Timeout Commands
Table of Contents
ToggleThroughout my CCENT and CCNA exam tutorials, you’ll notice these two curious commands on the console port:
line con 0
exec-timeout 0 0
logging synchronous
I’ve been recommending these commands for years to CCNA and CCNP candidates putting their own home labs together, but they can come in handy on the job as well. Let’s take these commands one at a time, starting with the logging synchronous command.
When the router wants you to know something, it wants you to know right now. If the router sends a message to the console while you’re entering a config, by default the router will interrupt your work to show you that message.
In the following example, I opened a Serial interface, which will always result in at least two messages relating to the physical and logical state of the interface. I started typing a sentence immediately after I opened the interface to show you what happens. I’ve bolded the sentence I was entering.
R1(config)#int s0
R1(config-if)#no shut
R1(config-if)#^Z
R1#so here i am
4d04h: %SYS-5-CONFIG_I: Configured from console by consoletyp
4d04h: %LINK-3-UPDOWN: Interface Serial0, changed state to uping and
4d04h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to upi’ve been interrupted quite badly!
4d04h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
This may seen trivial, but when you have a long command entry interrupted by a console message, you’ll wonder how to prevent that from happening. (After you stop yelling at the router, that is.) By configuring the logging synchronous command on the console port, you’re telling the router to hold such messages until it detects no input from the keyboard and no other output from the router, such as a show command’s output.
R1(config)#line console 0
R1(config-line)#logging ?
synchronous Synchronized message output
The second command I always enter on the console port of a home lab router or switch is exec-timeout 0 0. This disables the default inactivity timeout of 5 minutes and 0 seconds. If you want to change that timer rather than disabling it, the first number represents the number of minutes in the inactivity timer and the second number is the number of seconds.
R1(config)#line con 0
R1(config-line)#exec-timeout ?
Timeout in minutes
R1(config-line)#exec-timeout 0 ?
Timeout in seconds
R1(config-line)#exec-timeout 0 0 (disables the inactivity timer)
This command can also be configured on the VTY lines to set or disable the inactivity timer for Telnet and SSH users. Here, we’ll set the VTY line inactivity timer to 10 minutes.
R1(config)#line vty 0 4
R1(config-line)#exec-timeout ?
Timeout in minutes
R1(config-line)#exec-timeout 0 ?
Timeout in seconds
R1(config-line)#exec-timeout 10 ?
Timeout in seconds
R1(config-line)#exec-timeout 10 0
Some network admins hate these commands, and I personally don’t like to disable my router’s Telnet and SSH inactivity timers. They’re great commands for your present or future home lab, and I also recommend you know them for your CCENT and CCNA exams!
You may also like
Archives
- November 2025
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- January 2017
- July 2016
- June 2016
- April 2016
- February 2016
- June 2015
- July 2014
- February 2014
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |

Leave a Reply
You must be logged in to post a comment.