0% found this document useful (0 votes)
164 views37 pages

2) VRP Basic Configuration

VRP Basic Configuration

Uploaded by

Randy Dookheran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views37 pages

2) VRP Basic Configuration

VRP Basic Configuration

Uploaded by

Randy Dookheran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

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

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page3
COMMAND LINE INTERFACE

When a prompt appears, you enter the CLI and interact with routers through CLI.
You can configure and manage the router by entering commands on CLI.

Some tasks that can be done with the CLI


Make local configuration via Console
Make local or remote configuration via Telnet
Configure hierarchical command protection to safeguard the router
against the intrusion of unauthorized users
Provide detailed debugging information to help you make network
CLI troubleshooting
Provide the network testing tools like tracert and ping commands to
help you quickly diagnose whether the network is correctly running
Directly log in by using the telnet command to manage other routers
Adopt the FTP Server/Client model, which makes it possible to
download and upload the configuration files and applications by making
use of FTP
Support file uploading and downloading with TFTP
Support log function
Provide file system management
Support user-interface configuration and provide multiple approaches
in authentication and authorization of the login users
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page4
Console Configuration (1)

Router
PC

R232 serial Console cable Console


interface

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page5
Console Configuration (2)

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page6
Telnet Configuration (1)

PC Switch Router
Normal normal
line line Destination
router
Local configuration environment

Internet

