Terminal configuration command directory

attach-port

autocommand

clear line

connect

disconnect

exec-timeout

length

line

location

login authentication

monitor

no debug all

password

printer enable

printer start 

printer stop

resume

script activation

script callback

script connection

script dialer

script reset

script startup

s equence-char

show debug

show line

show tty-status

switchkey

switchmsg

terminal-type

terminal monitor

terminal width

terminal length

where

width

 

attach-port

Binding telnet interception ports and line vty number, make telnet connection ,which logon a special port ,produce vty according to appointed numbers.

[no] attach-port PORT

 

parameter:

porttelnet server’s interception port number (3001-3999)

 

default:

none

 

command mode:

line configuration mode

 

example:

Bind 3001 interception port to line vty 2 3.

Router_config# line vty 2 3

Router_config_line#attach-port 3001

 

autocommand

Set auto-commands when user logon to the terminal, the connection will cut after performing this command.

autocommand LINE

no autocommand

 

parameter:

LINE  Performing commands

 

command mode:

line configuration mode

 

example:

Router_conf#line vty 1

Router_conf_line#autocommand pad 123456

After successfully login, it will automatically PAD to the host whose X.121 address is 123456.

 

 

clear line

Clear appointed lines.

clear line [aux | tty | vty] [number]

 

parameter:

correspond to command “line”

 

command mode:

supervisor mode

 

example:

Router#clear line vty 0

 

connect

Connect a telnet server

connect server-ip-addr/server-host-name {[/port port][/source-interface interface] [/local local-ip-addr]}

parameter:

server-ip-addr/server-host-name   IP address or host name of the server

   port number

interface  launching connection’s interface name 

local-ip-addr        launching connection’s local IP address

 

command mode:

all configuration mode

 

example:

Router#telnet 192.168.20.1

 

disconnect

Delete suspended telnet session

disconnect N

 

parameter:

N    Suspended telnet session number

 

command mode:

all configuration mode

 

example:

Router#disconnect 1

 

 

exec-timeout

Set the maximum vacancy time of the teminal

[no] exec-timeout [time]

 

parameter:

time Vacancy time counted by second

 

default:

0 ( without time-out limit)

 

command mode

line configuration mode

 

example

Set line’s vacancy time to 1 hour

Router_config_line#exec-timeout 3600

 

 

length

Set one screen’s lines of the line terminal

[no] length [value]

 

parameter:

valueValues from 0-512, 0 shows no pause.

 

Default:

24

 

command mode:

线路配置模式

 

line

Enter into line configuration mode

line [aux | console | tty | vty] [number]

 

parameter:

Aux, console ,tty and vty are all line types. Aux is corresponding to auxiliary lines, console is corresponding to monitor lines, tty is corresponding to asynchronous line, vty is corresponding to Telnet,PAD,Rlogin etc. virtual lines. 

 

 “Number” is the number of the line type. There is only a number “0” to Console and Aux.

 

command mode:

global configuration mode

 

example:

entering VTY configurations mode from 0 to 10.

Router_config#line vty 0 10

 

location

Record descriptions of current lines

location [LINE]

no location

 

parameter:

LINEdescriptions text of Current lines.

 

command mode:

line configuration mode

 

login authentication

Set line login authentication parameter

[no] line login authentication [default | WORD]

 

parameter:

defaultSet to default authentication

WORDThe name of authentication list

 

command mode:

line configuration mode

 

example:

Router_conf_line#login authentication test

Set the line’s authentication list to “test”

 

 

monitor

Make log and debug information output to this line.

[no] monitor

 

parameter:

none

 

command mode:

line configuration mode

 

example:

Router_config_line#monitor

 

 

no debug all

Close all debug output of current VTY

no debug all

 

parameter:

none

 

command mode:

supervisor mode

 

example:

Router#no debug all

 

 

password

Set terminal’s password

password {password | [encryption-type] encrypted-password }

no password

 

parameter:

password

Configured password for this line, type in plaintext, the maximum password length is 30 digits.

[encryption-type] encrypted-password

encryption-type means the types of encryption, now, D-Link only supports two types: 0 and 7,

0 means no encryption, the latter “encrypted-password” will be covered by password’s plaintext, this has the same effect as typing password directly without adding encryption-type;

7 means that encryption with D-Link’s own arithmetic, the latter “encrypted-password” will be covered by encryption password cryptograph, this cryptograph can be copied from other routers’ configurations files.

 More details about password encryption ,please refer to “service password-encryption”command and “enable password”command.

 

command mode:

line configuration mode

 

example:

Router_conf#line vty 1

Router_conf_line#password test

Set password of VTY 1 to “test”.

  

resume

Resume suspended telnet session

resume N

 

parameter:

N    Number of suspended telnet session

 

command mode:

all configurations mode

 

example:

Router#resume 1  

 

printer enable

open/close the function of connecting to printer

printer enable[|disable]

 

parameter:

enable Open the function of connecting printer on line

disableClose the function of connecting printer on line

 

default:

disable

 

command mode:

line configuration mode

 

example:

Open the function of connecting printer on line tty 1.

Router_config# line vty 1

Router_config_line#printer enable

 

printer start

configure character sequence to begin printing 

[no] printer start char1 char2 char3 …

 

parameter:

char1 char2 char3 …character sequence to begin printing, must be 16 scale digit, begins with “Ox”, separation with space among characters.

 

no:  restore character sequence to begin printing to default: 0x1b 0x5b 0x35 0x69

 

default:

0x1b 0x5b 0x35 0x69

 

command mode:

line configuration mode

 

example:

configure character sequence to begin printing on line tty1

Router_config# line vty 1

Router_config_line#printer start 0x1b 0x5b 0x30 0x69

 

printer stop

configure character sequence to stop printing

