Вы находитесь на странице: 1из 15

VRP Basic Configuration

www.huawei.com

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Objectives


Upon completion of this course, you will be able to:




Grasp the basic knowledge to use VRP CLI

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page1

Contents
1. Building Configuration Environment
2. VRP Configuration Basis

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page2

Building Configuration Environment




Setup via Console

Setup via Telnet

Setup via AUX

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page3

Console Configuration (1)

Router

PC

R232 serial
interface

Console cable

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Console

Page4

Console Configuration (2)

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page5

Telnet Configuration (1)

PC

Router

Switch

Normal
line

normal
line

Destination
router

Local configuration environment

Internet
Router
PC

Router

Long-distance configuration environment

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Destination
router

Page6

Telnet Configuration (2)


[Quidway]interface Ethernet 0/0
[Quidway-Ethernet0/0]ip address 1.1.1.4 255.0.0.0
[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

PC

normal line

Switch

normal line

Router
Destination
router

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page7

AUX Configuration
[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
[Quidway-ui-aux0] modem both

PSTN

PC

COM

Modem

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Modem

AUX Router

Page8

Contents
1. Building Configuration Environment
2. VRP Configuration Basis

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page9

Command View
[Quidway]user-interface vty 0

User interface view


Interface view

[Quidway]interface serial 0

User view
<Quidway>

system

System-view
[Quidway]

ACL view

[Quidway]acl 2000

VLAN view

[Quidway]vlan 5

[Quidway]ospf

Routing protocol view


Route policy view

[Quidway]aaa

Security view

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page10

Command Level
manage

Manage command

config

Service configuration

monitor

System maintenance,
service trouble diagnosis

visit

Network diagnosis command

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page11

Enter and Quit System View


operation

command

Enter the system view from the user view

system-view

Return to the user view from the system view

quit

Return to the user view from any other view

return

<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]
[Quidway]interface Serial 0/0/0
[Quidway-Serial0/0/0]quit
[Quidway]quit
<Quidway>

Page12

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Command Line Online Help




Command line interface provides the following online help:




Completeness help

Portion help

<Quidway> ?
completeness help

<Quidway> display ?
[Quidway] interface ethernet ?

Command line online help


<Quidway> d?
portion help
<Quidway> display h?

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page13

Language Mode
operation

command

Turn to english mode (default)

language-mode english

Turn to chinese mode

language-mode chinese

<Quidway>language-mode ?
chinese Chinese environment
english English environment
<Quidway>language-mode chinese
Change language mode, confirm? [Y/N]y
Info:Turn to chinese mode
<Quidway>

Page14

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

History Command Query


Command/Key
display history-command

Up-arrow key or <Ctrl+P>


Down-arrow key or
<Ctrl+N>

Function
Display the history commands that
the user has entered
Display the earlier history
command
Display the next history command

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page15

Configuring Router Name


operation

command

Configure the Router Name

sysname

<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]
#change the router name as Router1
[Quidway]sysname Router1
[Router1]

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page16

Configuring The System Clock


Operation

Command

Set UTC standard time

clock datetime

Set time zone

clock timezone

Import summer-time scheme

clock summer-time

<Quidway>clock datetime 10:19:30 2006/12/12


<Quidway>
<Quidway>display clock
10:19:36 UTC Tue 2006/12/12
<Quidway>

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page17

Status Information Query

Operation

Command

Display system version

display version

Display terminal user


Display running configuration
of the current view
Display technology support
information

display users
display this
display diagnostic-information

Page18

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

File Operation
Operation

Command

Display file content

more

Copy file

copy

Move file

move

Rename file

rename

Delete file

delete

delete file in recycle-bin downright

reset recycle-bin

Resume deleted file

undelete

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page19

10

Directory Operation
Operation

Command

Display the current directory

pwd

Change current directory

cd

Display the file list in the current

dir

directory
Create directory

mkdir

Remove directory

rmdir

Page20

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Storage Device Operation

Operation

Command

Format storage device

format

Fix storage device whose file

fixdisk

system is exceptional

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page21

11

Configuration File Management


Operation

Command

Display the saved configuration

display saved-configuration

Display the current configuration

display current-configuration

Save current configuration

save

Reset configuration file

reset saved-configuration

Compare configuration file

compare configuration

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page22

Software Upgrade and File Backup




FTP


VRP can be FTP Server, FTP Client

TFTP


File Transfer Protocol, based on TCP


Trivial File Transfer Protocol, based on UDP

VRP can be TFTP Client

XMODEM


one File Transfer Protocol, transmit via serial

VRP support receiving program function of XMODEM

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page23

12

Router Gets VRP File as FTP Client

PC

Console Cable

FTP Client

FTP Server

Router A

172.16.104.110

<Router> ftp 172.16.104.110


Trying 172.16.104.110 ...
Connected to 172.16.104.110.

User(172.16.104.110:(none)):quidway
331 Give me your password, please
Password:
230 Logged in successfully

[ftp] get vrp.cc

150 "D:\system\vrp.cc" file ready to send (5805100 bytes) in IMAGE / Binary mode
226 Transfer finished successfully.
FTP: 5805100 byte(s) received in 19.898 second(s) 291.74Kbyte(s)/sec.
Page24

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Router Gets VRP File as FTP Sever


FTP Server

FTP Client

.1
PC

Console Cable

Router A

.2
172.16.104.0

[Quidway]ftp server enable


[Quidway]aaa
[Quidway-aaa] local-user quidway service-type ftp
[Quidway-aaa] local-user quidway password simple huawei
[Quidway-aaa] local-user quidway ftp-directory flash:/ftp/quidway

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page25

13

Router Gets VRP File from TFTP


Server

TFTP Client

PC

Console Cable

<Quidway>

TFTP Server

Router A

10.111.16.160

tftp 10.111.16.160 get vrp.cc cfcard:/vrp.cc

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page26

Summary


How to configure router via Console?

What do command level and view VRP include?

How to create a Telnet user?

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page27

14

Thank you
www.huawei.com

15

Вам также может понравиться