Vous êtes sur la page 1sur 45

Training Objective

HUAWEI

Router Configuration Mode

IntroductiontoRouterCom m a n dL i n e
SolutionWhenPasswordIsLost RouterUpgrade BasicOperationCommand

www.huawei.com

Conception and Basic Structure of Router


HUAWEI

Router-----an important network equipment


com p u ter equipm ent used for network interconnection Router m ust have: tw o i n t e r f a c e s o r m o r e protocols reaching network layer at least storing, forwarding and routing function

www.huawei.com

Router Function
HUAWEI

router core function is to implement network interconnection


forwardgroupingdata route(routing):create,refreshandsearchroutetable rate m a tchbetweensubnets isolatenetwork,preventnetworkstorm ,designateaccessrule(firewall) in terconnectdissim ilar network

www.huawei.com

Router Work Flow


HUAWEI

Work Process
Router

router selects protocol


switch

Router

IP
ETH
Remove E n c a p s u l a t i o nEthernet

IP
PPP
Serial Port Protocol Encapsulation

PPP
Serial Port

ETH
Ethernet Interface

Interface

L A N 1
Send

W A N
Transmit

L A N 2
Receive

www.huawei.com

Route Table
HUAWEI

Destination Address

Mask Code

Next Hop Address

0.0.0.0 100.0.0.0 200.0.0.0

0.0.0.0 255.255.255.0 255.255.255.0

10.0.0.1 20.0.0.1 30.0.0.1

IllustrationofRouteTableContents

www.huawei.com

Quidway R1602
HUAWEI

power Power switch socket

Backup Ethernet interface interface

Configuration interface

Synchronous/ asynchronous serial port

Synchronous/ asynchronous serial port

www.huawei.com

Router Configuration
HUAWEI

Configuration via console interface Remote configuration via dial-up Configuration via telnet Configuration via mute terminal Transmit configuration file via ftp

www.huawei.com

Configuration via console Interface


HUAWEI

Construct local configuration environment R232

configuration port configuration cable

www.huawei.com

First Step: Connect Configuration Cable


HUAWEI

Takeoutconfigurationcablebroughtwithrouter.ConnecttheendofRJ45connectortorouter consoleinterface,andconnecttheendof9-pin(or25-pin)RS232interfacetocom p u ter serial port

www.huawei.com

Second Step: Create Hyper Terminal (1)


HUAWEI

Take the "Hyper Terminal" brought with WINDOWS98 for example. Click on "Start" "Programs""Accessories""Communications""Hyper Terminal". After entering "Hyper Terminal" directory, select "Hypertrm", then you can newly creat a "hyper terminal".

www.huawei.com

Second Step: Create Hyper Terminal (2)


HUAWEI

www.huawei.com

Remote Router Configuration via Dial-up Line


HUAWEI

modem

modem
Backup Cable

Connectrouterandcomputerrespectivelytomodem

www.huawei.com

Configure Local Router via Telnet


HUAWEI

www.huawei.com

Configuration via Terminal


HUAWEI

Synchronous/ asynchronous serial port interface

Quidway(config-if-serial 0)#physical-layer async Quidway(config-if-serial 0)#async mode interactive

www.huawei.com

Configuration via FTP


HUAWEI

ftp client 10.110.0.2

Ethernet
1.StartFtpserveronrouter 2. Start client programonterm in a l

ftp server 10.110.0.1

www.huawei.com

Command Line Overview


HUAWEI

C o m m o nu s e rm o d e Privilegeduserm ode G lobal configuration m ode In terface configuration m ode Routeprotocolconfigurationm ode

www.huawei.com

Enter Router Configuration Interface


HUAWEI

console

PressEnterkeytogetstartedwhenyouseeATS0=1. Systemn o wisstarting...A T S 0 = 1 Q u id w a y > e n a b le P a s s w o r d : Q u id w a y # Q u id w a y # d isable Q u id w a y > Q u id w a y >


www.huawei.com

Command List for Common User Mode


HUAWEI

Q u id w a y > ? e n a b l e T u r no np r ivilegedcom m a n d s e x it E x it fromE X E C h e lp Descriptionoftheinteractivehelpsystem l a n g u a g e S w itchl a n g u a g em o d e( E n g l ish,Chinese) p in g S e n de c h om e s s a g e s s h o w S h o wr u n n ingsystemin form a tion telnet Connectrem otecom p u ter tracert Traceroutetodestination

