2) VRP Basic Configuration
2) VRP Basic Configuration
www.huawei.com
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page1
Contents
1. Building Configuration Environment
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page2
Building Configuration Environment
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.
Router
PC
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
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page8
Contents
1. Building Configuration Environment
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page9
Command View
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page10
Command Level
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page11
Enter and Quit System View
operation command
<Quidway> d?
portion help
<Quidway> display h?
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page13
Language Mode
operation command
<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
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
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
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
With NONE the user can log in to the NE directly without being authenticated.
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
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!
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)
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page32
Transferring Files Through FTP
An FTP user must be created in the aaa view configuring the ftp
directory for this user and the ftp service.
[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 device Check the system information and the startup time
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
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page35
Thank you
www.huawei.com