From: Farrukh Haroon (farrukhharoon@gmail.com)
Date: Mon Sep 12 2005 - 08:01:36 GMT-3
Mohammed, considering your task "limiting the inactivity period under
vty lines", you would use the "Exec-timeout 5" command and not the
'session-timeout' command,
Sample Config
line vty 0 4
login
password abc
exec-timeout 5
session-timeout 3
now once you telnet to your router, your connection would be
disconnected after 5 minutes (and not 3 minutes)
the 'session-timeout' command would be used, for example once you have
logged on to the router using a vty line and then you issue from the
IOS CLI
"telnet 192.168.0.1", after 3 minutes this telnet session would get
disconnected, but you would still be connected to the router via a vty
line, for more details you can check idle times for currently
connnnected lines using the 'who' command
regarding the second part:
If you require "banner message to be displayed *only* to telnet users"
you would use banner login but if you want the banner to be displayed
to all users logging (console , telnet etc) you would use banner motd
HTH
Regards
Farrukh
On 9/12/05, Mohammed El-Komy (moelkomy) <moelkomy@cisco.com> wrote:
> Guys,
>
>
>
> 1- If I need for example to limit the telnet user to be disconnected
> after 5 minutes of inactivity, shall I use
>
>
>
> Line vty 0 4
>
> Exec-timeout 5
>
>
>
> or
>
>
>
> Line vty 0 4
>
> Session-timeout 5
>
>
>
> Is there a difference or do both of them fulfill the task?
>
>
>
>
>
> 2- If I need a banner message to be displayed to telnet users that says
> "Access to Network is prohibited", shall I use
>
>
>
> Banner login "...."
>
>
>
> Or
>
>
>
> Banner motd "...."
>
>
>
> Which of them is more accurate in such a case?
>
>
>
> Regards,
>
> -------------------------------------------------------------------
>
>
>
> Mohamed ElKomy
>
> Cisco Systems, Systems Engineer
>
>
>
> Office: +2024885300
>
> GSM: +20121022297
>
> FAX: +2024885400
>
> moelkomy@cisco.com
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Sun Oct 02 2005 - 14:40:14 GMT-3