You are on page 1of 26

Internal

Configuration Basis
NE40/80/5000E Routers

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


 Upon completion of this course, you will be able
to:
 Configure middle end routers
 Use command line and popular commands
 Upgrade systems

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 2


Chapter 1 Methods to Configure Routers

Chapter 2 Command Line

Chapter 3 Popular Commands

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 3


Configure Routers
 Configure routers via Console interface

 Configure routers via Telnet

 Configure routers via AUX interface

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 4


Configure via Console Interface

Console Interface

R232 Serial
Interface
Console Cable
 Build up configure environment:

 Get out the console cable


 Join the RJ45 end to the Console interface of router
 Join the DB-9(or DB-25) end to the serial interface of computer
 Enter in a terminal console software (eg. Tera term, Hyperterminal)
 Define baudrate for 9600bps

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 5


Configure Routers via Telnet

PC E1/0/5
LAN

You may telnet to the router through a LAN or WAN, provided that:
 This is not the first power-on.

 You have correctly configured the IP addresses of the interface.

 You have appropriately configured authentication at login and incoming/outgoing


call restriction rules.

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6


Configure Remote Routers via Modem

Connect computer and modem, so as router and modem

AUX Port

PSTN/ISDN

Modem Modem

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7


Chapter 1 Methods to Configure Switches

Chapter 2 Command Line

Chapter 3 Popular Commands

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8


Command View
 Command line has several command views, each command is
registered in a certain command view. Only in this command view,
you can execute this command.
 User view
 System view
 Interface view
 Protocol view

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 9


Relationship between Command Views
Ethernet interface view
ATM interface view ATM-PVCview
Pos interface ATM view
VTY view RIP VPN address
PVC view family view
user view system view RIP view
OSPF view OSPF area view
BGP view
ISIS view MBGP VPNv4
Routing policy view MBGP VPN
Policy view MBGP multicast
PIM view
MSDP view
LDP view
VPN instance view
MPLS view
MPLS-LDP view
MPLS-L2VPN view

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10


Command Line — User View
<Quidway> ?
User view commands:
cd Change the current path
clock Specify the system clock
compare Compare function
copy Copy the file
delete Delete the file
display Display current system information
dir Display the file list in system
pwd Display the current path
reboot Reboot system
---- More ----

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11


Command Line — System View
<Quidway> system-view
[Quidway] ?
System view commands:
acl Specify acl configuration information
display Display current system information
interface Enter the interface configuration mode
ospf Enter the ospf configuration mode
rip Enter the rip configuration mode
sysname Specify the host name
undo Cancel current setting
---- More ----

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 12


Command Line — Ethernet Interface View
[Quidway] interface Ethernet 0/2/0
[Quidway-Ethernet0/2/0] ?
Ethernet interface view commands:
apdp ARP proxy configuration command
backup Backup nexthop
igmp Specify parameters of IGMP
ip IP configuration commands in an interface
isis Specify interface parameters for ISIS
mpls Specify MPLS configuration information
speed Set ethernet speed.
---- More ----
[Quidway-Ethernet0/1] quit

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13


Command Line — Protocol View
[Quidway] ospf
[Quidway-ospf] area
[Quidway-ospf] area 1
[Quidway-ospf-area-0.0.0.1] ?
Ospf-area protocol view commands:
area Enter ospf area view
nssa Specify an NSSA (Not so stubby area)
stub Specify a STUB area
vlink-peer Specify a virtual link and the parameters
---- More ----
[Quidway-ospf-area-0.0.0.1] quit

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 14


Level of Command

Visit level

Monitor level

Configure level

Manage level

Ex:
[Quidway-aaa] local-user huawei level {0-3}

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 15


Help On-line
 In each command view, you can get all the commands and their
simple description by typing “?”
<Quidway> ?

 Input a string, following “?”, system will give all the commands start
with this string.
<Quidway> d?
debugging delete dir display

 Inputting first part of a command and type <tab>, system will give
the whole command— there is no other meanings of course.

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 16


Chapter 1 Methods to Configure Switches

Chapter 2 Command Line

Chapter 3 Popular Commands

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 17


Basics Configurations

 Name devices

[Quidway] sysname NE40.1


[NE40.1]
 Configure the IP address

[Quidway] interface ethernet 2/2/0


[Quidway-Ethernet2/2/0] ip address 10.10.0.1 255.255.255.0
[Quidway-Ethernet2/2/0] quit

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 18


Basics Configurations – Telnet Access

PC E1/0/5

[Quidway] aaa
LAN
[Quidway-aaa] local-user huawei password simple huawei
[Quidway-aaa] local-user huawei service-type telnet
[Quidway-aaa] local-user huawei level 3
[Quidway] user-interface vty 0 4
[Quidway] quit
[Quidway-ui-vty0-4] authentication-mode { aaa/password/none }
[Quidway-ui-vty0-4] set authentication password { cipher | simple } huawei

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 19


Command Line – File System
 View information about the file or directory

<Quidway> dir
 Change current directory working

<Quidway> cd
 Create a directory

<Quidway> mkdir name-directory


 Delete file

<Quidway> delete file-path


 Remove directory

<Quidway>rmdir

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 20


Command Line – Operation Systems

 Reset router

<Quidway> reboot
Save the current configuration
<Quidway> save {name.cfg}
 Erase the configuration that has been saved

<Quidway> reset saved-configuration


 Enable the log debbuging

<Quidway> terminal monitor

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 21


Command Line – Debug Commands
 Display the debugging information on the terminal

<Quidway> terminal debugging


 Enable the system debugging

<Quidway> debugging {module-name}

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22


Basic Operate Command

 Show system state & system information: display

 Test tools:ping, tracert

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 23


Show system state & system information:
 View current configuration

<Quidway> display current-configuration


 View system startup files

<Quidway> display startup


 View saved configuration

<Quidway> display saved-configuration


 View interface status

<Quidway> display interface {type} {number}


 View system versions

<Quidway> display version

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 24


Test Tool
[Quidway] ping 11.1.1.1
PING 11.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 11.1.1.1: bytes=56 Sequence=0 ttl=255 time = 31 ms

Reply from 11.1.1.1: bytes=56 Sequence=4 ttl=255 time = 31 ms
--- 11.1.1.1 ping statistics ---
5 packets transmitted
5 packets received
0.00% packet loss
round-trip min/avg/max = 31/31/32 ms
[Quidway] tracert 10.110.201.186
traceroute to 10.110.201.186(10.110.201.186) 30 hops max,40 bytes packet
1 11.1.1.1 29 ms 22 ms 21 ms
2 10.110.201.186 38 ms 24 ms 24 ms

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 25


Thank You
www.huawei.com

Huawei Confidential. All Rights Reserved

You might also like