www.huawei.com

Command List for Privileged User Mode


HUAWEI

Q u id w a y > e n a b le P a s s w o r d : Q u id w a y # ? clear Resetfunctions clock M a n a g ethesystemclock c o n figure Enterconfigurationm o d e d e b u g D e b u g g in gfu n c tion s d isable Turnoffprivilegedcom m a n d s d o w n l o a d D o w n l o a dt h en e wv e r s ionsoftw a re a n dc o n fig erase Erasetheconfigurationinflashm e m o ry ---- More(PressCTRL_Ctobreak)---www.huawei.com

Command List for Global User Mode


HUAWEI
Quidway>configure Quidway#? aaa-enable Enable AAA(Authentication, Authorization and Accounting) access-list Configure structure of access-list arp Set a static ARP entry chat-script Define a modem chat script crypto Config IPSec or crypto map custom-list Build the custom queue list dialer-list Create a dialer-list dlsw Configure dlsw dram-wait Insert dram wait state enable Modify enable password parameters exit Exit from configure mode firewall Configure firewall status flow-interval set time of flow control frame-relay global frame relay configuration commands ftp-server File transfer Protocol help Description of the interactive help system host Add host's name and IP address hostname Modify hostname ifquelen Change interface queue length interface Select an interface to configure ip Global ip configuration subcommands ipx Novell IPX global configuration commands logging Logging configuration commands logic-channel Select a logic-channel to configure ------ More (Press CTRL_C to break) ------ P :

www.huawei.com

Command List for Interface Mode


HUAWEI Quidway>interface E 0 Quidway# ? backup Modify dial-backup parameters bridge-group Join into DLSw Bridge-group crypto Apply crypto map to interface custom-group Assign a custom queue list to an interface description Ethernet interface specific description duplex Configure duplex operation mode exit Exit from config interface mode help Description of the interactive help system ip Interface Internet Protocol configure command ipx Novell IPX interface subcommands llc2 Modify LLC2 parameters loopback Configure internal loopback on an interface mtu Set ethernet interface Maximum Transmission Unit(MTU) nat Network Address Translator no Negate a command or set its defaults priority-group Assign a priority queue list to an interface send-frame-type Set the format of the sending frames shutdown Shutdown the selected interface standby Hot standby router config

www.huawei.com

Help Online
HUAWEI

Q u id w a y # h e lp H e lpm a yb er e q u e s t e da ta n yp o in t inac o m m a n db y e n tering aquestion m a rk '?'. If nothin gm a tches,the h e lp list w ill b ee m p ty. Twostylesofhelpareprovided: 1.Fullhelpisavailable whenyouarereadytoentera com m a n da rgum e n t(e.g.'show? ')anddescribes e a c h possibleargum e n t. 2.Partialhelpisprovidedw h e na na b b r e v iated a r g u m e n tisentered a n dy o uw a n ttoknoww h a t a r g u m e n tsm a tch theinput(e.g.'shows n ? ' ).

www.huawei.com

HUAWEI

Command Line Error Message


Quidway#show Incorrect command Quidway#show Incomplete command Quidway#show interface serial 0 Too many parameters

www.huawei.com

History Command
HUAWEI

Quidway#show history
enable config int s0 exit

<ctrl><p> OR <ctrl><o> OR

previous history record next history record

www.huawei.com

Edit Characteristics
HUAWEI

Common keypress Input character to current cursor position BackSpace Delete character previous to cursor position Delete Delete character at cursor position Left cursor key Cursor moves a character posision leftwards Right cursor key Cursor moves a character posision rightwards Up & down cursor key Display history command

www.huawei.com

Display Characteristics
HUAWEI

Language Key in 'Ctrl+c' at display pause Key in space bar at display pause Key in Enter at display pause

Chinese/English display switchover Stop display and command execution Continue to display next screen informaton Continue to display next line information

www.huawei.com

How to do When Password is Forgot?


HUAWEI

1.Ispasswordforenteringprivilegedm ode forgot?

I forget password, and I can not configure router

www.huawei.com

Router Upgrade
HUAWEI

1.Upgradeviaconsoleinterface 2.UpgradeviaFtp 3.UpgradeviaTftp

More function and more simpler configuration

www.huawei.com

Upgrade Router via Console Interface


