Sunteți pe pagina 1din 15

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE1.1

Table of Contents

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

Confidential Information of Huawei. No Spreading without Permission

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.1

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to appear here.

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 Function Check the simple running status and statistic information of the router. Configuration parameters. Configuration !thernet of global Prompt The command for entering This view can be entered ust by setting up connection with the router and press <!nter>. !nter &system'view& under the user view. !nter &+nterface ethernet ()*)*& 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>

#ystem view !thernet interface view

$Quidway% $Quidway'!thernet( )*)*%

of the interface

Confidential Information of Huawei. No Spreading without Permission

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to ODL010001 Configuration Basics Laboratory Exercise appear here. Guide ISSUE 1.1 Command mode The command for exiting

Function parameters.

Prompt

The command for entering

,igabit !thernet interface view ./# interface view 1T2 interface view 1U4 interface view Loopback interface view .6C view User interface view 7+. view /#.8 protocol view +#'+# view 9,. view route'policy view

Configuration of the gigabitethernet interface parameters. Configuration of the ./# interfaces parameters. Configuration of the 1T2 interfaces parameters. Configuring 1U4 port parameters Configuration of the Loopback interface parameters Configuration of the .6C parameters. 2anagement of the asynchronous and logical interfaces of the router. Configuration of the 7+. parameters. Configuration of the /#.8 protocol parameters. Configuration of the +#'+# parameters. Configuration of the 9,. parameters. Configure the route'policy

$Quidway',igabit!t hernet-)()*% $Quidway'.os0)*)*% $Quidway'1tm3)*)*% $Quidway'au5*)*)(% $Quidway'Loopback 3% $Quidway'pvc'1tm( )*)*'()03% $Quidway'ui*% $Quidway'rip% $Quidway'ospf% $Quidway'isis% $Quidway'bgp% $Quidway'route'poli cy%

!nter &interface gigabitethernet -)()*& under the system view. !nter &+nterface pos 0)*)*& under the system view. !nter &+nterface atm 3)*)*& under the system view. !nter &+nterface ethernet ()*)*& under the system view. !nter &interface loopback 3& under the system view. !nter &pvc ()03& under the atm interface view. !nter &line *& under the system view. !nter & rip& under the system view. !nter &ospf process'id& under the system view. !nter &isis& under the system view. !nter &bgp as'number& under the system view. !nter &route'policy& under 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 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>

Huawei Technologies Co., Ltd. All rights reserved. No disclosure without permission

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.1


[Quidway] interface ethernet 3/0/0? <cr>

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to appear here.

Note: :ere <cr> indicates there is no parameter at this position. The command is repeated in the ne5t command line" which can be e5ecuted by entering <!nter> 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: !nter 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 e5ecuting 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. Unrecogni;ed command The key word cannot be found. .arameter type error The parameter value e5ceeds the boundary. +ncomplete command Too many parameters 1mbiguous command +ncomplete command inputted Too many parameters inputted +ndefinite 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.

Confidential Information of Huawei. No Spreading without Permission

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to ODL010001 Configuration Basics Laboratory Exercise appear here. Guide ISSUE 1.1

Operation <isplay the history command. 1ccess the last history command 1ccess the ne5t history command

Key display history-command Up cursor key or <Ctrl=.> <own cursor key or <Ctrl=>>

Result <isplay the history commands user had entered. +f there is a history command earlier than this one" this operation will fetch it. /therwise the alarm bell will ring. +f there is a history command later than this one" this operation will fetch it. /therwise 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 !nter <Ctrl=C> when the display is paused !nter #pacebar when the display is paused !nter <!nter> when the display is paused Function #top the display and e5ecution of the command. Continue to display the ne5t screen of information. Continue to display the ne5t line of information.

II. Basic configuration commands


Operation !nter the system view from the user view ? Turn back to the user view from the system view. 7eturn to the user view from any other view #et the router name <isplay the system version <isplay the initial configuration information <isplay the current configuration information #howing the basic information of device system- ie! "uit return sysname sysname display ersion $ slot-id % display sa ed-configuration display current-configuration display de ice $ pic-status @ slot-id % Command

Huawei Technologies Co., Ltd. All rights reserved. No disclosure without permission

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.1

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to appear here.

Chapter 2 Configuration through the Console Interface


2.1 Networking and Service Description

Figure #-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:

Confidential Information of Huawei. No Spreading without Permission

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to ODL010001 Configuration Basics Laboratory Exercise appear here. Guide ISSUE 1.1

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.

Huawei Technologies Co., Ltd. All rights reserved. No disclosure without permission

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.1

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to appear here.

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


3.1 Networking and Service Description

Figure $-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

Confidential Information of Huawei. No Spreading without Permission

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to ODL010001 Configuration Basics Laboratory Exercise appear here. Guide ISSUE 1.1

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:

Huawei Technologies Co., Ltd. All rights reserved. No disclosure without permission

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.1

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to appear here.

Chapter 4 Configuration through Telnet


4.1 Networking and Service Description

Figure %-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.

Confidential Information of Huawei. No Spreading without Permission

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to ODL010001 Configuration Basics Laboratory Exercise appear here. Guide ISSUE 1.1

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

10

Huawei Technologies Co., Ltd. All rights reserved. No disclosure without permission

ODL010001 Configuration Basics Laboratory Exercise Guide ISSUE 1.1

Error! Use the Home tab to apply 1 to the text that you want to appear here.Error! Use the Home tab to apply 1 to the text that you want to appear here.

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

Confidential Information of Huawei. No Spreading without Permission

11

S-ar putea să vă placă și