Cisco CCENT - CCNA Certification Exam Tutorial - Logging Synchronous And Exec-Timeout Commands
Throughout my CCENT and CCNA tutorials, you will notice these two curious commands on the console port:
line con 0
exec-timeout 0 0
Logging synchronous -
I recommend these commands together for many years, CCNA and CCNP candidates from their own home labs, but they can come in handy at work as well. Let us consider these commands one at a time, starting with the logging synchronous command.
If the router wants you to know something, it wants you toknow 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) # closed
R1 (config-if) # ^ Z
R1 # So here I am
4d04h:% SYS-5-CONFIG_I: Configured from console by CONSOLETYPE
4d04h:% LINK-3-UPDOWN: Interface Serial0, changed state to uping and
4d04h:% LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to interrupt upi've very bad!
4d04h:% LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
This may seen trivial, but if you have a long commandEntry interrupted by a console message, you are wondering how to prevent it. (If you stop crying to the router, that is.) By configuring the logging synchronous command on the console port, tell the router to keep those messages until there is no input from the keyboard and no other exit the router recognizes as a show command output.
R1 (config) # line console 0
R1 (config-line) # logging?
Synchronous synchronous signal output
The secondCommand I always enter on the console port of a house lab router or switch, exec-timeout 0 0. This disables the default timeout of 5 minutes and 0 seconds. If you change the timer, instead of to disable it, the first number represents the number of minutes of inactivity in the 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 inSeconds
R1 (config-line) # exec-timeout 0 0 disabled (the inactivity timer)
This command can also be configured on the VTY lines, and that the inactivity timer for Telnet or SSH and disable users. Here we find 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 inSeconds
R1 (config-line) # exec-timeout 10 0
Some network administrators hate this command, and I personally do not like to disable my router Telnet and SSH inactivity timer. They're great commands for your current or future home lab, and I also recommend for your CCENT and CCNA exams!
Friends Link : spyware protection free spyware removal computer consulting spyware removal intel core processor
Danos tu comentario
Post a Comment