01fc(fundamental configuration command)
TRANSCRIPT
-
7/27/2019 01FC(Fundamental Configuration Command)
1/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform Table of Contents
i
Table of Contents
Chapter 1 EXEC Interface Commands............... ........ ......... ........ ......... ......... ........ ......... ...... 1-11.1 configure..................................................................................................................1-1
1.2 controller e1.............................................................................................................. 1-11.3 crypto.......................................................................................................................1-21.4 disable ..................................................................................................................... 1-3
1.5 enable...................................................................................................................... 1-31.6 end .......................................................................................................................... 1-41.7 exit .......................................................................................................................... 1-4
1.8 help.......................................................................................................................... 1-51.9 interface...................................................................................................................1-61.10 language ................................................................................................................ 1-7
1.11 logic-channel .......................................................................................................... 1-8
1.12 route-map............................................................................................................... 1-81.13 router ..................................................................................................................... 1-9
1.14 vpdn-group........................................................................................................... 1-101.15 show history ......................................................................................................... 1-11
Chapter 2 System Management Commands................ ........ ......... ........ ......... ........ ......... ..... 2-12.1 File Management Commands .................................................................................... 2-1
2.1.1 configfile......................................................................................................... 2-12.1.2 copy ............................................................................................................... 2-22.1.3 download config.............................................................................................. 2-3
2.1.4 erase.............................................................................................................. 2-42.1.5 first-config....................................................................................................... 2-52.1.6 get ................................................................................................................. 2-6
2.1.7 write............................................................................................................... 2-82.1.8 show configfile................................................................................................ 2-82.1.9 show running-config ........................................................................................ 2-9
2.1.10 show startup-config ..................................................................................... 2-102.2 FTP Server Configuration Commands ......... ........ ......... ........ ......... ........ ......... ........ .. 2-10
2.2.1 ftp-server config-name......... ........ ......... ........ ......... ......... ........ ......... ........ ...... 2-10
2.2.2 ftp-server enable........................................................................................... 2-112.2.3 ftp-server system-name................................................................................. 2-112.2.4 ftp-server timeout .......................................................................................... 2-12
2.2.5 show ftp-server ............................................................................................ 2-132.3 Basic System Management Commands ................................................................... 2-13
2.3.1 clock set....................................................................................................... 2-13
2.3.2 hostname..................................................................................................... 2-14
2.3.3 reboot........................................................................................................... 2-152.3.4 setup............................................................................................................ 2-15
2.3.5 show clock.................................................................................................... 2-172.3.6 show hostname............................................................................................. 2-172.3.7 show queueing.............................................................................................. 2-17
2.3.8 show version................................................................................................. 2-19
Chapter 3 Terminal Service Configuration Commands........ ......... ........ ......... ........ ......... ..... 3-13.1 Terminal Service Attribute Configuration Commands.. ........ ......... ......... ........ ......... ...... 3-1
3.1.1 exec-timeout ...................................................................................................3-1
3.2 Telnet Service Configuration Commands ......... ........ ......... ......... ........ ......... ........ ........ 3-13.2.1 terminal telnet refuse-negotiation......... ......... ......... ........ ......... ........ ......... ........ . 3-13.2.2 telnet .............................................................................................................. 3-2
3.2.3 show client...................................................................................................... 3-3
3.3 Terminal Server Configuration Commands ......... ........ ......... ........ ......... ........ ......... ..... 3-3
-
7/27/2019 01FC(Fundamental Configuration Command)
2/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform Table of Contents
ii
3.3.1 async mode tty ............................................................................................... 3-43.3.2 autocommand................................................................................................. 3-43.3.3 tty logo-print.................................................................................................... 3-5
3.3.4 tty menu-key ...................................................................................................3-63.3.5 tty-server app..................................................................................................3-6
3.3.6 tty-server enable ............................................................................................. 3-73.3.7 tty-server source-ip........... ........ ......... ......... ........ ......... ........ ......... ........ ......... .. 3-83.3.8 tty test-key...................................................................................................... 3-93.3.9 show tty.......................................................................................................... 3-9
3.3.10 show tty-server........ ........ ......... ........ ......... ......... ........ ......... ........ ......... ....... 3-103.4 PRI Terminal Configuration Commands.. ......... ........ ......... ......... ........ ......... ........ ...... 3-10
3.4.1 pri-interactive ................................................................................................3-11
3.4.2 pri-autocommand..........................................................................................3-113.5 X.25 PAD configuration commands ........ ......... ........ ......... ......... ........ ......... ........ ...... 3-12
3.5.1 login pad....................................................................................................... 3-12
3.5.2 pad............................................................................................................... 3-133.5.3 x29 inviteclear-time ....................................................................................... 3-143.5.4 show x25 pad............... ........ ......... ........ ......... ........ ......... ......... ........ ......... .... 3-14
3.5.5 debug pad .................................................................................................... 3-153.6 Rlogin configuration command....... ........ ......... ........ ......... ......... ........ ......... ........ ...... 3-16
3.6.1 rlogin............................................................................................................3-16
Chapter 4 SNMP Configuration Commands........ ......... ........ ......... ........ ......... ........ ......... ..... 4-1
4.1 SNMP Configuration Commands ...............................................................................4-14.1.1 snmp-server community .................................................................................. 4-14.1.2 snmp-server contact........................................................................................ 4-2
4.1.3 snmp-server enable traps ................................................................................4-24.1.4 snmp-server host ............................................................................................ 4-34.1.5 snmp-server location....................................................................................... 4-3
4.1.6 snmp-server trap-authentication snmpv1 ......... ........ ......... ......... ........ ......... ...... 4-44.1.7 show snmp..................................................................................................... 4-5
4.2 RMON configuration command......... ........ ......... ........ ......... ........ ......... ........ ......... ..... 4-64.2.1 rmon promiscuous....... ........ ......... ........ ......... ........ ......... ......... ........ ......... ...... 4-64.2.2 clear rmon statistics........................................................................................ 4-64.2.3 show rmon statistics........................................................................................ 4-7
Chapter 5 Maintenance and Debugging Tool Commands......... ........ ......... ........ ......... ........ . 5-1
5.1 System Debugging Commands......... ........ ......... ........ ......... ........ ......... ........ ......... ..... 5-15.1.1 debug............................................................................................................. 5-15.1.2 show debugging.............................................................................................. 5-2
5.2 Network Test Tool Commands........ ......... ........ ......... ........ ......... ......... ........ ......... ...... 5-35.2.1 ping................................................................................................................5-35.2.2 ping ipx........................................................................................................... 5-4
5.2.3 tracert............................................................................................................. 5-55.3 Log Commands ........................................................................................................ 5-7
5.3.1 logging on....................................................................................................... 5-7
5.3.2 logging console............................................................................................... 5-85.3.3 logging buffered.............................................................................................. 5-95.3.4 logging monitor ............................................................................................... 5-9
5.3.5 logging host.................................................................................................. 5-105.3.6 show logging.................................................................................................5-11
-
7/27/2019 01FC(Fundamental Configuration Command)
3/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-1
Chapter 1 EXEC Interface Commands
EXEC interface commands include:
l configure
l controller e1l cryptol disable
l enablel exitl help
l interfacel languagel logic-channel
l route-mapl routerl show history
l vpdn-group
1.1 configure
Use the configure command to enter the global configuration mode from the privileged
user mode.
configure
Command Mode
Privileged user mode
Example
! Enter the global configuration mode.
Quidway#configure
! Enter configuration commands, one per line. End with command exit.
Quidway(config)#
Related Command
exit
1.2 controller e1
Use the controller e1 command to enter the cE1/PRI interface configuration mode
from the global configuration mode.
controller e1 number
-
7/27/2019 01FC(Fundamental Configuration Command)
4/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-2
Syntax Description
number Interface number of cE1/PRI, increasing from 0 in order.
Command Mode
Global configuration mode
Example
! Enter the cE1/PRI interface configuration mode.
Quidway(config)# controller e1 0
Quidway(config-if-E0)#
Related Command
exit
1.3 crypto
Use the crypto command to create and enter the corresponding security configuration.
Use the no form of this command to delete the corresponding security configuration.
crypto { ike policypolicy-number | ipsec transform transform-name | map map-name }
no crypto { ikepolicypolicy-number | ipsectransform transform-name | map map-
name }
Syntax Description
ike policypolicy-number Enter IKE policy configuration mode.
ipsec transformtransform-name Enter IPSec transform configuration mode.
map map-name Enter crypto map configuration mode.
Command Mode
Global configuration mode
Usage Guideline
The crypto configuration command is used to create and enter the corresponding
encryption configuration. For its specific use and parameters, consult the reference forthe IKE and IPSec configuration commands.
Example
Example 1:
! Enter the IKE policy configuration mode whose IKE policy number is 10.
Quidway(config)# crypto ike policy 10
Quidway(config-crypto-ike-policy-10)#
-
7/27/2019 01FC(Fundamental Configuration Command)
5/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-3
Example 2:
! Enter the crypto map configuration mode whose name is map1 and sequence number
is 100, and that negotiates via isakmp.
Quidway(config)# crypto map map1 100 isakmp
Quidway(config-crypto-map-map1-100)#
Example 3:
! Enter the IPSec transform-set configuration whose name is trans1.
Quidway(config)# crypto ipsec transform trans1
Quidway(config-crypto-transform-trans1)#
Related Command
exit
1.4 disable
Use the disable command to return from the privileged user mode to user mode.
disable
Command Mode
Privileged user mode
Usage Guideline
When a privileged user is to be away from the terminal for a long time, he should
execute the disable command to restore user mode, or execute the exit command toexit so as to prevent unauthorized access. For the same reason, if you have not madeany input from the keyboard in 10 minutes, the system will automatically disconnectwith you.
Example
! Return from the privileged user mode to user mode.
Quidway#disable
Quidway>
Related Command
enable , exit
1.5 enable
Use the enable command to enter the privileged user mode from the user mode.
enable
-
7/27/2019 01FC(Fundamental Configuration Command)
6/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-4
Command Mode
User mode
Usage Guideline
To prevent unauthorized access, it is necessary to authenticate the user before he
enters the privileged user mode from the user mode, that is, he needs to enter theprivileged user password. In order to prevent the password input by you from beingdisplayed on the screen for sake of security, if you input the correct password in three
attempts, you will enter the privileged user mode; otherwise the original commandmode will remain unchanged.
Example
! Enter the privileged user mode from the user mode.
Quidway>enablePassword:
Quidway#
Related Command
disable, exit
1.6 end
To return from the current mode (excluding user mode and privileged user mode) to
privileged user mode, use the end command.
end
Command Mode
Any command mode except user mode and privileged user mode
Usage Guideline
The end command is used to return from the current mode (excluding user mode and
privileged user mode) to privileged user mode. It has the same function as thecombination key .
Example
! Return from Ethernet interface configuration mode to the privileged user mode.
Quidway(config-if-Ethernet0)# end
Quidway#
1.7 exit
Use the exit command to return to a lower-level mode from the current mode. If you are
in user mode and privileged user mode, then you would exit the configuration.
-
7/27/2019 01FC(Fundamental Configuration Command)
7/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-5
exit
Command Mode
User mode, privileged user mode, global configuration mode, routing protocolconfiguration mode, interface configuration mode, logic channel configuration mode,virtual interface configuration mode, VPDN group configuration mode, etc.
Usage Guideline
There are four levels of command mode, which respectively are, from low to high:
User mode, Privileged user mode, global configuration mode, routing protocol
configuration mode, interface configuration mode, logic channel configuration mode,virtual interface configuration mode, and VPDN configuration mode.
By executing the exit command, you can return to a lower-level user mode from a
higher-level command mode. Switching is allowed between configuration modes of thesame level. In addition, you can directly return to the privileged user mode from twohigher-level command modes.
Example
! Return from the Ethernet Interface configuration mode to the global configurationmode.
Quidway(config-if-ethernet0)# exit
Quidway(config)#
Related Command
configure , router, interface , controller, logical-channel , vpdn-group, router-map
1.8 help
Use the help command to show the help information.
help
Command Mode
User mode, privileged user mode, global configuration mode, routing protocol
configuration mode, interface configuration mode, logic channel configuration mode,virtual interface configuration mode, VPDN group configuration mode, etc.
Usage Guideline
VRP1.4 provides online help at any point. And the help command shows the
information about the whole help system, including full help and partial help. You canenter a question mark ? to obtain online help.
Example
Quidway(config)# help
Help may be requested at any point in a command by entering
-
7/27/2019 01FC(Fundamental Configuration Command)
8/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-6
a question mark '?'. If nothing matches, the help list willbe empty.Two styles of help are provided:1. Full help is available when you are ready to enter a
command argument ( e.g. 'show ?' ) and describes each
possible argument.2. Partial help is provided when an abbreviated argument
is entered and you want to know what arguments matchthe input ( e.g. 'show sn?' ).
1.9 interface
Use the interface command to enter the interface configuration mode or create the
sub-interfaceof the real physical interface. Use the no form of this command to deletesome customized logic interfaces or sub-interfaces of the real physical interface.
interface { interface-type interface-number | interface-name }
no interface { interface-type interface-number | interface-name }
Syntax Description
1) Interface type
VRP1.4 now supports the following types:
l Asyncl Ethernet
l Seriall Bril Dialer
l Tunnell Vpntunnell Virtual-template
Async, Ethernet, Serial and Bri are all physical interfaces, and Dialer, Tunnel,
Virtual-template, and Vpntunnel are logic interfaces. Serial interfaces include async
serial interfaces, sync serial interfaces, and cE1/PRI channel interfaces (channel-groupand pri-group). Some of the physical interfaces support sub-interfaces.
2) Interface-number
The above five types are numbered respectively, each beginning from 0:
l On different models of routers, physical routers have their own numbers. As for thechannel-group cE1/PRI interface, its number is e1-interface-number : channel-
group-number;l As for the pri-group cE1/PRI interface, its number is e1-interface-number : 15;
l As for other logic interfaces like Dialer or Virtual-template, they are numberedbased on the order where they have been created;
l As for a sub-interface, its number is physical-interface-number. Sub-interface-number.
3) Interface-name
After learning the interface numbering rules, you can know interface naming. The
format for an interface name: interface type plus interface number. For example,Ethernet0 stands for the Ethernet interface numbered as 0; Serial0.1 stands for sub-interface number 1 of Serial0; Serial3: 2 stands for channel-group 2 in cE1/PRIinterface 3.
To make input easy for you, interface types can be abbreviated (only a few beginning
letters are used abbreviations as long as they do not conflict with other interface types),
-
7/27/2019 01FC(Fundamental Configuration Command)
9/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-7
for example, Ethernet0 can be abbreviated as e0, and Serial0.1 can be abbreviated ass0.1.
Command Mode
Global configuration mode, routing protocol configuration mode, interface configuration
mode, logic channel configuration mode, virtual interface configuration mode andVPDN group configuration mode etc.
Usage Guideline
The interface command can be executed to enter the real physical interface
configuration mode, or create logic interfaces according to user requirements. In all theconfigurations at the same level as the interface configuration mode, the interfacecommand can be used to switch to the corresponding interface configuration mode.
Notice that no interface { interface-type interface-number | interface-name } is used to
delete some customized logic interfaces (like Dialer, Tunnel, Vpntunnel and Virtual-template) and the sub-interfaces of the physical interface.
Example
Example 1:
! Enter the Ethernet interface configuration mode from the global configuration mode.
Quidway(config)# interface ethernet 0
Quidway(config-if-Ethernet0)#
Example 2:
! Enter the Serial0.1 configuration from the Ethernet0 configuration.
Quidway(config-if-Ethernet0)# interface serial0.1
Quidway(config-if-Serial0.1)#
Related Command
exit
1.10 language
Switch the language mode of command line interface
language
Default
English
Command Mode
Privileged user mode
-
7/27/2019 01FC(Fundamental Configuration Command)
10/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-8
Usage Guideline
For the convenience of demestic users, VRP EXEC mode interface supports not only
English mode but also Chinese mode.
Exmaple
! Switch English mode to Chinese mode.
Quidway(config)# language
Current Language : EnglishWill You switch language mode ?(Y/N)yYou have changed the language mode .
1.11 logic-channel
Use the logic-channel command to enter the related logic channel configurationmode.
logic-channellogic-channel-number
Syntax Description
logic-channel-numberLogic channel number, ranging 1 to 255.
Command Mode
Global configuration mode, routing protocol configuration mode, interface configuration
mode, logic channel configuration mode, virtual interface configuration mode, VPDN
group configuration mode, etc.
Usage Guideline
Logic channels are mainly used in the backup center. The logic channels in the VRP1.4
backup center include X.25 and frame relay virtual circuits, or even a Dialer Map at thedialup interface. Logic channels can serve as main interfaces or backup interfaces forthe backup center.
Example
! Enter the configuration on logic channel 0.
Quidway(config)# logic-channel 0
Quidway(config-logic-channel0)#
Related Command
exit, dialer map, x25 map, frame-relay map
1.12 route-map
To create a route-map or enter the router-map configuration, use the route-map
command. Use the no form of this command to delete corresponding route-map.
route-maproute-map-name { permit | deny } seq-number
-
7/27/2019 01FC(Fundamental Configuration Command)
11/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-9
noroute-maproute-map-name { permit | deny } seq-number
Syntax Description
route-map-name Route map name.
seq-numberSequence number.
Command Mode
Global configuration mode
Example
Quidway(config)# route-map test permit10
1.13 router
Use the router command to enter the corresponding dynamic routing protocol
configuration mdoe. Use the no form of this command to disable the correspondingdynamic routing protocol and exit the corresponding protocol configuration mode.
router{ rip | igrp | eigrp as-number| ospf[ enable ] | bgpas-number}
no { rip | igrp | eigrp as-number| ospf| bgpas-number}
Syntax Description
rip Enable RIP and enter RIP protocol configuration mode.
igrp Enable IGRP and enter IGRP protocol configuration mode.
eigrp as-number Enable EIGRP and enter EIGRP protocol configuration mode.
ospf[ enable ] Enable OSPF and enter OSPF protocol configuration mode.
bgpas-number Enable BGP and enter BGP protocol configuration mode.
as-number Autonomous system number, ranging from 1 to 65535.
Default
No dynamic routing protocol enabled.
Command Mode
Global configuration mode, routing protocol configuration mode, interface configuration
mode, logic channel configuration mode, virtual interface configuration mode andVPDN group configuration mode etc.
Usage Guideline
Executing the router ospfcommand can only help you enter OSPF configuration
mode. While executing the routerospfenable command can activate OSPF and enterOSPF configuration mode at the same time.
-
7/27/2019 01FC(Fundamental Configuration Command)
12/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-10
Example
! Enter OSPF configuration mode in global configuration mode.
Quidway(config)# router ospf
Quidway(config-router-ospf)#
Related Command
exit
1.14 vpdn-group
To create a VPDN group or enter the VPDN group configuration, use the vpdn-group
command. Use the no form of this command to delete the corresponding VPDN group.
vpdn-groupgroup-number
no vpdn-group [ group-number]
Syntax Description
group-number VPDN group number, ranging 1 to 3000.
Default
No VPDN group created.
Command Mode
Global configuration mode, routing protocol configuration mode, interface configuration
mode, logic channel configuration mode, virtual interface configuration mode, VPDNgroup configuration mode, etc.
Usage Guideline
The VPDN group is used for the VPN and L2TP configurations. In this mode, the
Tunnel working parameter can be configured.
Example
! Create VPDN group 1 and enter its configuration.
Quidway(config)# vpdn-group 1
Quidway(config-vpdn-group1)#
Related Command
exit
-
7/27/2019 01FC(Fundamental Configuration Command)
13/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 1EXEC Interface Commands
1-11
1.15 show history
To show the history command input by the current user, use the show history
command.
showhistory
Command Mode
Privileged user mode
Usage Guideline
VRP1.4 saves 10 history commands at maximum. You can access them through the
Up and Down keys on the keyboard.
Example
! Show the history command input by the current user.
Quidway# show history
enableconfigureinterface serial 0ip address 129.102.0.1 255.255.0.0exitexit
-
7/27/2019 01FC(Fundamental Configuration Command)
14/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-1
Chapter 2 System Management Commands
2.1 File Management Commands
File management commands include:
l configfilel copy
l download configl erasel first-config
l getl
writel show configfile
l show running-configl show startup-config
2.1.1 configfile
To select the storage media for the current configuration file, use the configfile
command.
configfile { flash | nvram }
Syntax Description
flash Storage media for the current configuration file is Flash.
nvram Storage media for the current configuration file is NVRAM.
Default
NVRAM as the default storage media when Flash and NVRAM co-exist.
Command Mode
Global configuration mode
Usage Guideline
The Quidway series of routers has Flash and NVRAM for saving configuration files, so
the configfile command is used to select one of them as the currently valid media. The
Related Command for read/write configuration files are intended for operations on thestorage media currently selected. For example, after the configfile NVRAM commandis executed, the write command is executed; now the configuration file will be saved to
NVRAM instead of Flash. Before saving or erasing the configuration file, you can usethe show configfile command to show the storage media for the current configurationfile.
-
7/27/2019 01FC(Fundamental Configuration Command)
15/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-2
Example
! Select NVRAM as the storage media for configuration file.
Quidway(config)# configfile NVRAM
Related Command
erase, download config, show running-config, show startup-config, showconfigfile.
2.1.2 copy
To download the configuration file from the local router to the TFTP server, use thecopy command.
copytftp_server_ip_address file_name
Syntax Description
tftp_server_ip_address The IP address of the TFTP server, in the format of A.B.C.D.
file_name Filename, in the format of 8.3.
Command Mode
Privileged user mode
Usage Guideline
This command is used to download the configuration file by the filename offile_name in
the local router s Flash or NVRAM to the TFTP server whose address istftp_server_ip_address.
Error numbers returned by this command indicate the results of the command
execution, which are explained as follows:
0x00: successful.
0x01: memory insufficient.
0x02: setup request packet failed.
0x03: setup socket failed.
0x04: bundle socket failed.
0x05: transmission invalid.
0x06: partial file transferred.
0x10: error packet received.
0x07: the operation of sending file to the server failed
0x0b: socket setup failed
0x0c: the operation of reading file failed
0x0d: host name resolution failed
-
7/27/2019 01FC(Fundamental Configuration Command)
16/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-3
0x0e: the operation of opening local file failed
0x0f: parameter invalid
0x10: error packet received
0x11: synchronization failed.
0x12: the operation of writing configuration file failed.
0x13: the operation of reading configuration file failed.
0x14: config file written by two or more users simultaneously
0x15: memory allocation failed.
0x16: file oversize
0x18: the operation of writing file failed
Example
! Download the configuration file from the local router to the TFTP server.
Quidway# copy 10.110.1.1 sys.cfg
start uploading config file...Errno=0x0end uploading.
In the above information, Errno stands for the result of command execution. For
example, 0x0 means success, otherwise, failure.
Related Command
get
2.1.3 download config
To download configuration file via the Console of the router, use the download config
command.
downloadconfig
Command Mode
Privileged user mode
Usage Guideline
This command should be used under the guidance of a technical support engineer, and
the configuration file of the router should be edited off-line by technical people or seniormaintenance personnel.
While editing the configuration file, please note:
The configuration file for the router is composed of commands.
Pressing the Enter key or adding a new line sign indicates the end of a command. Do
not press the Enter key or add a new line sign in the middle of a command line.
-
7/27/2019 01FC(Fundamental Configuration Command)
17/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-4
l An explanatory line can be inserted between two command lines and begins with
!.l A whole configuration file uses End as its terminator.
You load the configuration file via the Send Binary File function of the terminal simulator.
Before sending a configuration file to the router, please make sure:
Execute the download config command, and the router is waiting for loading. Now in
the terminal simulator s window, you can see that the router regularly sends the Ccharacter to the terminal simulator.
l Xmodem/CRC is set as the binary transmission protocol for the terminal simulator.
l The correct configuration file transfer has been selected.
After loaded successfully, the configuration file can not take effect immediately; it takes
effect only after the router is rebooted. If you have downloaded the wrong configurationfile, the system will initialize via the default parameters after the rebooting. You canerase the wrong configuration file with the erase command or just reload the file.
In the Quidway series of routers, the configuration file loaded will be stored in the media
specified by the configfile command, NVRAM by default.
Example
!Download configuration file via the Console of the router.
Quidway# download config
Do you want really download the config.ini?(Y/N)yChange protocol to Xmodem then send the selected file.Downloading...
Download completed.Writing to flash memory...Write completed, please reboot the router.
Related Command
write, erase, show running-config, show startup-config
2.1.4 erase
Use the erase command to erase the routers configuration file in Flash or NVRAM.
erase
Command Mode
Privileged user mode
Usage Guideline
Be careful when executing this command. You d better execute it under the guidance ofa technical support engineer.
This command is normally used in the following situations:
When the router software has been upgraded, the configuration file in Flash may not
match the new-version software. Now you can erase the old configuration file with theerase command.
-
7/27/2019 01FC(Fundamental Configuration Command)
18/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-5
A used router is applied in a new environment, and the existing configuration file does
not meet the new environment requirement. Now it is necessary to re-configure therouter. You can make the reconfiguration after erasing the original configuration file.
In the Quidway series of routers, the configuration file stored in the media specified bythe configfile command will be erased.
When the router is powered on and initializing, if the system detects no configuration
file in Flash, then it will initialize the router via the default parameters.
Example
! Erase the routers configuration file in Flash or NVRAM.
Quidway# erase
This will erase the configuration in the flash memory.The router configurations will be erased to reconfigure!Are you sure?[Y/N]y
Related Command
first-config, write, download config, show running-config, show startup-config
2.1.5 first-config
Set the flag bit to enter the initial setup.
first-config { set | clear}
Syntax Description
set: set the flag bit.
clear: delete the flag bit.
Command Mode
Privileged user mode
Usage Guideline
first-config set is used to set the flag bit of the initial setup. After the flag bit is set, the
router will delete the config files in Flash or NVRAM before the system enters setup
mode in case of power off and reset. The operation is similar to erase command.
first-config clearis used to cancel the setting of the flag bit.
Do not use this command before write command, which also cancels the setting of the
flag bit.
Use this command cautiously, preferably under the guidance of technical supportpersonnel.
Example
! set the flag bit to enter setup.
Quidway# first-config set
-
7/27/2019 01FC(Fundamental Configuration Command)
19/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-6
! Reset the router to enter setup mode.
Quidway# reboot
WARNING: System will REBOOT! Continue ?[Y/N]y
System is now rebooting, please wait
******************************************* ** Quidway Series Router Bootrom, V4.25 ** *******************************************
Copyright(C) 1999-2001 by HUAWEI TECH CO., LTD.Compiled at 09:06:32 , Jun 13 2001.
Now testing memory...OK!32M bytes DRAM8192k bytes flash memory
Press ENTER key to get start when you see ATS0=1.
System now is starting... ATS0=1Quidway>setup
--- System Configuration Dialog ---
Default settings are in square brackets '[]', if you donot change the default settings, you may input enter.And Ctrl-C can cancel at any time without saving.
Continue with configuration dialog? [yes]:
Related Command
erasewriteshow running-configshow startup-config
2.1.6 get
Use the get command to download the configuration file in the TFTP server to Flash or
NVRAM in the local router.
gettftp_server_ip_address file_name
Syntax Description
tftp_server_ip_address The IP address of the TFTP server, in the format of A.B.C.D.
file_name Filename, in the format of 8.3.
Command Mode
Privileged user mode
Usage Guideline
This command is used to download the configuration by the name of file_name in the
TFTP whose address is tftp_server_ip_address to the local router s Flash or NVRAM.
-
7/27/2019 01FC(Fundamental Configuration Command)
20/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-7
Error numbers returned by this command indicate the results of the command
execution, which are explained as follows:
0x00: successful.
0x01: memory insufficient.
0x02: setup request packet failed.
0x03: setup socket failed.
0x04: bundle socket failed.
0x05: transmission invalid.
0x06: partial file transferred.
0x10: error packet received.
0x07: the operation of sending file to the server failed
0x0b: socket setup failed
0x0c: the operation of reading file failed
0x0d: host name resolution failed
0x0e: the operation of opening local file failed
0x0f: parameter invalid
0x10: error packet received
0x11: synchronization failed.
0x12: the operation of writing configuration file failed.
0x13: the operation of reading configuration file failed.
0x14: config file written by two or more users simultaneously
0x15: memory allocation failed.
0x16: file oversize
0x18: the operation of writing file failed
Example
! Download the configuration file in the TFTP server to the local router.Quidway# get 10.110.1.1 sys.cfg
start downloading config file...errno=0x0end downloading.
In the above information, Errno stands for the result of command execution. For
example, 0x0 stands for success, otherwise, failure.
Related Command
copy
-
7/27/2019 01FC(Fundamental Configuration Command)
21/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-8
2.1.7 write
Use the write command to save (write) the current configuration file to Flash or
NVRAM.
write
Command Mode
Privileged user mode
Usage Guideline
When a set of configurations have been completed and have implemented the
intended functions, the current configuration files should be saved to Flash or NVRAM(in he Quidway series of routers, they will be saved to the storage media specified by
the configfile command).
Example
! Write the current configuration file to Flash or NVRAM.
Quidway# write
Related Command
erase, download config, show running-config, show startup-config
2.1.8 show configfile
Use the show configfile command to show the storage media type for the current
configuration file.
show configfile
Command Mode
Privileged user mode
Usage Guideline
This command is used to show the storage media type for the current configuration fileoperation.
Example
! Show the storage media type for the current configuration file.
Quidway(config)# show configfile
flash
Related Command
erase, download config, show running-config, show startup-config, configfile.
-
7/27/2019 01FC(Fundamental Configuration Command)
22/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-9
2.1.9 show running-config
To show the currently valid configuration parameters of the router, use the show
running-config command.
showrunning-config
Command Mode
Privileged user mode
Usage Guideline
When you have completed a set of configurations, it is necessary to check if they are
correct. You can execute the showrunning-config command to check the currentlyvalid parameter. If some parameters you already configured are not yet valid, they will
not be shown. For example, if X.25 is encapsulated at a certain interface link layer, thenyou can now configure the PPP parameter at this interface. But when executing theshowrunning-config command, you will not see any PPP configuration information atthis interface.
Some currently valid configuration parameters that are the same as the default running
parameters will not be shown.
Example
! Show the currently valid configuration parameters of the router.
Quidway# show running-config
!
loghost 129.9.191.240firewall enablesnmp-server contact Mr.Wang-Tel:3306snmp-server traps enablesnmp-server host 129.102.149.23snmp-server location telephone-closet,3rd-floodhost liuzhenhua 129.102.157.55
host server 129.102.157.55
!interface Ethernet0
ip address 129.102.100.141 255.255.0.0!interface Serial0
baudrate 9600encapsulation pppppp chap host quidwayppp pap sent-username quidway password 0 quidway
!interface Serial1
encapsulation pppppp chap host quidwayppp pap sent-username quidway password 0 quidway
!interface Serial2
flowcontrol normalencapsulation pppppp chap host quidwayppp pap sent-username quidway password 0 quidway
!end
-
7/27/2019 01FC(Fundamental Configuration Command)
23/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-10
Related Command
write, erase, download config, show startup-config
2.1.10 show startup-config
Use the show startup-config command to show the router s startup configuration file
in Flash, that is, the configuration file used when the router is powered on and rebootednext time.
showstartup-config
Command Mode
Privileged user mode
Usage Guideline
If the router fails to work normally after powered on, you can execute the show
startup-config command to check the router s startup configuration file (in theQuidway series of routers, the startup configuration file is stored in the media specifiedby the configfile command).
Example
! Show the router s startup configuration file in Flash.
Quidway# show startup-config
Related Command
write, erase, download config, show running-config
2.2 FTP Server Configuration Commands
FTP server configuration commands include:
l ftp-server config-namel ftp-server enable
l ftp-server system-namel ftp-server timeout
l show ftp
2.2.1 ftp-server config-name
To set the configuration filename, use the ftp-server config-name command.
ftp-server config-nameconfig-name
Syntax Description
config-name Configuration filename.
-
7/27/2019 01FC(Fundamental Configuration Command)
24/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-11
Default
config
Command Mode
Global configuration mode
Usage Guideline
The configuration filename is set for uploading the configuration file. Only when the
name of the configuration file to be uploaded is the same as that set in the router can itbe correctly uploaded.
Example
! Specify the name of the configuration file as quidway.Quidway(config)# ftp-server config-name quidway
2.2.2 ftp-server enable
To enable the FTP server, use the ftp-server enable command. Use the no form ofthis command to disable the FTP server.
ftp-server enable
no ftp-server enable
Default
Ftp server disabled.
Command Mode
Global configuration mode
Usage Guideline
This command can be used to enable or disable the FTP server easily so as to
safeguard the router against attack by any unknown user.
Example
! Disable the FTP server.
Quidway(config)# no ftp-server enable
2.2.3 ftp-server system-name
To set the name of the system program file, use the ftp-server system-namecommand.
ftp-server system-namesystem-name
-
7/27/2019 01FC(Fundamental Configuration Command)
25/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-12
Syntax Description
system-name System program filename.
Default
system
Command Mode
Global configuration mode
Usage Guideline
The system program filename is set to upload the system program file. Only when the
name of the system program file to be uploaded is the same as that set in the router,can it be uploaded correctly.
Example
! Set the system program filename to program .
Quidway(config)# ftp-server config-name program
2.2.4 ftp-server timeout
To set the connection timeout, use the ftp-server timeout command.
ftp-server timeout second
Syntax Description
second Timeout value, in seconds.
Default
600 seconds.
Command Mode
Global configuration mode
Usage Guideline
When you logs into the FTP server, you set up a connection with it. If the connection is
disconnected abnormally or you disconnect abnormally, the FTP will not be able to
know this, so it still maintains the connection. Therefore the connection timeout is usedto avoid such a situation. When the connection has not carried out any commandexchange in a certain period of time, the FTP server will deem the connection as failed,and then disconnect the connection.
Example
! Set the connection timeout to 500 seconds.
Quidway(config)# ftp-server timeout 500
-
7/27/2019 01FC(Fundamental Configuration Command)
26/68
-
7/27/2019 01FC(Fundamental Configuration Command)
27/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-14
Command Mode
Privileged user mode
Usage Guideline
When powered off, the Quidway series of routers can not continue to keep clock, so it is
necessary to set the current date and clock for the router in a rigorous applicationenvironment requiring the absolute clock and date.
Example
! Set the current date and clock of the router to 0:0:0 Jan. 1st, 2000.
Quidway# clock set 0:0:0 1 1 2000
Related Command
show clock
2.3.2 hostname
Use the hostname command to set the hostname of the router.
hostnamehostname
Syntax Description
hostname Hostname of the router, represented in a character string.
Default
Quidway
Command Mode
Global configuration mode
Usage Guideline
Modifying the hostname of the router will affect the prompts at the command line
interface. If the router s hostname is Quidway, then its prompt in privileged user modeis Quidway#.
Example
! Set the hostname of the router to QuidwayR2501 .
Quidway# hostname QuidwayR2501
QuidwayR2501#
Related Command
show hostname
-
7/27/2019 01FC(Fundamental Configuration Command)
28/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-15
2.3.3 reboot
Use the reboot command to reboot the router.
reboot
Command Mode
Privileged user mode
Usage Guideline
The function of this command is similar to first powering off the router and then
restarting it. But when the router is maintained remotely, it is not necessary to rebootthe router where the router is located; instead, you can directly reboot it remotely.
Generally, do not use this command, for it will lead to network failure in a short time. In
addition, it is necessary to ensure if the router s configuration file needs to be saved.
Example
! Reboot the router.
Quidway# reboot
warnings: System will REBOOT! Continue?[Y/N]ySystem is now rebooting, please wait.
2.3.4 setup
Use the setup command to guide you interactively to configure the basic parametersnecessary for the running of the router.
setup
Default
When a certain parameter is to be configured, if this parameter is found already
configured, then its current value is shown as a default value. And you can directlypress Enter without modifying it.
Command Mode
Privileged user mode
Usage Guideline
When you power on and boots the router for the first time, the system will automatically
execute the setup command to guide you in configuring the parameters necessary forthe running of the router. These parameters include:
l Router s hostnamel Privileged user password
l SNMP parameterl Selecting such network protocols as IP and IPXl IP addresses and IPX network numbers at the interfaces
In addition, the privileged user can execute the setup command at any point.
-
7/27/2019 01FC(Fundamental Configuration Command)
29/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-16
Example
Quidway# setup
--- System Configuration Dialog ---
Default settings are in square brackets '[]', if you donot change the default settings, you may input enter.And Ctrl-C can cancel at any time without saving.
Continue with configuration dialog? [yes]:y Firstly, would you like to see the current interface summary? [yes]:y
Interface IP-Address OK? Status ProtocolEthernet0 129.102.100.141 yes down upSerial0 yes up downSerial1 yes up downSerial2 yes up downConfiguring global parameters: Enter host name [Quidway]:
Enter enable password []:Configure SNMP Network Management? [YES]:Community string []:publicConfigure IP? [yes]:Configure IPX? [NO]:y
Configuring interface Ethernet0:Is this interface in use? [YES]:Configure IP on this interface? [YES]:IP address for this interface [129.102.100.141]:Netmask [255.255.0.0]:Class B network is 129.102.0.0.IP address is 129.102.100.141, netmask is 255.255.0.0.Configure IPX on this interface? [NO]:yIPX network number for this interface [1]:
Configuring interface Serial0: Is this interface in use? [YES]:Configure IP on this interface? [NO]:Configure IPX on this interface? [NO]:
Configuring interface Serial1:Is this interface in use? [YES]:Configure IP on this interface? [NO]:Configure IPX on this interface? [NO]:
Configuring interface Serial2:Is this interface in use? [YES]:Configure IP on this interface? [NO]:Configure IPX on this interface? [NO]:
The following configuration was created:hostname Quidwayenable passwordsnmp-server community roipx routinginterface Ethernet0no shutdownip address 129.102.100.141 255.255.0.0ipx network 1interface Serial0no shutdownno ip addressno ipx networkinterface Serial1no shutdownno ip addressno ipx network
-
7/27/2019 01FC(Fundamental Configuration Command)
30/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-17
interface Serial2no shutdownno ip addressno ipx networkend
Use this configuration? [yes/no]:Now writing the configuration to flash memory.Write the running config to flash memory successfully.Please reboot the router.
2.3.5 show clock
To show the current date and clock of the system, use the show clock command.
show clock
Command Mode
Privileged user mode
Usage Guideline
You can execute this command to find out if the system time is correct. If the system
time is incorrect, you can adjust it.
Example
Quidway# show clock
8:18:28 Jan 6 1999
Related Command
clock set
2.3.6 show hostname
To show the router s hostname, use the show hostname command.
showhostname
Command Mode
User mode and Privileged user mode
Example
Quidway# show hostname
Quidway
Related Command
hostname
2.3.7 show queueing
To show the queue in the system, use the show queue command.
-
7/27/2019 01FC(Fundamental Configuration Command)
31/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-18
showqueueing
Command Mode
Privileged user mode
Usage Guideline
This command shows the current length, limit length, dropped packets, queue head
and tail, etc. of receive and send queues, IP receive queue, ARP receive queue, and
IPX receive queue, at the interfaces. This command can be generally used by thetechnical support engineer in fault diagnosis.
Example
Quidway# show queueing
Interface Dialer1:Send queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Interface Ethernet0:Send queue:
Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Receive queue:Current length : 2, Queue limit length 75 , Drops : 0Queue head --> 0x7de480, Queue tail --> 0x7de400
Interface LoopBack0:Send queue:
Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Interface Serial0:Send queue:
Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Interface Serial1:Send queue:
Current length : 0, Queue limit length 75 , Drops : 0
Queue head --> 0x0, Queue tail --> 0x0Receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Interface Serial2:Send queue:
Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
ip receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
arp receive queue:Current length : 0, Queue limit length 50 , Drops : 0
Queue head --> 0x0, Queue tail --> 0x0
-
7/27/2019 01FC(Fundamental Configuration Command)
32/68
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2System Management Commands
2-19
ipx receive queue:Current length : 0, Queue limit length 75 , Drops : 0Queue head --> 0x0, Queue tail --> 0x0
Related Command
ifquelen ip, ifquelen arp
2.3.8 show version
To show the system version information, use the show version command.
showversion
Command Mode
Privileged user mode and User mode
Usage Guideline
Different versions have different functions. By querying the version information, you willknow the features supported by the software.
Example
Quidway# show version
Quidway Router Software Version 3.0-Mar 17 1999-03:31:59Copyright (c) 1997-2000 SHENZHEN HUAWEI TECH CO.,LTD.hardware version is 1.0
-
7/27/2019 01FC(Fundamental Configuration Command)
33/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-1
Chapter 3 Terminal Service Configuration
Commands
3.1 Terminal Service Attribute Configuration Commands
Terminal service attribute configuration commands include:
l exec-timeout
3.1.1 exec-timeout
To start the function of the timed disconnection with the terminal client, use the exec-timeout command. Use the no form of this command to shut down the function.
exec-timeout
no EXEC-timeout
Default
Timed disconnection enabled.
Command Mode
Privileged user mode
Usage Guideline
For a Console client, the disconnection timeout is 3 minutes. For a dummy client, the
disconnection timeout is 10 minutes. You can shut down this function via the noexec-timeout command so the terminal client will never be disconnected.
Example
! Shut down the function of timed disconnection with the terminal user.
Quidway# no exec-timeout
3.2 Telnet Service Configuration Commands
Telnet service configuration commands include:
l terminal telnet refuse-negotiationl telnetl show client
3.2.1 terminal telnet refuse-negotiation
To disable the telnet client negotiation function, use the terminal telnet refuse-
negotiation command. Use the no form of this command to enable this function.
-
7/27/2019 01FC(Fundamental Configuration Command)
34/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-2
terminaltelnet refuse-negotiation
no terminaltelnet refuse-negotiation
Default
Telnet client negotiation disabled.
Command Mode
Global configuration mode
Usage Guideline
For the router s Reverse Telnet terminal service, it is sometimes necessary to set up a
connection via the TCP client. And the client data are directly transparently transferredto the router via the transmission layer interface to communicate directly with the
asynchronous port corresponding to the port specified by the TCP connection. You candisable the telnet negotiation function for Reverse Telnet terminal service via theterminal telnet refuse-negotiation command.
This command is only effective for QuidwayR1600/2500/2500E/4000/4000E series of
routers.
Example
! Disable the telnet negotiation function for the Reverse Telnet terminal.
Quidway(config)# terminal telnet refuse-negotiation
3.2.2 telnet
To log onto other routers from the current router via the Telnet tool, use the telnet
command.
telnethost-ip-address [ service-port]
Syntax Description
host-ip-address IP address of the remote router, in the dotted decimal format.
service-port TCP port number via which the router provides the Telnet service.Ranging 0 to 65535.
Default
Default Telnet port number is 23.
Command Mode
User mode and Privileged user mode
Usage Guideline
By executing the telnet command, you can easily log from a router onto another for
remote management.
-
7/27/2019 01FC(Fundamental Configuration Command)
35/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-3
If the destination IP address is the IP address of the local router, and the specified port
number is 2000+n (n is the sequence number of the asynchronous interface), then you
can communicate with the external device (like an external Modem) via thecorresponding asynchronous port.
Example
! Log from the current router Quidway1 to another router Quidway2 (IP address:
129.102.0.1)
Quidway# telnet 129.102.0.1
Trying hostaddress...Service port is 23Connected to hostaddressQuidway2>
Related Command
show client, show tcp brief
3.2.3 show client
To show all the clients of the router, use the show client command.
show client
Command Mode
Privileged user mode
Usage Guideline
If the router suddenly starts to work abnormally or its working parameters are modified,
now this command can be used to show if other privileged clients are modifying thesystem configuration.
The information shown via this command includes the user ID allocated by the system
and the IP address for this client.
Example
! Show all the clients of the router.
Quidway# show clientClient ID IP Address2555904 129.102.1.92
Related Command
telnet, show tcp brief
3.3 Terminal Server Configuration Commands
Terminal server configuration commands include:
l async mode ttyl autocommand
-
7/27/2019 01FC(Fundamental Configuration Command)
36/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-4
l tty logo-printl tty menu-key
l tty-server appl tty-server enable
l tty-server source-ipl tty test-keyl show ttyl show tty-server
3.3.1 async mode tty
To configure the physical terminal and virtual terminal of the access server of dumb
terminal, use the async mode tty command. Use the no form of this command tocancel the existing configurations.
async mode tty tty-number vty-number app-number
no async mode tty[ vty-number]
Syntax Description
tty-number Physical terminal number.
vty-number Virtual terminal number on the physical terminal.
app-number Application program number.
Command Mode
Asynchronous serial interface configuration mode
Usage Guideline
The physical terminal number corresponds with the asynchronous serial port on the
router. The access server of dumb terminal numbers all the physical terminalsconnected the computer in unification.
On the access server of dumb terminal, a maximum of 4 virtual terminals can be
configured for each physical terminal. The virtual terminal corresponds with theapplication program of the host computer to be connected.
Example
! Set the physical terminal number of the access server of dumb terminal correspondingwith the asynchronous serial interface Async 1 to 1. Set the virtual terminal number to 0and the application program number of the UNIX program used to 0.
Quidway(config-if-Async1)# async mode tty 1 0 0
3.3.2 autocommand
Use the autocommand command to enable the automatic execution of the command
when the interface operates in the interactive mode. Use the no form of this commandto disable the automatic execution of the command.
autocommand command
-
7/27/2019 01FC(Fundamental Configuration Command)
37/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-5
no autocommand command
Syntax Description
command A valid command string.
Command Mode
Asynchronous serial interface configuration mode
Usage Guideline
After the user logs in to the router through dumb terminal mode, some of the specified
commands will be executed automatically and the user will enter into the givenoperating mode.
Example
! Enable automatic execution of telnet command on the asynchronous serial interface
Async 1.
Quidway(config-if-Async1)# autocommand telnet 10.110.164.44
Related Command
async mode interactive
3.3.3 tty logo-print
To display the logo image of terminal server, use the tty logo-print command. Use theno form of this command to cancel display.
tty logo-print
no tty logo-print
Default
The system will not display the logo image of Huawei terminal server.
Command Mode
Asynchronous serial interface configuration mode
Usage Guideline
You can choose to display or not display the logo image of the Huawei terminal server
by this command. This command can be configured, when and only when theasynchronous serial port configured has started the terminal server function.
Example
! Set up the asynchronous serial interface Async 0 to display the logo image of Huawei
terminal server.
Quidway(config-if-Async0)# tty logo-print
-
7/27/2019 01FC(Fundamental Configuration Command)
38/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-6
3.3.4 tty menu-key
Use the tty menu-key command to set up the hot key to be used to start up the menu
function of the dumb terminal server. Use the no form of this command to cancel thesetup.
tty menu-keyascii-code
no tty menu-key
Syntax Description
ascii-code The ASCII value corresponded with the hot key. The hot key is used toactivate the menu.
Default
No hot key will be set up.
Command Mode
Asynchronous serial interface configuration mode
Usage Guideline
After one asynchronous serial interface has started up the function of the access server
of dumb terminal, you can define the hot key to activate the menu with this command,to start up the function of the menu of the dumb terminal server. Moreover, you can usethe hot key to conduct dynamic switchover between multiple application programs.
After the hot key to activate the function of menu of the dumb terminal is set up, theoperation of the terminal is likely to be abnormal, since the ASCII value of the hot keyset up is probably same as the uplink data of some of the terminals. In this case, youneed to re-specify the ASCII value of the hot key or cancel the setup of the hot key.
Example
! Set up the key to activate the menu to XXX on the asynchronous serial interfaceAsync 0.
Quidway(config-if-async0)# tty menu-key XXX
3.3.5 tty-server app
To specify the application program on the UNIX host computer end, use the tty-serverapp command. Use the no form of this command to cancel the appointment.
tty-server appapp-number ip-address port[ app-name ]
no tty-serverapp app-number
Syntax Description
app-numberNumber of the application program on the UNIX host computer end. One
access server of dumb terminal can be configured with a maximum of 4 application
programs. Moreover any of the number of the application program should duplicate.
-
7/27/2019 01FC(Fundamental Configuration Command)
39/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-7
ip-address The IP address of the UNIX host computer where the application program
is on.
port TCP port number of the application program on the UNIX host computer, ranging
1024 to 65535.
app-name Name of the application program, with no more than 18 English letters.
Command Mode
Global configuration mode
Usage Guideline
The uplink of the access server of dumb terminal corresponds with the application
program of UNIX host computer. Multiple application programs can be one on UNIXhost computer or distribute over multiple UNIX host computers. The access server of
dumb terminal can number all the application programs in unification and multiplex toone TCP link the data flow of all the dumb terminals to one application program.
All the settings of the virtue terminals corresponding with the application program will
be canceled automatically, once the specification of the application program of the hostcomputer is cancelled.
Example
! Specify the application program counter . Its number is 0, so the IP address on the
UNIX host computer is 1.1.1.1 and the TCP port number is 2000.
Quidway(config)# tty-server app 0 1.1.1.1 2000 counter
Related Command
async mode tty, show tty-server
3.3.6 tty-server enable
To enable the access server of dumb terminal, use the tty-server enable command.
Use the no form of this command to shut down the access server of dumb terminal.
tty-server enable
no tty-server enable
Command Mode
Global configuration mode
Usage Guideline
Please enable it before you use and configure the access server of dumb terminal.
When the access server of dumb terminal is enabled, and the application program of
the host computer, physical terminal and the virtual terminal are correctly configured,the corresponding asynchronous port on the router will change to UP state, after thedumb terminal is powered on. And the access server of dumb terminal will establish
TCP connection with the application program of the host computer automatically, and
-
7/27/2019 01FC(Fundamental Configuration Command)
40/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-8
the dumb terminal will enter into the log-on interface of the application program. Afterthe access server of dumb terminal is shut down, the configuration of the application of
the host computer, physical terminal and virtual terminal will be retained, not becanceled automatically.
Example
! Enable the access server of dumb terminal.
Quidway(config)# tty-server enable
Related Command
show tty-server
3.3.7 tty-server source-ip
To bind TCP source address, use the tty-server source-ip command. Use the no form
of this command to cancel the binding of TCP source address.
tty-server source-ipapp-number ip-address
no tty-server source-ipapp-number
Syntax Description
app-number Number of the application program, used to identify the IP address of TCP
connection to be bounds.
ip-address IP address to be bound.
Command Mode
Global configuration mode
Usage Guideline
Sometimes when multiple dumb terminals multiplex one TCP connection to establish
relationships with the application programs of the host computer by the access server
of dumb terminal, the real IP address in the TCP connection of the uplink of the accessserver of dumb terminal needs to be hidden up and set up to other IP address asrequired, out of consideration of security and other things. Generally, the binding ofsource address chooses the interface not used of the router, such as dial interface.
In addition, the binding of TCP source address should be set up before the TCPconnection is established. Otherwise, it s invalid.
Example
! Bind the TCP source address of the application program 0 to 27.222.48.73.
Quidway(config)# tty-server source-ip 0 27.222.48.73
Related Command
show tty-server
-
7/27/2019 01FC(Fundamental Configuration Command)
41/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-9
3.3.8 tty test-key
Use the tty test-key command to activate test function of terminal. Use the no form ofthis command to cancel the test function of the terminal.
tty test-key ascii-code
no tty test-key
Syntax Description
ascii-code The ASCII value corresponding with the hot key. The hot key is used to
activate test of the terminal.
Command Mode
Asynchronous serial interface configuration mode
Usage Guideline
After the hot key of terminal test is configured on one asynchronous serial port, you can
press hot key on the terminal and Terminal test OK! will be displayed on the dumbterminal, if the connection between the dumb terminal and the router is correct.
After the test function of the terminal is activated, the operation of the terminal is likely
to be abnormal, since the ASCII value of the hot key is probably same as the uplinkdata of some of the terminals. In this case, you need to re-specify the ASCII value of thehot key or cancel the test function of the terminal.
Example
! On the asynchronous serial interface Async 0, set up the key to activate terminal testto XXX.
Quidway(config-if-async0)# tty test-key XXX
3.3.9 show tty
To show the relevant information of the physical terminal and virtual terminal, use the
show tty command.
show tty
Command Mode
Privileged user mode
Usage Guideline
By using this command, the state information of the physical terminal and the virtual
terminal can be shown on the access server of the dumb terminal, thus you can monitorand maintain the access server of the dumb terminal.
Example
! Show information of physical terminal and virtual terminal.
-
7/27/2019 01FC(Fundamental Configuration Command)
42/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-10
Quidway# show tty
INTERFACE TTY_ID VTY_ID APP_ID TTY_STATE VTY_STATEAsync0 0 0 0 ok set
The explanation of the information shown is as follows:
The number of the physical terminal configured on the asynchronous serial port Async
0 is 0. The number of the virtual terminal configured on the physical terminal is 0. Thenumber of the application program of the host computer corresponding with the virtual
terminal is 0. The physical terminal is powered on and is connected with the accessserver of the dumb terminal. The virtual terminal is configured.
Related Command
async mode tty, tty-server app, tty-server enable, show tty-server
3.3.10 show tty-server
To show the relevant information of the application program on the UNIX host computerside, use the show tty-servercommand.
show tty-server
Command Mode
Privileged user mode
Usage Guideline
With this command, the state and configuration information of the application program
of the host computer, the physical terminal and the virtual terminal can be displayed onthe access server of the dumb terminal, thus you can monitor and maintain the accessserver of the dumb terminal.
Example
! Show the information of the application program.
Quidway# show tty-server
APP_ID HOST_IP PORT STATE APP_NAME0 1.1.1.1 2000 linked counter
The explanation of the information shown is as follows:
The application program numbered 0 of the UNIX host computer is on the UNIX hostcomputer whose IP address is 1.1.1.1; the number of the TCP port selected and used is
2000; the access server of dumb terminal has established TCP connection with theprogram; the name of the application program is counter .
Related Command
tty-server app, tty-server enable, tty-server source-ip, show tty
3.4 PRI Terminal Configuration Commands
PRI Terminal configuration commands include:
-
7/27/2019 01FC(Fundamental Configuration Command)
43/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-11
l pri-interactivel pri-autocommand
3.4.1 pri-interactive
To enable the PRI terminal functions, use the pri-interactive command. Use the no
form of this command to disable the PRI terminal function.
pri-interactive
no pri-interactive
Command Mode
PRI interface configuration mode
Default
PRI terminal function disabled.
Usage Guideline
Before using this command, please first use the pri-group command at the cE1/PRI
interface to bind the time slots.
This command is only effective for QuidwayR4000/4000E series of routers,
Example
! Enable the PRI terminal functions at the interface Serail2:15.
Quidway(config-if-Serial2:15)# pri-interactive
Related Command
pri-group, pri-autocommand
3.4.2 pri-autocommand
To configure a command so that it can be automatically executed after the login of the
PRI terminal client, use the pri-autocommand command. Use the no form of thiscommand to cancel the configuration of automatic execution of commands.
pri-autocommand { command} [ parameters ] ...
no pri-autocommand { command} [ parameters ] ...
Syntax Description
command Any executable command of the router.
parameters Command parameters, which can be many.
Default
No automatically executed commands configured.
-
7/27/2019 01FC(Fundamental Configuration Command)
44/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-12
Command Mode
PRI interface configuration mode
Usage Guideline
This command will not take effect until the pri-interactive command is used to enable
the PRI mute terminal functions.
This command is only effective for QuidwayR4000/4000E series of routers.
Example
! Specify the telnet 192.168.0.1 command automatically executed at the Interface
Serial2:15.
Quidway(config-if-Serial2:15)# pri-autocommand telnet 192.168.0.1
Related Command
pri-interactive
3.5 X.25 PAD configuration commands
X.25 PAD configuration commands include:
l login padl padl x29 invite clear-time
l
show x25 padl debug pad
3.5.1 login pad
To start the AAA authentication of the X.25 PAD Server end, use the login pad
command. To cancel the authentication, use the no form of this command.
login pad
no login pad
Default
By default, AAA authentication of the Server end is not set.
Command Mode
Global configuration mode
Usage Guideline
When X.25 PAD is used for remote configuration, if it is necessary to authenticate the
user efficiency, the usercommand can be used to set the valid X.25 PAD remote loginuser at the Server end. Then this command is used to start the AAA authentication atthe Server end.
-
7/27/2019 01FC(Fundamental Configuration Command)
45/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-13
As to the detailed description of the meaning, parameter and usage of the user
command, please refer to the Security Configuration part of this manual.
Example
! The following example sets an X.25 PAD remote user at the local end.
Quidway(config)# user paduser service-type exec password 7 padpass
! The following example starts the AAA authentication of the local end to the X.25 PAD
user.
Quidway(config)# login pad
Related Command
user, pad
3.5.2 pad
To initiate the X.25 PAD calling to the Server end with specified X.121 address, use the
pad command.
padx.121-address
Parameter Description
x.121-address The X.121 address of the Server end of X.25 PAD. Please refer to
ITU-T Recommendation X.121 and related RFC files for the X.121 address format.
Command Mode
Common user mode, privileged mode
Usage Guideline
On the router interconnected through the X.25 network, this command can be used to
initiate the X.25 PAD calling to log in the remote Server end. Then the remote routercan be configured.
It must be ensured that both ends support the X.25 PAD features. Otherwise the calling
cannot succeed.
After successful calling, the party initiating the calling (Client end) will enter the
configuration interface of the called party (Server end).
Example
! The following example initiates the X.25 PAD calling to QuidwayB at the Server end
with the X.121 address of 123456 from QuidwayA. After successful calling, log inQuidwayB.
QuidwayA# pad 123456
Trying 123456...Open
QuidwayB#
Related Command
login pad, show x25 pad, debug pad
-
7/27/2019 01FC(Fundamental Configuration Command)
46/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-14
3.5.3 x29 inviteclear-time
To set the response time of the Server end of X.25 PAD to X.29 Invite Clear messages,use the x29inviteclear-time command.
x29inviteclear-timetime
Parameter Description
time Response time in second, and the value ranges from 5 to 2147483.
Command Mode
Global configuration mode
Usage Guideline
When the Server end of X.25 PAD for some reason (For example: the Client end sends
the exit request or it is needed to release link resources etc.) sends link clearancemessage Invite Clear to the Client end, the Server end will wait for the response fromthe Client end. If the Client end fails to respond within the specified time, the Server endwill clear the link positively.
Example
! The following example sets the response time of the local end to the X.29 Invite Clear
message to 1000 seconds.
Quidway(config)# x29 inviteclear-time 1000
3.5.4 show x25 pad
To display the related information of X.25 PAD, use the show x25 pad command.
show x25 pad
Command Mode
Privileged mode
Usage Guideline
This command can be used to display such information as message transmission ofX.25 PAD and X.3 parameter setting etc., so as to maintain X.25 PAD and performfault diagnosis and troubleshooting.
Example
! The following example displays the related information of the local X.25 PAD.
Quidway# show x25 padconnection 1 to host 123456PAD0:Total input: 12, control 3, bytes 35, QueuedIn: 1 of 56.Total output: 10, control 3, bytes 64, QueuedOut: 2 of 56.State: 3, Last error: 1ParamsIn: 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0,
8:0, 9:0, 10:0, 11:0, 12:0, 13:0, 14:0, 15:0,
-
7/27/2019 01FC(Fundamental Configuration Command)
47/68
User Manual - Command Reference (Volume 1)
Versatile Routing Platform
Chapter 3Terminal Service Configuration Commands
3-15
16:0, 17:0, 18:0, 19:0, 20:0, 21:0, 22:0,ParamsOut: 1:1, 2:0, 3:2, 4:1, 5:1, 6:0, 7:21,
8:0, 9:1, 10:0, 11:14, 12:1, 13:0, 14:0, 15:0,16:127, 17:21, 18:18, 19:0, 20:0, 21:0, 22:0,
The above displayed information includes: message transmission information Totalinput/output, QueuedIn/Out, State, Last error and X.3 parameter setting information
(Paramsln/out). The Paramsln information refers to the X.3 parameter information
received by the local end, and the ParamsOut information refers to the X.3 informationissued by the local end.
Related Command
pad
3.5.5 debug pad
To enable the debugging at all levels, use the debug pad command. To disable thelevel-corresponding debugging, use the no form of this command.
debug pad [ packet | error | all ]
no debug pad [ packet | error | all ]
Parameter Description
packet Enable the packet debugging.
error Enable the error debugging.
all Enable all the debugging.
Default
By default, the debugging is disabled.
Command Mode
Privileged user mode
Usage Guideline
This command can be used to enable the X.25 PAD debugging at all levels. The X.25
PAD related information will be displayed along with the configuration information of theend being configured (Server end). Based on this information, the user can monitor andmaintain X.25 PAD as well as perfor