[no] printer stop char1 char2 char3 …

 

parameter:

char1 char2 char3 …character sequence to stop printing, must be 16 scale digit, begins with “Ox”, separation with space among characters.

 

no: restore character sequence to begin printing to default: 0x1b 0x5b 0x35 0x69

 

default:

0x1b 0x5b 0x34 0x69

 

command mode:

line configuration mode

 

example:

configure character sequence to stop printing on line tty1

 

Router_config# line vty 1

Router_config_line#printer stop 0x1b 0x5b 0x31 0x69

 

script activation

configure the script of line activation

script activation WORD

 

parameter:

WORD :Script name

 

command mode:

line configuration mode

 

example:

configure script name of line activation to script1

Router_config_line#script activation script1

 

 

script callback

configure callback script

script callback WORD

 

parameter:

WORD: script name

 

command name:

line configuration mode

 

example:

configure system callback’s script name to “script1”

 

Router_config_line#script callback script1

 

script connection

configure script of creating connectiom

script connection WORD

 

parameter:

WORD: script name

 

command mode:

line configuration mode

 

example:

configure script name of creating connection to script1

Router_config_line#script connection script1

   

script dialer

configure dialer script

script dialer WORD

 

parameter:

WORD: Script name

 

command mode:

line configuration mode

 

example:

configure dialer script to “script1”

Router_config_line#script dialer script1

 

 

switchkey

Configure terminal switchkey 

switchkey key cmdalias server-name

 

parameter:

key terminal switch keyCTRL-A—CTRL-Z except CTRL-H

cmdalias       command alias when performing terminal switch

server-name       the corresponding server name to each terminal screen

 

command mode:

line configuration mode

 

example:

 

configure connect to sco1 server through “con-sco” command when switching by “ctrl-a”

 

Router_config_line#switchkey ctrl-a con_sco sco1

 

 

script reset

configure script when interface reset

script reset WORD

 

parameter:

WORD: Script name

 

command mode:

line configuration mode

 

example:

configure script to “script1” when interface reset

Router_config_line#script reset script1

 

 

script startup

configure script when system startup

script startup WORD

 

parameter:

WORD: Script name

 

command mode:

line configuration mode

 

example:

configure script’s name to “script1” when system startup

 

Router_config_line#script startup script1

 

s equence-char

configure character sequence writing back to terminal when terminal switch 

sequence-char key char1 char2 char3 …

 

parameter:

key   terminal switch key

char1 char2 char3 …       character sequence writing back

 

command mode:

line configuration mode

 

example:

configure character sequence writing back to terminal to “0x1b 0x21 0x38 0x51” when switching by “ctrl-a”

Router_config_line#sequence-char ctrl-a 0x1b 0x21 0x38 0x51

show debug

Show all current debug information opened by VTY

show debug

 

parameter:

none

 

command mode:

supervisor mode or global configuration mode

 

example:

Router#show debug

Generic IP:

  IP packet debugging is on

Frame Relay:

  Lmi debugging is on

 

show line

Show current effective line state

show line {[console | aux | tty | vty] [number]}

 

parameter:

If without parameters , it will show all current effective lines state.

Other parameters’ defines are correspond to “line”

 

command mode:

no-user state

 

show tty-status

show interface settings status corresponding to tty 

show tty-status N

 

parameter:

NNumber of line tty

 

Default:

none

 

command mode:

other configurations modes except user configurations mode

 

example:

show interface settings status corresponding to tty 1

Router_config# show tty-status 1

 

 

switchmsg

Configure whether to show prompt information when terminal is switching.

switchmsg enable

switchmsg disable

 

parameter:

enable    show prompt information when terminal switching

disable    forbid showing prompt information when terminal switching

 

default:

disable

 

command mode:

line configuration mode

 

example:

configure to show prompt information when terminal switching

Router_config_line#switchmsg enable

 

terminal length

Use  command “terminal length” to change displayed lines per screen of current terminal, this parameter can be obtained by the remote host.

“rlogin” protocol uses this parameter to note the remote UNIX host. While use “no” format of this command to restore its default.

terminal length length

no terminal length

parameter:

length displayed lines per screen

default:

pause after display 24 lines per screen

command mode:

global configuration mode

explanation:

This command is only effective to current terminal,  after finishing session, terminal attribute will lose.

Example:

router#terminal length 40

relevant commands:

line

 

terminal monitor

Use command “terminal monitor” to show debug output and system error information on current terminal , while using ”no” format of this command will close monitor.

terminal monitor

no terminal monitor

parameter:

none

default:

the dafault of System console is open, the default of other terminals are closed.

command mode:

global configuration mode

explanation:

This command is only effective to current terminal, after finishing session, terminal attribute will lose.

example:

router#terminal monitor

relevant commands:

line

debug

 

 

terminal width

When default, the router’s output is 80 characters per line. If it can not meet your terminal request, you can configure again. This parameter can be obtained by the remote host.  Using command ”terminal width” can set characters per line. Using no format of this command can restore its default.

terminal width number

no terminal width

parameter:

number     characters number per line

default:

display 80 characters per line

command mode:

global configuration mode

explanation:

This command is only effective to current terminal, after finishing session, terminal attribute will lose.

example:

router#terminal width 40

relevant commands:

line

 

terminal-type

set terminal type

[no] terminal-type [name]

 

parameter:

nameterminal’s name. terminal types supported include: VT100ANSIVT100J currently.

 

default:

ANSI

 

command mode:

line configuration mode

 

where

Check current suspended connection-out telnet sessions on the client.

Where

parameter:

none

 

command mode:

all configuration mode

example:

Router#where

 

 

width

Set width of line terminal.

[no] width [value]

parameter:

valueValues from 0—512, 0 means no enter.

Default:

80

command mode:

line configuration mode