Académique Documents
Professionnel Documents
Culture Documents
Table of Contents
Chapter 1 Configuration Mode of Common Commands for Routers ..........................................1 1.1 Service Description ................................................................................................................1 1.2 Configuration Reference ........................................................................................................2 1.2.1 On-line Help of the Command Line .............................................................................2 1.2.2 Error Messages of the Command Line .......................................................................3 1.2.3 History Command .......................................................................................................3 1.2.4 Display Characteristics ................................................................................................4 Chapter 2 Configuration through the Console Interface ...............................................................5 2.1 Networking and Service Description ......................................................................................5 2.2 Configuration procedure ........................................................................................................5 Chapter 3 Remote Dial-in through the Aux Interface and a Modem ............................................7 3.1 Networking and Service Description ......................................................................................7 3.2 Configuration procedure ........................................................................................................7 3.3 Configuration Reference ........................................................................................................7 3.3.1 Configuring the Routers AUX Interface ......................................................................7 3.3.2 Configuring the HyperTerminal ...................................................................................8 Chapter 4 Configuration through Telnet .........................................................................................9 4.1 Networking and Service Description ......................................................................................9 4.2 Configuration Reference ........................................................................................................9 Chapter 5 Setting the Right to Access the Router ...................................................................... 11 5.1 Configuration Reference ..................................................................................................... 11 5.1.1 Configuring the Right ............................................................................................... 11 5.1.2 Clear the configuration ............................................................................................. 11
Visit level: Commands of this level involve command of network diagnosis tool (such as ping and tracert), command that starts from the local device and visits external device (including Telnet client side, SSH client side and RLOGIN) and so on. The operation of saving configuration file is not allowed on this level of commands. Monitor level: Commands of this level, including the display command and the debugging command, are used to system maintenance, service fault diagnosis, etc. The operation of saving configuration file is not allowed on this level of commands. Configuration level: Service configuration commands, including routing command and commands on each network layer are used to provide direct network service to the user. Management level: They are commands that influence basis operation of the system and system support module, which plays a support role on service. Commands of this level involve file system command, FTP command, TFTP command, XModem downloading command, configuration file switching command, power supply control command, backup board control command, user management command, level setting command, system internal parameter setting command (non-protocol provision and non-RFC provision), etc.
2) Command mode The system defines command line interfaces into command views. All commands of the system are registered with a command view (or command views). Commands under a view can only be executed from that view. Presented below are functional characteristics of command views and the commands for entering the views. Table 1-1 List of the functional characteristics of the command modes
Command mode User view System view Ethernet interface view Function Check the simple running status and statistic information of the router. Configuration parameters. Configuration Ethernet parameters. of global Prompt The command for entering This view can be entered just by setting up connection with the router and press <Enter>. Enter "system-view" under the user view. Enter "Interface ethernet 1/0/0" under the system view. The command for exiting Quit, i.e., disconnect the connection with the router. Quit, i.e., return to the user view. Quit, i.e., return to the system view. 1
of the interface
Command mode Gigabit Ethernet interface view POS interface view ATM interface view AUX interface view Loopback interface view PVC view User interface view RIP view OSPF protocol view IS-IS view BGP view route-policy view
Function Configuration of the gigabitethernet interface parameters. Configuration of the POS interfaces parameters. Configuration of the ATM interfaces parameters. Configuring AUX port parameters Configuration of the Loopback interface parameters Configuration of the PVC parameters. Management of the asynchronous and logical interfaces of the router. Configuration of the RIP parameters. Configuration of the OSPF protocol parameters. Configuration of the IS-IS parameters. Configuration of the BGP parameters. Configure the route-policy
Prompt [Quidway-GigabitEt hernet6/1/0] [Quidway-Pos3/0/0] [Quidway-Atm2/0/0] [Quidway-aux0/0/1] [Quidway-Loopback 2] [Quidway-pvc-Atm1 /0/0-1/32] [Quidway-ui0] [Quidway-rip] [Quidway-ospf] [Quidway-isis] [Quidway-bgp] [Quidway-route-poli cy]
The command for entering Enter "interface gigabitethernet 6/1/0" under the system view. Enter "Interface pos 3/0/0" under the system view. Enter "Interface atm 2/0/0" under the system view. Enter "Interface ethernet 1/0/0" under the system view. Enter "interface loopback 2" under the system view. Enter "pvc 1/32" under the atm interface view. Enter "line 0" under the system view. Enter " rip" under the system view. Enter "ospf process-id" under the system view. Enter "isis" under the system view. Enter "bgp as-number" under the system view. Enter "route-policy" under the system view.
The command for exiting Quit, i.e., return to the system view. Quit, i.e., return to the system view. Quit, i.e., return to the system view. Quit, i.e., return to the system view. Quit, i.e., return to the system view. Quit, i.e., return to the system view. Quit, i.e., return to the system view. Quit, i.e., return the system view. Quit, i.e., return the system view. Quit, i.e., return the system view. Quit, i.e., return the system view. Quit, i.e., return the system view. to to to to to
Enter a command and a "?" separated by a space, and if the key word is at this position, all key words and their simple descriptions will be listed. <Quidway> display ? Enter a command and a "?" separated by a space, and if a parameters is at this position, the relative parameter descriptions will be listed.
[Quidway] interface ethernet ? <3-3> Slot number [Quidway] interface ethernet 3? / [Quidway] interface ethernet 3/? <0-0> [Quidway] interface ethernet 3/0? / [Quidway] interface ethernet 3/0/? <0-0> [Quidway] interface ethernet 3/0/0? <cr>
Note: Here <cr> indicates there is no parameter at this position. The command is repeated in the next command line, which can be executed by entering <Enter> directly. Enter a character string with a "?" closely following it, then all the commands with this character string as their initials will be listed.
<Quidway> d? debugging delete dir display
Enter a command with a "?" closely following it, then all the key words in the command with this character string as their initials will be listed.
<Quidway> display ? history-command
Note: Enter the preceding key words of the command and press <tab>, and then the key words of the complete command will be displayed. The help information mentioned above can be switched to display in Chinese by executing the language-mode Chinese command.
Operation Display the history command. Access the last history command Access the next history command
Key display history-command Up cursor key or <Ctrl+P> Down cursor key or <Ctrl+N>
Result Display the history commands user had entered. If there is a history command earlier than this one, this operation will fetch it. Otherwise the alarm bell will ring. If there is a history command later than this one, this operation will fetch it. Otherwise the command will be cleared and the alarm bell will ring.
Figure 2-1 To set up the local configuration environment, just connect the serial port of the PC (or terminal) to the Console interface on the routers active MPU through a special configuration cable.
2)
Power on the router. If a user does not want to enter the BOOTROM menu, he is asked to press the Enter key after completion of self-check, until the command line prompt <Quidway> appears.
Figure 3-1
Figure 4-1
After configured the ip address of the interface,configure the ip address of the PC(suggest ip address of the PC is 1.1.1.2/8). II. Configure a password for login in the Telnet mode
[Quidway] user-interface vty 0 4 [Quidway-ui-vty0-4] authentication-mode password [Quidway-ui-vty0-4] set authentication password simple Huawei [Quidway-ui-vty0-4] user privilege level 3
10
When you log in to the router through telnet, the system set the default access level to 0 for users. When you log in to the router through telnet, you may use the command super [ level ] (the password varies with the level) to manage the right of access users.
[Quidway]super ? INTEGER<0-3> Priority level <cr>
You may manage the rights of access users by setting different levels for them.
[Quidway-ui-vty0-4]authentication-mode local [Quidway]local-user test password cipher test [Quidway]local-user test level 3
When you are trying to log in to the router through telnet, you will be asked to enter a username and a password.
11