HW VRP
HW VRP
www.huawei.com
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 1
Objectives
Upon completion of this course, you will be able to:
Describe the VRP architecture
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 2
Contents
VRP Architecture
Information Center
File Operation
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 3
VRP Background
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 4
VRP Architecture
General Control Plane(GCP) System Manage Plane(SMP)
Service Control Plane(SCP) Routing Subsystem Vpn Subsystem Config Management Subsys
Proto Client URP TE_Ex MRP VPDN WebUI CLI SNMP MML BINA
L2vpnM L3vpnM4/6
4/6 VPN_Ex 4/6
LocalM L2TPv3 IPsec CMO
AAA 6PE
RM4/6 MRM4/6 VPN
CM Mpls Subsystem
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 5
VRP Background—Framework
VRP is designed with modularization software framework
BGP Core
Shell Cfg Easy system
Fun maintenance
Interface c
Fun
c Cfg
BGP for IPv4 Ha Upgrade service
VPN smoothly
BGP for
IPv6
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 6
Contents
VRP Architecture
Information Center
File Operation
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 7
Logging In to the Router Through
the Console Port
If you are the first time logging in to the device, configure it
using the console port.
AR2220
Console cable
Windows PC
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 8
Configuring the Terminal Running
on Windows XP
Start > Program > Accessories > Communication > HyperTerminal
Other terminals such as SecureCRT can also be used. The parameter settings are
the same as the parameter settings of HyperTerminal.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 9
Command-Line Interface
After you log in to the router, the displayed command line
prompt indicates that you have entered the CLI.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 10
Configuring the login password
When configuring he latest Huawei products, the new
device requires a login password for the first time:
0: Visit level
1: Monitoring level
2: Configuration level
3: Management level
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 12
Command Views
CLI interfaces are classified into several command line views. All
commands must be executed in command line views.
You can run a command only after you enter its command view.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 13
Command Line Online Help: Full
Help (1)
When entering a command, you can use the full help
function to obtain keywords and parameters for the
command.
# Enter a question mark (?) in any command view to obtain all the commands and their
simple descriptions.
<Huawei>?
User view commands:
arp-ping ARP-ping
autosave <Group> autosave command group
backup Backup information
cd Change current directory
clear Clear
clock Specify the system clock
cls Clear screen
compare Compare configuration file
copy Copy from one file to another
...
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 14
Command Line Online Help: Full
Help (2)
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 15
Command Line Online Help: Full
Help (3)
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 16
Command Line Help: Partial Help
If you enter only the first or first several characters of a command, partial
help provides keywords that begin with this character or character string.
# Enter a character string followed directly by a question mark (?) to display all
commands that begin with this character string.
<Huawei>d?
debugging delete
dir display
# Enter a command and a character string followed directly by a question
mark (?) to display all key words that begin with this character string.
<Huawei>display b?
bfd bgp
bootrom bulk-stat
Enter the first several letters of a key word in the command and then
press Tab to display a complete key word. A complete keyword is
displayed only if the partial string of letters uniquely identifies a specific
key word. If they do not identify a specific key work, continuing to press
Tab will display different key words. You can select the needed key word.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 17
Command Line Help: Error
Messages
If a command is entered and passes the syntax check, the
system executes it. Otherwise, the system reports an error
message.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 18
Basic commands - sysname /
display current-configuration
Setting the device host name
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname Huawei
[Huawei]
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 19
Basic commands – display version
Displaying the version
<Huawei> display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.90 (AR2200 V200R001C00)
Copyright (C) 2011 HUAWEI TECH CO., LTD
Huawei AR2220 Router uptime is 0 week, 4 days, 3 hours, 25 minutes
BKP 0 version information:
1. PCB Version : AR01BAK2A VER.A
2. If Supporting PoE : No
3. Board Type : AR2220
4. MPU Slot Quantity : 1
5. LPU Slot Quantity : 6
……
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 20
Basic commands – display device
Displaying the type and status of the components on a
device
<Huawei> display device
AR2220's Device status:
Slot Sub Type Online Power Register Alarm Primary
-----------------------------------
1 - 1E1-F Present PowerOn Registered Normal NA
2 - ADSL-B Present PowerOn Registered Normal NA
3 - 1E1-MFT Present PowerOn Registered Normal NA
4 - 2FE Present PowerOn Registered Normal NA
6 - 8AS Present PowerOn Registered Normal NA
0 - AR2220 Present PowerOn Registered Normal Master
PWR1 - - Present PowerOn Registered Normal NA
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 21
Basic commands – Configuring
Telnet password
Configuring users to login the device through Telnet, using
password authentication.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] authentication-mode password
[Huawei-ui-vty0-4] set authentication password cipher
Enter Password(<8-128>):(enter password)
Confirm password: (re-tenter the password to confirm)
[Huawei-ui-vty0-4] user privilege level 3
[Huawei-ui-vty0-4]
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 22
Basic commands – configuring
Telnet user and password
Configuring users to login the device through Telnet, using
User + password authentication.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] authentication-mode aaa
[Huawei-ui-vty0-4] quit
[Huawei] aaa
[Huawei-aaa] local-user user1 password cipher huawei@123
Info: Add a new user.
[Huawei-aaa] local-user user1 service-type telnet
[Huawei-aaa] local-user user1 privilege level 3
[Huawei-aaa] quit
[Huawei]
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 23
Basic commands – configuring IP
address
Routers: enter the physical interface view
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.0.0.1 24
[Huawei-GigabitEthernet0/0/0] quit
[Huawei]
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 24
Basic commands- display this
displaying the running configuration in the current view
[Huawei-Vlanif1] display this
[V200R005C10]
#
interface Vlanif1
ip address 10.0.0.1 255.255.255.0
#
Return
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 25
Basic commands- undo / quit /
return
Canceling some configuration
[Huawei-GigabitEthernet0/0/0]undo shutdown
[Huawei-GigabitEthernet0/0/0]
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 26
Basic commands – Telnet from a
PC
Telnet from Windows
Login authentication
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 27
Contents
VRP Architecture
Information Center
File Operation
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 28
Information Center
The information center works as the information hub of a switch. It classifies and
filters the output of a system. The information center uses a debugging program to
help network administrator and developers monitor network operation and analyze
network faults.
The information center receives and processes information of the following types:
logs
Debug information
Traps
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 29
Information Level
Level Severity Description
0 Emergency A fatal fault occurs in the device, which causes the system
to fail to run normally unless the device is restarted.
1 Alert A critical fault occurs in the device, which requires
immediate action.
2 Critical A sever fault occurs in the device, which requires that
actions be taken to analyze or process it.
3 Error Incorrect operation or an abnormal process occurs in the
device, which does not affect subsequent services but
requires attention and cause analysis.
4 Warning An abnormality that may result in a fault occurs in the
device, which requires full attention.
5 Notice A key operation is performed to keep the device running
normally.
6 Informational A normal operation is performed.
7 Debugging A normal operation is performed, which requires no
attention.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 30
Information Output
Channel Default Channel Output Description
Name Direction
0 Console console Outputs information to the local console that can receive logs,
traps, and debugging information.
1 Monitor monitor Outputs information to the virtual type terminal (VTY) that can
receive logs, traps, and debugging information.
This is helpful for remote maintenance.
2 Loghost loghost Outputs information to the log host that can receive logs, traps, and
debugging information.
The information is saved to the log host in the file format for
convenient reference.
3 trapbuffer trapbuffer Outputs information to the trap buffer that can receive traps.
An area is specified inside a device as the trap buffer recording
traps.
4 logbuffer logbuffer Outputs information to the log buffer that can receive logs.
An area is specified inside a device as the log buffer for recording
logs.
5 snmpagent snmpagent Outputs information to the SNMP agent that can receive traps.
6 Unspecified Unspecified Reserved.
7 Unspecified Unspecified Reserved.
8 Unspecified Unspecified Reserved.
9 channel9 logfile Outputs information to log files that can receive logs, traps, and
debugging information. Information is saved to the hard disk or
Flash memory in the file format.
The supported file types vary according to products used. For
details, refer to the configuration guide of each product.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 31
Information Shield
To flexibly control information output, the information center provides the
information shield function. You can use commands to configure the type,
severity, and originating module of the information to be output.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 32
Information Center Configuration
Enable the information center.
The information center of VRP is enabled by default.
<RTA>system-view
Enter system view, return user view with Ctrl+Z.
[RTA]info-center enable
Info: Information center is enabled.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 33
Information Output
Operation Command
Output information to the info-center console channel { channel-number | channel-name }
console.
Output information to the info-center monitor channel { channel-number | channel-name }
Telnet terminal or dumb
terminal.
Output information to the info-center snmp channel { channel-number | channel-name }
SNMP agent.
Set the log buffer size and info-center logbuffer [ channel { channel-number | channel-name } |
output information to the log size buffersize ] *
buffer.
info-center loghost ip-address [ channel { channel-number |
Output information to the
channel-name } | facility local-number | language { chinese |
log host.
english } ] *
Set the trap buffer size and info-center trapbuffer [ channel { channel-number | channel-name }
output information to the | size buffersize ] *
trap buffer.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 34
Control Information Output
Command Function Default Value
terminal
Enables terminal display. Disabled
debugging
Enabled for
Enable log, trap, and
console and
terminal monitor debugging information
disabled for
display on terminal.
terminal
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 35
Contents
VRP Architecture
Information Center
File Operation
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 36
VRP File System Overview
The file system manages all files on a device and the
storage devices where the files are stored.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 37
Directory Operation (1)
Display the current directory: pwd
<RTA>pwd
flash:
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 38
Directory Operation (2)
Create a directory: mkdir
<RTA>mkdir test
Info: Create directory flash:/test......Done.
<RTA>dir test
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Sep 27 2011 17:31:40 test
2,540 KB total (2,520 KB free)
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 39
File Operation (1)
Copy a file: copy
<RTA>copy vrpcfg.cfg flash:/test/
Copy flash:/vrpcfg.cfg to flash:/test/vrpcfg.cfg?[Y/N]:y
100% complete
Info: Copied file flash:/vrpcfg.cfg to flash:/test/vrpcfg.cfg...Done.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 40
File Operation (2)
Delete a file: delete
<RTA>delete vrpcfg.cfg
Delete flash:/vrpcfg.cfg?[Y/N]:y
Info: Deleting file flash:/vrpcfg.cfg...succeeded.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 41
File Operation (3)
Display text file content: more
Only text files are displayed.
<RTA>more vrpcfg.cfg
#
sysname RTA
#
……
#
user-interface con 0
user-interface vty 0 4
set authentication password cipher N`C55QK<`=/Q=^Q`MAF4<1!!
user-interface vty 16 20
#
return
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 42
Saving Configuration File
Save the current configurations: save
<RTA>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip] (press Enter)
Now saving the current configuration to the slot 0 .............
Info: Save the configuration successfully.
Save the current configurations using a user-defined name: save xyz.cfg
<RTA>save rta.cfg
Are you sure to save the configuration to flash:/rta.cfg?[Y/N]:y
Now saving the current configuration to the slot 0 ..
Info: Save the configuration successfully.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 43
Displaying and Clearing
Configuration Files
Display the saved configurations: display saved-configuration
<RTA>display saved-configuration
#
sysname RTA
#
……
Clear configuration files: reset saved-configuration
<RTA>reset saved-configuration
The action will delete the saved configuration in the device.
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 44
Specifying the Configuration File
for the Next Startup
The configuration file name extension must be .cfg or .zip.
The system startup file must be stored in the root directory of the storage
device.
<RTA>startup saved-configuration rta.cfg
Info: Succeeded in setting the configuration for booting system.
<RTA>display startup
MainBoard:
Configured startup system software: NULL
Startup system software:
Next startup system software: NULL
Startup saved-configuration file: NULL
Next startup saved-configuration file: flash:/rta.cfg
…….
<RTA>
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 45
File Management on Other Devices
VRP device can work as an FTP/TFTP/SFTP client to
upload/download files
FTP / TFTP / SFTP Server VRP device
IP: 10.0.0.2 FTP / TFTP / SFTP Client
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 46
VRP working as an FTP Server
Enable FTP server function, and configure FTP user
parameters
<Huawei> system-view
Enter system view, return user view with Ctrl+Z.
[Huawei] ftp server enable
Info: Succeeded in starting the FTP server
Info: FTP is insecure, recommended to use SFTP with encryption features.
[Huawei] aaa
[Huawei-aaa] local-user ftp password
Please configure the login password (6-128)
It is recommended that the password consist of at least 2 types of characters, including
lowercase letters, uppercase letters, numerals and special characters.
Please enter password: (Enter the password)
Please confirm password: (Re-Enter the password to confirm)
Info: Add a new user.
[Huawei-aaa] local-user ftp service-type ftp
[Huawei-aaa] local-user ftp ftp-directory flash:
[Huawei-aaa] local-user ftp privilege level 15
[Huawei-aaa]
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 47
VRP working as an FTP/TFTP client
As FTP client
<Huawei>ftp 10.0.0.2
Trying 10.0.0.2 ...
Press CTRL+K to abort
Connected to 10.0.0.2.
220 FTP service ready.
User(10.0.0.2:(none)):ftp (user name)
331 Password required for ftp.
Enter password:(password)
230 User logged in.
[ftp]
As TFTP client
#downloading files from the TFTP server
<Huawei>tftp 10.0.0.2 get vrpcfg_0927.cfg flash:/vrpcfg.cfg
#uploading files to the TFTP server
<Huawei>tftp 10.0.0.2 put vrpcfg.cfg vrpcfg_0928.cfg
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 48
Summary
VRP Overview
Information center
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 49
Questions
Which of the following command is used to cancel a certain
configuration?
A. quit B. undo
C. return D. no
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 50
More Information
Huawei Official Web Sites
Huawei Enterprise: http://enterprise.huawei.com
Copyright © 2014 Huawei Technologies Co., Ltd. All rights reserved. Page 51
Thank you
Thank you
www.huawei.com