HUAWEI

console

Q u id w a y # Q u id w a y # Q u id w a y # r e b o o t W A R N IN G :Systemw ill R E B O O T !C o n tin u e? [Y /N ]y

www.huawei.com

HUAWEI

Upgrade Router via Console Interface (Continue)


console

B o o tM e n u : 1: Downloadapplicationprogram 2: DownloadBootromp rogram 3: M o d ify Bootromp a s s w o r d 4: Exitthem e n u 5: Reboot E n teryourchoice(1-5):1

www.huawei.com

HUAWEI

Upgrade Router via Console Interface (Continue)


console

Boot Menu: 1: D o w n load application program 2: D o w n load Bootrom program 3: Modify Bootrom password 4: Exit the menu 5: Reboot Enter your choice(1-5): 1
www.huawei.com

HUAWEI

Upgrade Router via Console Interface (Continue)

www.huawei.com

HUAWEI

Upgrade Router via Console Interface (Continue)

www.huawei.com

Upgrade Router via FTP


HUAWEI

ftp client 10.110.0.2

Ethernet

ftp server 10.110.0.1

www.huawei.com

Upgrade Router via Tftp


HUAWEI

ftp client 10.110.0.2

Ethernet

ftp server 10.110.0.1

www.huawei.com

Upgrade Router via Tftp


HUAWEI

BootMenu: 1: Download application program with XMODEM 2: Download application program with TFTP 3: Clear application password 4: Clear configuration 5: Exit and reboot Enter your choice(1-5): 2

www.huawei.com

Basic Operation Command


HUAWEI

Command to view system status and system information:show Debug command:debug,monitor Test tool:ping,tracert

www.huawei.com

Commonly-used Command show


HUAWEI

show version show running-config show interface

www.huawei.com

show version
HUAWEI

Q u id w a y # s h o wv e r s ion Q u id w a yS e r ie s1 6 0 0R o u t e rS o ftw a reVersionV R P 1 .2 -Feb19 2000-05:29:51 Copyrig h t( c )1 9 9 7 2 0 0 0S H E N Z H E NH U A W E IT E C HC O .,L T D .hardwareversionis

1.0

www.huawei.com

show running-config
HUAWEI

h u a w e i-bj(config)#showr u n n ing-config C u rrentconfiguration hostnam eh u a w e i-bj ! in terfaceEthernet0 ipaddress100.10.110.1255.255.0.0 ! in terfaceSerial0 encapsulationppp ipaddress11.1.1.2255.255.255.252 e x it iproute10.110.0.0255.255.0.011.1.1.1preference60 ! e n d
www.huawei.com

show interface: display interface information


HUAWEI

huawei-bj(config)#show interface serial 0 Serial0 is up, line protocol is up physical layer is synchronous, baudrate is 64000 bps interface is DCE, clock is DCECLK, cable type is RS232 Internet address is 11.1.1.2 255.255.255.252 Encapsulation is PPP LCP opened, IPCP opened, IPXCP initial 5 minutes input rate 52.63 bytes/sec, 0.96 packets/sec 5 minutes output rate 60.00 bytes/sec, 1.19 packets/sec Input queue is 0/75/0 (current/max/drops) Queueing strategy: FIFO Output Queue :(size/max/drops) 0/75/0 539 packets input, 24907 bytes, 0 no buffers 670 packets output, 29586 bytes, 0 no buffers 0 input errors, 0 CRC, 0 frame errors 0 overrunners, 0 aborted sequences, 0 input no buffers DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP

www.huawei.com

Debug Commond: debug, Logging


HUAWEI

debug logging console debugging logging monitor debugging

www.huawei.com

ping: test tool


HUAWEI

#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=1 ttl=255 time = 31 ms Reply from 11.1.1.1: bytes=56 Sequence=2 ttl=255 time = 32 ms Reply from 11.1.1.1: bytes=56 Sequence=3 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

www.huawei.com

tracert: test tool


HUAWEI

huawei-bj#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

www.huawei.com

Emphasis of This Chapter


HUAWEI

Operatingprincipleofrouter C o n figurelocalandremoterouterviaconsoleinterface D ifferentiationbetweencom m onusermodeandprivilegedusermode Upgraderouter C o m m o n ly-usedroutercommandsandsmalltools

www.huawei.com

Vous aimerez peut-être aussi