Router Router
PC
Long-distance configuration environment
Destination
router

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page7
Telnet Configuration (2)
<Quidway>system-view
[Quidway]interface Ethernet 0/0
[Quidway-Ethernet0/0]ip address 192.168.1.1 255.255.255.0
[Quidway-Ethernet0/0]quit
[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
IP: 192.168.1.2
SM: 255.255.255.0
DG: 192.168.1.1 Ethernet0/0

normal line L2 normal line


PC Router
Switch Destination
router

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. 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

[Quidway]interface serial 0 Interface view

[Quidway]acl 2000 ACL view


User view system System-view
<Quidway> [Quidway]

Routing protocol view


[Quidway]ospf Route policy view

[Quidway]aaa Security view

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page10
Command Level

LEVEL 3 manage Manage command

LEVEL 2 config Service configuration

LEVEL 1 System maintenance,


monitor
service trouble diagnosis

LEVEL 0 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


quit
view

Return to the user view from any other


return
view
<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>
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page12
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>

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page14
History Command Query

Command/Key Function

Display the history commands


display history-command
that the user has entered

Display the earlier history


Up-arrow key or <Ctrl+P>
command

Down-arrow key or Display the next history


<Ctrl+N> command

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page15
Introduction to Basic Operations
The basic operations on the NE 40E, include entering and exiting views,
and displaying statistics on the system. All these operations do not
affect the configuration file of the NE 40E

Entering the System View


Quitting the Current View
Displaying the System Status
Displaying the Operation Status of the System
Sending Information Between User Interfaces
Cutting Off the Connection Between User Interfaces
Basic Configurations of the System
Configuring the IP Address of an Interface

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page16
Basic Operations

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page17
Displaying the System Status

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page18
Information Between User Interfaces
and Cutting Off

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page19
Basic Configurations of the System
Specifying a Name for the NE 40E

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page20
Configuring the IP Address of an Interface
[NE40E1]display ip interface brief
*down: administratively down
!down: FIB overload down
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 6
The number of interface that is DOWN in Physical is 19
The number of interface that is UP in Protocol is 6
The number of interface that is DOWN in Protocol is 19

Interface IP Address/Mask Physical Protocol


Aux0/0/1 unassigned *down down
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet7/0/0 unassigned down down
GigabitEthernet7/0/4 unassigned down down
GigabitEthernet7/0/5 unassigned *down down
GigabitEthernet7/0/6 unassigned *down down
GigabitEthernet7/0/7 unassigned down down
GigabitEthernet7/0/8 unassigned *down down
GigabitEthernet7/0/9 unassigned *down down
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page21
Configuring the IP Address of an
Interface
[NE40E1]interface GigabitEthernet0/0/0
[NE40E1-GigabitEthernet0/0/0]ip address 172.16.1.1 255.255.255.0

Checking the Configuration


[NE40E1]display ip interface brief GigabitEthernet0/0/0
*down: administratively down
!down: FIB overload down
(l): loopback
(s): spoofing
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.1/24 up up
[NE40E1]

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page22
Configuring Telnet Users
VTY User Interfaces
user-interface vty first-number [ last-number ]
[Quidway] user-interface vty 0 4

Configuring User Authentication mode “NONE”


authentication-mode
[Quidway-user-interface-vty0-4] authentication-mode none

With NONE the user can log in to the NE directly without being authenticated.

Configuring Password Authentication


authentication-mode
[Quidway-user-interface-vty0-4] authentication-mode password
[Quidway-user-interface-vty0-4] set authentication password { cipher |
simple } password
The authentication password for login user is set.

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page23
Configuring AAA Local Authentication
Authentication mode set to the AAA mode.

authentication-mode aaa
[Quidway-user-interface-vty0-4] authentication-mode aaa

Go to the AAA view


aaa
[Quidway] aaa

Configure local user name, password, service-type and level

local-user user-name password { simple | cipher } password


local-user user-name service-type { ftp | ppp | ssh | telnet | terminal }
local-user user-name level level
[Quidway-aaa] local-user ADMIN password simple Admin123
[Quidway-aaa] local-user ADMIN service-type telnet
[Quidway-aaa] local-user ADMIN level 3

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page24
Configuring File Directories
Display de current directory
Pwd

<Quidway>pwd
flash:

Create a directory

mkdir directory

<Quidway>mkdir ?
STRING<1-64> The total length of absolute path is 64,the length
of single directory is 15
flash: Device name
<Quidway>mkdir HUAWEI3G
Info:Create directory flash:/HUAWEI3G......Done.

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page25
Configuring File Directories
Change of directory
cd directory

<Quidway>cd HUAWEI3G
<Quidway>pwd
flash:/HUAWEI3G
List a directory
dir [ /all ] [ filename | flash: ]
<Quidway>dir
Directory of flash:/
0 -rw- 12785836 May 21 2009 11:12:47 ne200v100r005c02b236.cc
1 -rw- 609 Dec 04 2009 14:10:19 vrpcfg.zip
2 drw- - Dec 07 2009 10:01:29 huawei3g
29636 KB total (17016 KB free)

<Quidway>dir flash:/huawei3g
Directory of flash:/
0 drw- - Dec 07 2009 10:01:29 huawei3g
29636 KB total (17016 KB free)

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page26
Managing File System
Remove a Directory
rmdir directory
<Quidway>rm flash:/huawei3g
Remove directory flash:/huawei3g?[Y/N]:y
%Removing directory flash:/huawei3g......Done!

Copy files
copy source-filename destination-filename
<Quidway>copy vrpcfg.zip BACKUPvrpcfg.zip
Copy flash:/vrpcfg.zip to flash:/backupvrpcfg.zip?[Y/N]:y
100% complete
Info:Copied file flash:/vrpcfg.zip to flash:/backupvrpcfg.zip...Done

Rename files
rename source-filename destination-filename
<Quidway>rename backupvrpcfg.zip copiavrpcfg.zip
Rename flash:/huawei3g/backupvrpcfg.zip to
flash:/huawei3g/copiavrpcfg.zip?[Y/N]:y
Info:Rename file flash:/huawei3g/backupvrpcfg.zip to
flash:/huawei3g/copiavr pcfg.zip ......Done.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page27
Managing File System
Display de contents of a file
more filename
<Quidway>more prueba.txt
Prueba de conexion de PC a NE

Move files
move source-filename destination-filename
<Quidway>move backupvrpcfg.zip flash:/huawei3g
Warning: Move file flash:/backupvrpcfg.zip to
flash:/huawei3g/backupvrpcfg.zip ?[Y/N]:y
Info: File flash:/backupvrpcfg.zip has been moved to
flash:/huawei3g/backupvrpcfg.zip.

<Quidway>cd huawei3g
<Quidway>dir
Directory of flash:/huawei3g/
0 -rw- 609 Dec 07 2009 10:12:46 backupvrpcfg.zip
29636 KB total (17012 KB free)

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page28
Managing File System
Delete a file
delete { filename | flash: }
<Quidway>delete copiavrpcfg.zip
Delete flash:/huawei3g/copiavrpcfg.zip?[Y/N]:y
%Deleting file flash:/huawei3g/copiavrpcfg.zip...Done!

Undelete a file
undelete filename
<Quidway>dir
Info:File can't be found in the directory
29636 KB total (17008 KB free)
<Quidway>pwd
flash:/huawei3g
<Quidway>undelete flash:/huawei3g/copiavrpcfg.zip
Undelete flash:/huawei3g/copiavrpcfg.zip?[Y/N]:y
%Undeleted file flash:/huawei3g/copiavrpcfg.zip.
<Quidway>dir
Directory of flash:/huawei3g/
0 -rw- 609 Dec 07 2009 10:23:07 copiavrpcfg.zip

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page29
Managing File System
Delete files permanently.
delete /unreserved { filename | flash: }
<Quidway>delete /unreserved copiavrpcfg.zip
The contents cannot be recycled!!! Delete
flash:/huawei3g/copiavrpcfg.zip?[Y/N]:y
%Deleting file flash:/huawei3g/copiavrpcfg.zip...
Deleting file permanently from flash will take a long time if
needed......Done!

Deleted permanently files in the recycle bin

reset recycle-bin [ filename ]


<Quidway>reset recycle-bin flash:/huawei3g/backupvrpcfg.zip
Squeeze flash:/huawei3g/backupvrpcfg.zip ?[Y/N]:y
Clear file from flash will take a long time if needed.....Done!.
%Cleared file flash:/huawei3g/backupvrpcfg.zip.

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page30
Managing File System
NE 40E

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page31
Transferring Files Through FTP
(with the NE40E Acting as the FTP Server)

Enabling the FTP Server


ftp server enable
[Quidway]ftp server enable
Info:Start FTP server

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page32
Transferring Files Through FTP

Configuring Authentication and Authorization for an FTP Login User

An FTP user must be created in the aaa view configuring the ftp
directory for this user and the ftp service.

local-user user-name password { cipher | simple } [define password ]


local-user user-name ftp-directory [directory]
local-user user-name service-type [ftp]

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

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page33
Check the system
Commands Function

display current-configuration Check the running configuration

display saved-configuration Check the startup configuration of next rebooting

display version Check the software version

display device Check the system information and the startup time

display device SlotID Check the state of the specific board

ping Check if the destination is reachable

tracert Check the path to the destination

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page34
Upgrade automatically
Specify the Software Package for the Next Booting
<NE40E> startup system-software cfcard:/b017.bin

<NE40E> display startup

Complete the system software upgrade


<NE40E> reboot

<NE40E> display version

Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page35
Thank you
www.huawei.com

You might also like