Vous êtes sur la page 1sur 15

Guia #0 de Laboratorio de Telecomunicaciones

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

Chapter 1 Configuration Mode of Common Commands for Routers


1.1 Service Description
1) The hierarchical protection mode has been adopted in the command line of the system. Command lines are classified into four levels, namely visit level, monitoring level, configuration level and management level. They are introduced as follows:

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

<Quidway> [Quidway] [Quidway-Ethernet1 /0/0]

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

1.2 Configuration Reference


1.2.1 On-line Help of the Command Line
I. Enter "?" under any command mode to attain all the commands and their simple descriptions of the command mode.
<Quidway> ?

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.

1.2.2 Error Messages of the Command Line


I. All commands entered by a user are executed if they pass the syntax check; otherwise, error information is reported to the user.
Error messages Cause of the error The command cannot be found. Unrecognized command The key word cannot be found. Parameter type error The parameter value exceeds the boundary. Incomplete command Too many parameters Ambiguous command Incomplete command inputted Too many parameters inputted Indefinite parameters inputted

1.2.3 History Command


The command line interface provides the function similar to Doskey, which automatically saves the history commands input by the user. The user may access and repeatedly execute the history commands saved by this interface.By default, the interface line interface may save a maximum of 10 history commands for each user.

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.

1.2.4 Display Characteristics


I. The command line interface provides the following displaying characteristics:
To facilitate users, the prompt and help information can be displayed in both Chinese and English. When information cant be displayed in one screen, the screen will pause, and the user can make 3 choices as shown in Table FC-2-1.
Key-press or command Enter <Ctrl+C> when the display is paused Enter Spacebar when the display is paused Enter <Enter> when the display is paused Function Stop the display and execution of the command. Continue to display the next screen of information. Continue to display the next line of information.

II. Basic configuration commands


Operation Enter the system view from the user view # Turn back to the user view from the system view. Return to the user view from any other view Set the router name Display the system version Display the initial configuration information Display the current configuration information Showing the basic information of device system-view quit return sysname sysname display version [ slot-id ] display saved-configuration display current-configuration display device [ pic-status | slot-id ] Command

Chapter 2 Configuration through the Console Interface


2.1 Networking and Service Description

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.2 Configuration Procedure


1) Open the HyperTerminal in the Windows2000 or Windows XP operating system of the PC. Set the communication parameters for the terminal as follows: Set the Baud Rate to 9600bit/s, Data Bit to 8, Stop Bit to 1, Parity Check to none and Flow Control to none; select VT100 or automatic detection as the terminal type, as shown in the following figure:

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.

Chapter 3 Remote Dial-in through the Aux Interface and a Modem


3.1 Networking and Service Description

Figure 3-1

3.2 Configuration Procedure


Connect the cables and Modems properly. The router is accompanied by a dark green AUX cable when it is shipped. The AUX cable has a RJ-45 connector at one end and a 9-pin or 25-pin serial port at the other end. It appears similarly to the Console cable, except that the serial port of the AUX cable has 9 or 25 pins, while the serial port of the Console cable has 9/25 holes. Plug the AUX cables RJ -45 connector in the AUX interface on the MPU, and connect the serial port to the Modem. Connect the telephone line properly. Up to now, you have laid the physical basis for remote dialing and login to the router through the AUX interface.

3.3 Configuration Reference


3.3.1 Configuring the Routers AUX Interface
Configure a password for the Aux login user. In the user-interface view, configure the password for login to the system with the set password command.
[Quidway] User-interface aux 0 [Quidway-ui-aux0] authentication-mode password [Quidway-ui-aux0] set authentication password simple Huawei [Quidway-ui-aux0] user privilege level 3

Configure the Modem to allow it to call in and call out.


[Quidway-ui-aux0] modem both

3.3.2 Configuring the HyperTerminal


After the physical environment is set up and commands are configured, you may dial from the PC to log in to the system. The terminal application, for example, the HyperTerminal of Windows, is used for dialing login. The following figure illustrates the actual dialing:

Chapter 4 Configuration through Telnet


4.1 Networking and Service Description

Figure 4-1

4.2 Configuration Reference


I. Configure ip address of router
[Quidway]interface Ethernet 0/0 [Quidway-Ethernet0/0]ip address 1.1.1.1 255.0.0.0

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

III. Check connectivity between the PC and the router


Check the connectivity by pinging the router.

IV. Run the telnet application on the PC to log in to the router.

10

Chapter 5 Setting the Right to Access the Router


5.1 Configuration Reference
5.1.1 Configuring the Right
You may set the password at different levels using the command super password [ level user-level ] { simple | cipher } password.
[Quidway]super password level 1 cipher jack [Quidway]super password level 2 cipher black [Quidway]super password level 3 cipher brown

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.

5.1.2 Clear the Configuration


[Quidway]undo super password [Quidway-ui-vty0-4]undo set authentication password [Quidway]undo super password level 1 [Quidway]undo super password level 2 [Quidway-ui-aux0]authentication-mode none [Quidway]undo local-user test

11

Vous aimerez peut-être aussi