in

IEOC - Internetwork Expert's Online Community

Welcome to Internetwork Expert's Online Community - IEOC - a place for CCIE and CCENT candidates to connect, share, and learn. Our Online Community features CCIE forums and discussions for all tracks including Routing & Switching, Voice, Security, Service Provider, and Storage. Through these online communities you can discuss your questions with thousands of your peers, hundreds of CCIE's and Internetwork Expert's own team of world renowned CCIE instructors and authors, Brian Dennis - Quintuple CCIE #2210, Scott Morris - Quad CCIE #4713, Brian McGahan – Triple CCIE #8593, Petr Lapukhov - Quad CCIE #16379, Anthony Sequeira - CCIE #15626, Keith Barker - Dual CCIE #6783, and Marvin Greenlee - Triple CCIE #12237.
Latest post 06-29-2009 6:16 PM by mahmoud. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-26-2008 6:05 AM

    exec-timeout vs. session-timeout

    Experts,

    Can someone explain the difference between the line configuration commands exec-timeout and session-timeout? Can you give a scenario for how each is used?

    TIA!

     

     

    • Post Points: 20
  • 07-26-2008 12:39 PM In reply to

    Re: exec-timeout vs. session-timeout

    imagine the following topology

    PC---R2---R3

    Let's say you open telnet connection from PC to R2 and log into exec shell (usually this is the default). If you leave your shell inactive for the period of "exec-timeout" configured on R2 VTYs, then R2 will close you exec session and terminate telnet connection.

    Now imagine you telnet from PC to R2 and then to R3. At this moment, if you leave your shell idle on R3, one of the following will happen. Either "exec-timeout" configured on R3 expires, and R3 teminates your shell OR "session-timeout" configured on R2 VTY lines expires and R2 closes your outgoing connection. This depends on which timeout has smaller  value.

    Keep in mind, "session-timeout" is for sessions originated out from this VTY, while "exec-timeout" is for EXEC sessions started when someone logs into this VTY.

     

    Petr Lapukhov, CCIE #16379 (R&S/Security/SP/Voice)
    petr@internetworkexpert.com 

    InternetworkExpert Inc.
    http://www.internetworkexpert.com

    Filed under: ,
    • Post Points: 35
  • 07-26-2008 3:12 PM In reply to

    Re: exec-timeout vs. session-timeout

    Petr,

    Have you tried to lab up the session-timeout line configuration command? It doesn't seem to do for me what you are saying here that it does.

    ------Original Message------
    From: Petr Lapukhov
    Sender: ccie-rs@ieoc.com
    To: bkvalentine@gmail.com
    ReplyTo: ccie-rs@ieoc.com
    Sent: Jul 26, 2008 3:40 PM
    Subject: Re: [CCIE R&S] exec-timeout vs. session-timeout

    imagine the following topology
    PC---R2---R3
    Let's say you open telnet connection from PC to R2 and log into exec shell (usually this is the default). If you leave your shell inactive for the period of "exec-timeout" configured on R2 VTYs, then R2 will close you exec session and terminate telnet connection.
    Now imagine you telnet from PC to R2 and then to R3. At this moment, if you leave your shell idle on R3, one of the following will happen. Either "exec-timeout" configured on R3 expires, and R3 teminates your shell OR "session-timeout" configured on R2 VTY lines expires and R2 closes your outgoing connection. This depends on which timeout has smaller  value.
    Keep in mind, "session-timeout" is for sessions originated out from this VTY, while "exec-timeout" is for EXEC sessions started when someone logs into this VTY.
     



    Internetwork Expert - The Industry Leader in CCIE Preparation
    http://www.internetworkexpert.com

    Subscription information may be found at:
    http://www.ieoc.com/forums/ForumSubscriptions.aspx
    http://www.ieoc.com/forums/ForumSubscriptions.aspx


    Sent via BlackBerry from T-Mobile
    • Post Points: 5
  • 06-29-2009 12:41 PM In reply to

    Re: exec-timeout vs. session-timeout

    Mr. Petr Lapukhov's conceptual explanation is correct.

    it works...

     

     

     

     

     

    • Post Points: 20
  • 06-29-2009 6:16 PM In reply to

    Re: exec-timeout vs. session-timeout

    I verified it too. Works as Petr said (although his words don't need verifications ;-) )

     

    maguphe: what's the difference between your example and Petr's?

    • Post Points: 5
Page 1 of 1 (5 items)
IEOC CCIE Forums Internetwork Expert CCIE Training
About IEOC | Terms of Use | RSS | Privacy Policy
© 2009 Internetwork Expert, Inc. All Rights Reserved