0% found this document useful (0 votes)
150 views18 pages

Navigating The CLI: Huawei Technologies Co., LTD

Uploaded by

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

Navigating The CLI: Huawei Technologies Co., LTD

Uploaded by

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

Navigating The CLI

HUAWEI TECHNOLOGIES CO., LTD.


Foreword

The implementation of Huawei devices in an enterprise network requires


a level of knowledge and capability in the navigation of the VRP
command line interface, and configuration of system settings. The
principle command line architecture is therefore introduced as part of this
section along with navigation, help functions and common system
settings that are required to be understood for the successful
configuration of any VRP managed device.

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 2
Objectives

Upon completion of this section, trainees will be able to:


 Navigate the VRP command line interface.

 Configure basic VRP system settings.

 Perform basic VRP interface configuration and management.

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 3
Starting A Device

BIOS
BIOS Creation
Creation Date
Date :: Jan
Jan 55 2013,
2013, 18:00:24
18:00:24
DDR
DDR DRAM
DRAM init
init :: OK
OK
Start
Start Memory
Memory Test
Test ?? ('t'
('t' or
or 'T'
'T' is
is test):skip
test):skip
Copying
Copying Data
Data :: Done
Done
Uncompressing
Uncompressing :: Done
Done
……
……
Press
Press Ctrl+B
Ctrl+B to
to break
break auto
auto startup
startup ...
... 11
Now
Now boot
boot from
from sd1:/AR2220-V200R003C00SPC200.cc,
sd1:/AR2220-V200R003C00SPC200.cc,
……
……
<Huawei>
<Huawei>
Warning:
Warning: Auto-Config
Auto-Config is
is working.
working. Before
Before configuring
configuring the
the device,
device,
stop
stop Auto-Config.
Auto-Config. If
If you
you perform
perform configurations
configurations when
when Auto-Config
Auto-Config is
is
running,
running, the
the DHCP,
DHCP, routing,
routing, DNS,
DNS, and
and VTY
VTY configurations
configurations will
will be
be
lost.
lost. Do
Do you
you want
want to
to stop
stop Auto-Config?
Auto-Config? [y/n]:Y
[y/n]:Y

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 4
CLI Command Line Views

View the running status


User View
and statistics of the device.

System View Set the system parameters


of the device

Interface View Configure interface


parameters

Protocol View Configure most routing


protocol parameters.

<Huawei>system-view
<Huawei>system-view
Enter
Enter system
system view,
view, return
return user
user view
view with
with Ctrl+Z.
Ctrl+Z.
[Huawei]interface
[Huawei]interface GigabitEthernet
GigabitEthernet 0/0/0
0/0/0
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 5
CLI Functions

Command Function

CTRL+A Moves the cursor to the beginning of the current line.

CTRL+C Stops performing current functions.

CTRL+Z Returns to the user view.

CTRL+] Stops incoming connections or redirects the connections.

<Huawei>system-view
<Huawei>system-view
Enter
Enter system
system view,
view, return
return user
user view
view with
with Ctrl+Z.
Ctrl+Z.
[Huawei]^z
[Huawei]^z //Ctrl+Z
//Ctrl+Z
<Huawei>
<Huawei>

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 6
CLI Functions

Command Function

Deletes the character on the left of the cursor, and moves the
Backspace
cursor to the left.

← or Ctrl+B Moves the cursor a single character space to the left.

→ or Ctrl+F Moves the cursor a single character space to the right.

TAB Completes any incomplete keyword that is entered.

[Huawei]inter
[Huawei]inter //TAB
//TAB
[Huawei]interface
[Huawei]interface

 The tab key will auto-complete an entered character string

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 7
CLI Help Features

<Huawei> d?
Partial Help
<Huawei> display h?
Command Line H elp
<Huawei> ?
Complete Help

<Huawei> display ?

[Huawei]d?
[Huawei]d?
ddns
ddns dhcp
dhcp
dhcpv6
dhcpv6 diagnose
diagnose
display
display dns
dns
domain
domain dot1x
dot1x

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 8
CLI Basic Device Setup

Command Function

sysname Configures the Device Name

<Huawei>system-view
<Huawei>system-view
Enter
Enter system
system view,
view, return
return user
user view
view with
with Ctrl+Z.
Ctrl+Z.
[Huawei]sysname
[Huawei]sysname RTA
RTA
[RTA]
[RTA]

 The system name should be assigned to uniquely identify each


