0 - guia 0 lab tele

15
Guia #0 de Laboratorio de Telecomunicaciones

Upload: screen1716

Post on 21-May-2017

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 0 - Guia 0 Lab Tele

Guia #0 de Laboratorio de Telecomunicaciones

Page 2: 0 - Guia 0 Lab Tele
Page 3: 0 - Guia 0 Lab Tele

i

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 Router’s 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

Page 4: 0 - Guia 0 Lab Tele
Page 5: 0 - Guia 0 Lab Tele

1

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

Function Prompt The command for entering The command for

exiting

User view Check the simple running status and statistic information of the router.

<Quidway> This view can be entered just by setting up connection with the router and press <Enter>.

Quit, i.e., disconnect the connection with the router.

System view Configuration of global parameters.

[Quidway] Enter "system-view" under the user view.

Quit, i.e., return to the user view.

Ethernet interface view

Configuration of the Ethernet interface parameters.

[Quidway-Ethernet1/0/0]

Enter "Interface ethernet 1/0/0" under the system view.

Quit, i.e., return to the system view.

Page 6: 0 - Guia 0 Lab Tele

2

Command mode

Function Prompt The command for entering The command for

exiting

Gigabit Ethernet interface view

Configuration of the gigabitethernet interface parameters.

[Quidway-GigabitEthernet6/1/0]

Enter "interface gigabitethernet 6/1/0" under the system view.

Quit, i.e., return to the system view.

POS interface view

Configuration of the POS interfaces parameters.

[Quidway-Pos3/0/0] Enter "Interface pos 3/0/0" under the system view.

Quit, i.e., return to the system view.

ATM interface view

Configuration of the ATM interfaces parameters.

[Quidway-Atm2/0/0] Enter "Interface atm 2/0/0" under the system view.

Quit, i.e., return to the system view.

AUX interface view

Configuring AUX port parameters

[Quidway-aux0/0/1] Enter "Interface ethernet 1/0/0" under the system view.

Quit, i.e., return to the system view.

Loopback interface view

Configuration of the Loopback interface parameters

[Quidway-Loopback2]

Enter "interface loopback 2" under the system view.

Quit, i.e., return to the system view.

PVC view Configuration of the PVC parameters.

[Quidway-pvc-Atm1/0/0-1/32]

Enter "pvc 1/32" under the atm interface view.

Quit, i.e., return to the system view.

User interface view

Management of the asynchronous and logical interfaces of the router.

[Quidway-ui0] Enter "line 0" under the system view.

Quit, i.e., return to the system view.

RIP view Configuration of the RIP parameters.

[Quidway-rip] Enter " rip" under the system view.

Quit, i.e., return to the system view.

OSPF protocol view

Configuration of the OSPF protocol parameters.

[Quidway-ospf] Enter "ospf process-id" under the system view.

Quit, i.e., return to the system view.

IS-IS view Configuration of the IS-IS parameters.

[Quidway-isis] Enter "isis" under the system view.

Quit, i.e., return to the system view.

BGP view Configuration of the BGP parameters.

[Quidway-bgp] Enter "bgp as-number" under the system view.

Quit, i.e., return to the system view.

route-policy view

Configure the route-policy [Quidway-route-policy]

Enter "route-policy" under the system view.

Quit, i.e., return to the system view.

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>

Page 7: 0 - Guia 0 Lab Tele

3

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

Unrecognized command

The command cannot be found.

The key word cannot be found.

Parameter type error

The parameter value exceeds the boundary.

Incomplete command Incomplete command inputted

Too many parameters Too many parameters inputted

Ambiguous command 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.

Page 8: 0 - Guia 0 Lab Tele

4

Operation Key Result

Display the history command.

display history-command Display the history commands user had entered.

Access the last history command

Up cursor key or <Ctrl+P> If there is a history command earlier than this one, this operation will fetch it. Otherwise the alarm bell will ring.

Access the next history command

Down cursor key or <Ctrl+N> 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 can’t 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 Function

Enter <Ctrl+C> when the display is paused Stop the display and execution of the command.

Enter Spacebar when the display is paused Continue to display the next screen of information.

Enter <Enter> when the display is paused Continue to display the next line of information.

II. Basic configuration commands

Operation Command

Enter the system view from the user view system-view

# Turn back to the user view from the system view. quit

Return to the user view from any other view return

Set the router name sysname sysname

Display the system version display version [ slot-id ]

Display the initial configuration information display saved-configuration

Display the current configuration information display current-configuration

Showing the basic information of device display device [ pic-status | slot-id ]

Page 9: 0 - Guia 0 Lab Tele

5

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 router’s 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:

Page 10: 0 - Guia 0 Lab Tele

6

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.

Page 11: 0 - Guia 0 Lab Tele

7

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 cable’s 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 Router’s 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

Page 12: 0 - Guia 0 Lab Tele

8

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:

Page 13: 0 - Guia 0 Lab Tele

9

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.

Page 14: 0 - Guia 0 Lab Tele

10

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

Page 15: 0 - Guia 0 Lab Tele

11

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