Get My Exclusive FREE 7-Part Report,
"How To Pass The CCNA", Daily FREE
Cisco And CompTIA Exam Questions,
And All The Latest Certification News
In My Daily Newsletter!

Privacy Policy

Name:
Email:
  More Testimonials >
Visit my blog for free daily Cisco CCNA and CCNP certification questions, my latest free articles and tutorials, and more!


 

Cisco CCENT 640-822 And CCNA 640-802 Certification Exam Training Tutorial:

Using The logging synchronous And exec-timeout Commands

By Chris Bryant, CCIE #12933

Throughout 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 ?
  <0-35791>  Timeout in minutes

R1(config-line)#exec-timeout 0 ?
  <0-2147483>  Timeout in seconds
  <cr>

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 ?
  <0-35791>  Timeout in minutes

R1(config-line)#exec-timeout 0 ?
  <0-2147483>  Timeout in seconds
  <cr>

R1(config-line)#exec-timeout 10 ?
  <0-2147483>  Timeout in seconds
  <cr>

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!

Get CCENT Certified With Chris Bryant, CCIE - And Then CCNA Certified At No Additional Cost!

You'll Be Studying For CCENT Exam Success In Just A Few Minutes, And I'm Here To Help You Every Step Of The Way!

CCENT Study Package

To your success,

Chris Bryant

CCIE #12933

chris@thebryantadvantage.com

 

 

The Ultimate CCNA Study Package | The Ultimate CCNA Study Guide

Binary Math And Subnetting Mastery

Cisco Rack Rentals

CCNP BSCI Exam Study Package

CCNP BCMSN Exam Study Package

CCNP BCRAN Exam Study Package

CCNP CIT Exam Study Package | CCNP BSCI Exam Study Guide

CCNA CBT Video Boot Camp | CCNP BSCI Video Boot Camp

Cisco Training Tutorials And Cisco Certification Articles

CCNP CBT BCMSN Video Boot Camp | CCNP CBT BCRAN Video Boot Camp

CompTIA Network+ Exam Study Package

CompTIA Security+ Exam Study Package

CompTIA A + Certification Exam Study Package

CCNA Training Store | CCNP Certification Training Store

CompTIA Certification Training Store

Cisco Lab Router And Switch Home Lab Help

Site Map | Home Page | Testimonials

Microsoft Windows Vista Certification Updates And News

The Bryant Advantage Blog | About Chris Bryant, CCIE #12933