device within an enterprise network.
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 9
CLI Clock Settings

Command Function

clock timezone Sets the time zone.

clock datetime Sets the current time and date.

clock daylight-saving-time Sets the daylight saving time.

<Huawei>clock
<Huawei>clock timezone
timezone BJ
BJ add
add 08:00:00
08:00:00
<Huawei>clock
<Huawei>clock datetime
datetime 10:20:29
10:20:29 2013-04-11
2013-04-11
<Huawei>display
<Huawei>display clock
clock
2013-04-11
2013-04-11 10:20:48
10:20:48
Thursday
Thursday
Time
Time Zone(BJ)
Zone(BJ) :: UTC+08:00
UTC+08:00

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 10
CLI Header Messages

Command Function

Sets the header that is displayed on a terminal when a user is


header login
authenticated by a device
Sets the header that is displayed on a terminal after the user logs
header shell
into the device.

[Huawei]header
[Huawei]header login
login information
information "welcome
"welcome to
to huawei
huawei certification!"
certification!"
[Huawei]header
[Huawei]header shell
shell information
information "Please
"Please don't
don't reboot
reboot the
the device!"
device!"
……
……
welcome
welcome to
to huawei
huawei certification!
certification!
Login
Login authentication
authentication
Password:
Password:
Please
Please don't
don't reboot
reboot the
the device!
device!
<Huawei>
<Huawei>

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 11
CLI Command Levels

User Level Command Level Name

0 0 Visit level

1 0 and 1 Monitoring level

2 0,1 and 2 Configuration level

3-15 0,1,2 and 3 Management level

<Huawei>
<Huawei> system-view
system-view
[Huawei]command-privilege
[Huawei]command-privilege level
level 33 view
view user
user save
save

 Privilege levels manage user access to commands.

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 12
CLI User Interfaces

User Interface Relative Number

Console 0

VTY 0-4

<Huawei>system-view
<Huawei>system-view
[Huawei]user-interface
[Huawei]user-interface vty
vty 00 44
[Huawei-ui-vty0-4]
[Huawei-ui-vty0-4]

 The VTY number can be extended to a range of 0-14 for


additional Telnet/SSH user connections.
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 13
CLI Terminal Attributes

Command Function

idle-timeout Sets the timeout duration of the user connection.

Sets the number of lines displayed on each terminal screen


screen-length
after a command is executed.
history-command
Sets the size of the history command buffer.
max-size

## Set
Set the
the size
size of
of the
the history
history command
command buffer
buffer to
to 20.
20.
<Huawei>system-view
<Huawei>system-view
[Huawei]user-interface
[Huawei]user-interface console
console 00
[Huawei-ui-console0]history-command
[Huawei-ui-console0]history-command max-size
max-size 20
20
## Set
Set the
the timeout
timeout duration
duration to
to 11 minute
minute and
and 30
30 seconds.
seconds.
[Huawei-ui-console0]idle-timeout
[Huawei-ui-console0]idle-timeout 11 30
30

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 14
CLI Interface Permissions

Command Function

user privilege Configures the user level.

set authentication password Configures a local authentication password.

## Set
Set the
the user
user level
level on
on the
the VTY0
VTY0 user
user interface
interface to
to 2.
2.
<Huawei>system-view
<Huawei>system-view
[Huawei]user-interface
[Huawei]user-interface vty
vty 00
[Huawei-ui-vty0]user
[Huawei-ui-vty0]user privilege
privilege level
level 22
[Huawei-ui-vty0-4]set
[Huawei-ui-vty0-4]set authentication
authentication password
password cipher
cipher huawei
huawei

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 15
CLI Interface Configuration

RTA RTB

10.0.12.1/24
1.1.1.1/32
G0/0/0 G0/0/0

# Configure an IP address of 10.0.12.1/24 on interface G0/0/0


and an IP address of 1.1.1.1/32 on loopback interface 0.
<Huawei>system-view
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.0.12.1 255.255.255.0
[Huawei-GigabitEthernet0/0/0]interface loopback 0
[Huawei-LoopBack0]ip address 1.1.1.1 32

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 16
Summary

 How many users are able to connect via the console interface at any
given time?
 What is the state of the loopback interface 0 when the command
loopback interface 0 is used?

Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 17
Thank you
www.huawei.com

You might also like