27
• Enter VTY line class
view:
line class vty
applied to all user lines of the class.
A non-
default setting in either view takes
precedence over a default setting in the other
view. A non-default setting
takes precedence over a non-default setting in
user line class view.
A
setting in user line view takes effect
immediately and affects the online user. A
setting in user line class view does not affect
online users and takes effect only for new login
users.
3.
service.
shell
By default, the terminal service is enabled.
4.
for the user lines to
support.
protocol inbound
{
all
|
ssh
|
telnet
}
By default, both Telnet and SSH are supported.
A protocol change does not take effect for
current online users. It takes effect only for new
login users.
In VTY line view, this command is associated
with the
authentication-mode
command
you specify a non-default value for only one of
the two commands in VTY line view, the other
command uses the default setting, regardless
of the setting in VTY line class view.
5.
for terminating tasks.
escape-key
{ character |
default
}
By default, pressing
Ctrl+C
terminates a task.
6. Specify the terminal
display type.
terminal type
{
vt100
}
By default, the terminal display type is ANSI.
7. Set the maximum
number of lines to be
displayed on a
screen.
screen-length
screen-length
By default, up to 24 lines
screen.
A value of 0 disables the feature.
8.
Set the size of
command history
buffer.
history-command
max-size
value
By default, the buffer saves 10 history
commands.
9. Set the CLI
connection
idle-timeout timer.
idle-timeout
minutes
[
seconds
]
By default, the CLI connection idle-timeout
timer is 10 minutes.
If no interaction occurs between the device and
the user within the idle-timeout interval, the
system automatically terminates the user
connection on the user line.
If you set the timeout timer to 0, the connection
will not be aged out.
10. Specify a command to
executed when users
log in to the user lines.
auto-execute command
command
By default, no automatically executed
command is specified.
Using the device to log in to a Telnet server
You can use the device as a Telnet client to log in to a Telnet server. If the server is located in a
different subnet than the device, make sure the two devices have routes to reach each other.