ZTE ZXR10 User Manual

4.8 (4)

ZXR10

Router/Ethernet Switch

Command Manual (Basic Configuration Volume I)

Version 4.8.22

ZTE CORPORATION

ZTE Plaza, Keji Road South, Hi-Tech Industrial Park, Nanshan District, Shenzhen, P. R. China

518057

Tel: (86) 755 26771900

Fax: (86) 755 26770801

URL: http://ensupport.zte.com.cn E-mail: support@zte.com.cn

LEGAL INFORMATION

Copyright © 2006 ZTE CORPORATION.

The contents of this document are protected by copyright laws and international treaties. Any reproduction or distribution of this document or any portion of this document, in any form by any means, without the prior written consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by contractual confidentiality obligations.

All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE CORPORATION or of their respective owners.

This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions are disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose, title or non-in- fringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the use of or reliance on the information contained herein.

ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications covering the subject matter of this document. Except as expressly provided in any written license between ZTE CORPORATION and its licensee, the user of this document shall not acquire any license to the subject matter herein.

ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.

Users may visit ZTE technical support website http://ensupport.zte.com.cn to inquire related information.

The ultimate right to interpret this product resides in ZTE CORPORATION.

Revision History

Revision No.

Revision Date

Revision Reason

 

 

 

R1.0

Dec. 28, 2008

First Edition

 

 

 

Serial Number: sjzl20086528

About This Manual..............................................

i

Command Introduction .....................................

1

Manual Use Guide...........................................................

1

Description of Man-Machine Commands.............................

1

Auxiliary Function...........................................................

2

Command Mode .............................................................

3

Basic System Management................................

7

auto-download config......................................................

8

banner incoming ............................................................

8

boot config-file...............................................................

9

clock set........................................................................

9

clock timezone ..............................................................

10

configure terminal .........................................................

10

disable.........................................................................

11

enable .........................................................................

11

enable secret ................................................................

12

end .............................................................................

13

exit .............................................................................

13

flah-protect power-off ....................................................

14

hostname.....................................................................

14

help message................................................................

15

more ...........................................................................

15

multi-user configure.......................................................

16

nvram boot-password ....................................................

17

nvram boot-server.........................................................

17

nvram boot-username....................................................

18

nvram default-gateway ..................................................

18

nvram imgfile-location....................................................

19

nvram mng-ip-address...................................................

20

privilege.......................................................................

20

reload..........................................................................

21

service password-encryption ...........................................

21

show auto-download-config ............................................

22

show clock....................................................................

22

show diagnostic information............................................

22

show privilege...............................................................

27

show running-config ......................................................

27

show start running-config...............................................

28

show system-group .......................................................

29

show username.............................................................

29

show users ...................................................................

29

show user-group ...........................................................

30

show version ................................................................

30

show version hardware...................................................

30

show version mec..........................................................

31

show version midplane...................................................

32

show version npc...........................................................

32

show version software....................................................

32

show version sfc............................................................

33

show version upc...........................................................

33

username.....................................................................

34

user-group ...................................................................

34

who.............................................................................

35

File System Management.................................

37

cd ...............................................................................

37

check dev-using ............................................................

38

copy ............................................................................

39

delete ..........................................................................

39

dir...............................................................................

40

format .........................................................................

41

mkdir...........................................................................

41

pwd.............................................................................

42

rename ........................................................................

42

rmdir ...........................................................................

43

show flash-check...........................................................

43

unmount ......................................................................

44

update-imgfile...............................................................

44

write............................................................................

45

write flash ....................................................................

45

write imgfile .................................................................

46

write nvram..................................................................

47

User Interface Management............................

49

answer-manual .............................................................

49

answer-remote..............................................................

50

line console 0................................................................

50

line console absolute-timeout..........................................

50

line console idle-timeout.................................................

51

line telnet absolute-timeout ............................................

51

line telnet access-class...................................................

52

line telnet idle-timeout ...................................................

52

login............................................................................

53

login authentication .......................................................

53

logout..........................................................................

54

quit .............................................................................

54

session ........................................................................

54

show console-info..........................................................

54

show history .................................................................

55

show terminal ...............................................................

55

telnet...........................................................................

56

telnet mng....................................................................

56

terminal length .............................................................

57

user-authentication-type ................................................

57

user-authorization-type..................................................

57

System Log/Statistics Management ................

59

alarm...........................................................................

60

alarm cpuload-interval ...................................................

60

alarm cpuload-on ..........................................................

61

alarm cpuload-threshold.................................................

61

alarm level-change ........................................................

62

check...........................................................................

62

clear logging.................................................................

63

clear processor..............................................................

63

cpuload-threshold..........................................................

63

environ ........................................................................

64

filter ............................................................................

64

logging alarmlog-interval................................................

65

logging buffer ...............................................................

65

logging cmd ftp.............................................................

66

logging cmdlog-interval..................................................

66

logging console .............................................................

67

logging filesavetime.......................................................

67

logging filter-map..........................................................

68

logging ftp....................................................................

69

logging level .................................................................

70

logging mode................................................................

70

logging nat ftp ..............................................................

71

logging on ....................................................................

71

logging synchronize .......................................................

72

logging timestamps .......................................................

72

logging trap-enable........................................................

72

memory-threshold.........................................................

73

show alarm-level...........................................................

73

show logfile ..................................................................

74

show logging alarm........................................................

74

show logging configure...................................................

75

show processor .............................................................

75

show processor details ...................................................

77

show temperature .........................................................

77

syslog-server facility ......................................................

78

syslog-server host .........................................................

79

syslog-server source......................................................

80

temper-threshold ..........................................................

80

write ...........................................................................

81

write cmdlog.................................................................

82

write logging.................................................................

82

FTP/TFTP Server .............................................

83

copy(FTP Client)............................................................

83

copyTFTP Client.......................................................

84

ftp-server enable...........................................................

84

ftp-server tick-user........................................................

84

ftp-server top-directory..................................................

85

ip ftp password .............................................................

85

ip ftp username.............................................................

86

show ftp-server.............................................................

86

show ftp-server-user......................................................

86

IPV4 Basic Protocols .......................................

89

address........................................................................

90

arp timeout ..................................................................

91

clear arp ......................................................................

91

clear ip traffic-statistics ..................................................

92

clear tcp connect ...........................................................

92

clear tcp line.................................................................

93

clear tcp statistics..........................................................

93

clear tcp tcb..................................................................

93

clear tcp tty..................................................................

93

clear tcp vty .................................................................

94

detect loop-time............................................................

94

detect option ................................................................

94

detect try-times ............................................................

95

detcet time-out .............................................................

95

detect-group.................................................................

96

detect-list.....................................................................

96

ip address ....................................................................

97

ip forwarding-mode .......................................................

97

ip load-sharing..............................................................

98

ip local policy route-map ................................................

99

ip mtu..........................................................................

99

ip policy route-map......................................................

100

ip proxy-arp................................................................

100

ip redirect...................................................................

101

ip route......................................................................

101

ip source-route ...........................................................

102

ip stream cache...........................................................

103

ip stream enable .........................................................

104

ip stream export..........................................................

104

ip tcp finwait-time .......................................................

105

ip tcp queuemax .........................................................

106

ip tcp synwait-tim........................................................

106

ip tcp window-size .......................................................

107

ip unnumbered............................................................

107

ip unreachable ............................................................

108

netflow-sample-rate.....................................................

108

ntp authenticate..........................................................

109

ntp authentication-key .................................................

109

ntp enable..................................................................

110

ntp server ..................................................................

110

ntp source..................................................................

111

ntp trusted-key ...........................................................

111

ping...........................................................................

111

ping mng....................................................................

113

ping mpls ...................................................................

113

set arp.......................................................................

114

show arp....................................................................

115

show detect-group.......................................................

116

show ip forwarding ......................................................

117

show ip protocol routing ...............................................

117

show ip protocol routing summary .................................

118

show ip route..............................................................

118

show ip traffic .............................................................

119

show ntp status...........................................................

120

show tcp ....................................................................

120

show tcp brief .............................................................

121

show tcp config ...........................................................

121

show tcp line ..............................................................

121

show tcp statistics .......................................................

122

show tcp tcb ...............................................................

122

show tcp tty................................................................

123

show tcp vty...............................................................

124

show vlan-forwarding...................................................

124

trace..........................................................................

125

trace mpls ..................................................................

125

vlan arp-mode ............................................................

126

vlan-forwarding...........................................................

127

About This Manual

Purpose This manual provides procedures and guidelines that support the operation of ZXR10 router and Ethernet switch.

Intended

Audience

What Is in This

Manual

This manual is intended for engineers and technicians who perform operation activities on ZXR10 router and Ethernet switch.

This manual contains the following chapters:

Chapter

Summary

 

 

Chapter 1, Command

This describes the use method of the

Introduction

command manual, command description,

 

format convention, auxiliary function and

 

mode.

 

 

Chapter 2 Basic System

Describes the basic system management

Management

commands, including the configuration and

 

viewing commands

 

 

Chapter 3 File System

Describes the operation and management

Management

commands for the file system

 

 

Chapter 4 User Interface

Describes the operation and management

Management

commands for the user interfaces

 

 

Chapter 5 System

Describes the operation and management

Log/Statistics

commands for the system log and statistics

Management

 

 

 

Chapter 6 FTP/TFTP

Describes the operation and management

Server

commands for the FTP/TFTP server

 

 

Chapter 7 IPV4 Basic

Describes the configuration and view

Protocols

commands of IPV4 basic protocols,

 

including the ARP, IP, TCP, DHCP, NAT and

 

VRRP

 

 

Related The following documentation is related to this manual: Documentation ZXR10 Router/Ethernet Switch Command Manual (Command

Index Volume)

ZXR10 Router/Ethernet Switch Command Manual (Ethernet Switch Volume)

ZXR10 Router/Ethernet Switch Command Manual (Basic Configuration Volume II)

ZXR10 Router/Ethernet Switch Command Manual (Basic Configuration Volume III)

ZXR10 Router/Ethernet Switch Command Manual (Remote Access Volume)

ZXR10 Router/Ethernet Switch Command Manual (IPv4 Routing Volume I)

Confidential and Proprietary Information of ZTE CORPORATION i

ZXR10 Command Manual (Basic Configuration Volume I)

ZXR10 Router/Ethernet Switch Command Manual (IPv4 Routing Volume II)

ZXR10 Router/Ethernet Switch Command Manual (MPLS Volume)

ZXR10 Router/Ethernet Switch Command Manual (QoS Volume)

ZXR10 Router/Ethernet Switch Command Manual (Security Volume)

ZXR10 Router/Ethernet Switch Command Manual (Network Management Volume)

ZXR10 Router/Ethernet Switch Command Manual (Multicast Volume)

ZXR10 Router/Ethernet Switch Command Manual (IPv6 Volume)

ZXR10 Router/Ethernet Switch Command Manual (Voice and Video Service Volume)

ii Confidential and Proprietary Information of ZTE CORPORATION

Chapter 1

Command Introduction

Table of Contents

 

Manual Use Guide...............................................................

1

Description of Man-Machine Commands.................................

1

Auxiliary Function...............................................................

2

Command Mode .................................................................

3

Manual Use Guide

The commands in other volumes are classified by functional modules, and each functional module corresponds to a chapter and the commands in the chapter are organized in the form of level 2 directory and in the order of a–z.

To search a command, do as follows:

1.Find the desired command by referring to ZXR10 Router/Ethernet Switch Command Manual — Command Index.

2.Find command details by the volume, chapter/section and page of the obtained command.

Description of Man-Machine

Commands

Each MML command is described by the following items:

Function

It describes the function implemented by this command.

Command Mode

It describes the mode in which this command can be executed.

Format

It describes the complete format of this command, including the no format if possible.

Parameter Description

It describes parameters in this command in the form and prescribes the range and default value. If different products have

Confidential and Proprietary Information of ZTE CORPORATION 1

ZXR10 Command Manual (Basic Configuration Volume I)

different parameter ranges or default values, an additional form is used for description.

Default

The default value is available in the case that this command is not set. The default parameter value is not described here for value selection.

Additional description shall be given if different products have different default values.

Instructions

First describes the platform version information about this command. For example, “The platform version X.X.XX or later supports this command” indicates this command is provided from the beginning of the platform version X.X.XX. This command is provided from the platform version 2.6 by default.

Second describes the use method and precautions of this command.

Example

It describes the use of this command in an example.

Related Commands

Lists the command(s) related to this command.

History Command

It describes history version information related to this command if a command is changed after version upgrade.

Do not describe the history command if this entry does not exist.

Auxiliary Function

The auxiliary function for ZXR10 devices is as follows.

1.In any command mode, enter a question mark (?) after the DOS prompt of the system, a list of available commands in the command mode will be displayed. With the context-sensitive help function, the keywords and parameter lists of any commands can be obtained.

i.In any command mode, enter a question mark "?" after the DOS prompt of the system, and a list of all commands in the mode and the brief description of the commands will be displayed.

ii.Input the question mark behind a character or character string to view the list of commands or keywords beginning with this character or character string. Note that there is no space between the character (string) and the question mark.

iii.Press TAB behind the character string. If the command or keyword beginning with this character string is unique, it shall be completed with a space at the end. Note that there is no space between the character string and the TAB.

2 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 1 Command Introduction

iv.Input a question mark after a command, a keyword or a parameter, the next keyword or parameter to be input will be listed, and also a brief explanation will be given. Note that a space must be entered before the question mark.

2.If incorrect command, keyword or parameter is input, the error isolation is offered with ^ in the user interface after you press ENTER. The ^ is below the first character of the input incorrect command, keyword or parameter.

3.ZXR10 router/Ethernet switch allows the command or keyword to be abbreviated into a character or character string that uniquely identifies this command or keyword. For example, the show command can be abbreviated to sh or sho.

4.The user interface supports the function of recording input commands. A maximum of ten history commands can be recorded. The function is very useful in re-invocation of a long or complicated command or ingress.

To re-invoke a command from the record buffer, conduct one of the following operations, as shown below.

Command

Function

 

 

Press CTRL-P or the

Re-invokes the latest command in the

up arrow key

record buffer. Repeat these keys to

 

invoke old commands forwards.

 

 

Press CTRL-N or the

Rolls the commands downward. When the

down arrow key

last command line is reached, one more

 

operation will roll the commands from the

 

begging of the buffer cyclically.

 

 

In any mode, execute the show history command to list the latest commands input in this mode.

Command Mode

The command modes in this manual are shown below.

Mode

Prompt

Admis-

Entry

Functions

 

 

sion

Command

 

 

 

Mode

 

 

 

 

 

 

 

Exec

ZXR10>

 

enters directly

Views simple

mode

 

 

after logging

information

 

 

 

the system

 

 

 

 

 

 

Privi-

ZXR10#

Exec

enable

Configures

leged

 

mode

 

system

mode

 

 

 

parameters

 

 

 

 

 

Global

ZXR10(config)#

Privi-

configure

Configures

config-

 

leged

terminal

global service

uration

 

mode

 

parameters

mode

 

 

 

 

 

 

 

 

 

Confidential and Proprietary Information of ZTE CORPORATION 3

ZXR10 Command Manual (Basic Configuration Volume I)

Mode

Prompt

Admis-

Entry

Functions

 

 

sion

Command

 

 

 

Mode

 

 

 

 

 

 

 

Inter-

ZXR10(config-

Global

interface

Configures

face

if)#

config-

 

port

config-

 

uration

 

parameters

uration

 

mode

 

and selects

mode

 

 

 

a port type

 

 

 

 

depending on

 

 

 

 

the keyword

 

 

 

 

 

Subin-

ZXR10 (config-

Global

interface

Configures

terface

subif)#

config-

 

subinterface

mode

 

uration

 

parameters

 

 

mode

 

of the

 

 

 

 

NPCI/NPCT

 

 

 

 

 

VLAN

ZXR10(vlan-

Privi-

vlan datab

Creates or

data-

db)#

leged

ase

deletes VLANs

base

 

mode

 

in batches

config-

 

 

 

 

uration

 

 

 

 

mode

 

 

 

 

 

 

 

 

 

VLAN

ZXR10(config-

Global

vlan

Configures

config-

vlan)#

config-

 

VLAN

uration

 

uration

 

parameters

mode

 

mode

 

 

 

 

 

 

 

MSTP

ZXR10(config-

Global

spanning-t

Configures

config-

mstp)#

config-

ree mst conf

MSTP

uration

 

uration

iguration

parameters

mode

 

mode

 

 

 

 

 

 

 

Basic

ZXR10(config-

Global

acl basic

Defines basic

ACL

basic-acl)#

config-

 

ACL rule

config-

 

uration

 

 

uration

 

mode

 

 

mode

 

 

 

 

 

 

 

 

 

Ex-

ZXR10(config-

Global

acl extend

Defines

tended

ext-acl)#

config-

 

extended ACL

ACL

 

uration

 

rule

config-

 

mode

 

 

uration

 

 

 

 

mode

 

 

 

 

 

 

 

 

 

Line

ZXR10(config-

Global

line console

Configures

config-

line)#

config-

0

parameters

uration

 

uration

line <1~64

related to

mode

 

mode

serial port

 

 

 

>(GAR)

and telnet

 

 

 

 

connection

 

 

 

 

 

Layer

ZXR10(config-

Global

acl link

Defines layer

2 ACL

link-acl)#

config-

 

2 ACL rule

config-

 

uration

 

 

uration

 

mode

 

 

mode

 

 

 

 

 

 

 

 

 

4 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 1 Command Introduction

Mode

Prompt

Admis-

Entry

Functions

 

 

sion

Command

 

 

 

Mode

 

 

 

 

 

 

 

Hybrid

ZXR10(config-

Global

acl hybrid

Defines hybrid

ACL

hybd-acl)#

config-

 

ACL rule

config-

 

uration

 

 

uration

 

mode

 

 

mode

 

 

 

 

 

 

 

 

 

Router

ZXR10 (config-

Global

ip access-list

Defines router

stand-

std-nacl)#

config-

 

standard ACL

ard ACL

 

uration

 

rule

mode

 

mode

 

 

 

 

 

 

 

Router

ZXR10 (config-

Global

ip access-list

Defines router

ex-

ext-nacl)#

config-

 

extended ACL

tended

 

uration

 

rule

ACL

 

mode

 

 

mode

 

 

 

 

 

 

 

 

 

Route

ZXR10(config-

Global

router rip

Configures

config-

router)#

config-

 

RIP

uration

 

uration

 

parameters

mode

 

mode

 

 

 

router ospf

Configures

 

 

 

 

 

 

 

OSPF

 

 

 

 

parameters

 

 

 

 

 

 

 

 

router isis

Configures

 

 

 

 

IS-IS

 

 

 

 

parameters

 

 

 

 

 

 

 

 

router bgp

Configures

 

 

 

 

BGP

 

 

 

 

parameters

 

 

 

 

 

 

 

 

router

Configures

 

 

 

pimsm

PIM-SM

 

 

 

 

parameters

 

 

 

 

 

 

 

 

ipv6 router

Configures

 

 

 

rip

RIPng

 

 

 

 

parameters.

 

 

 

 

 

 

 

 

ipv6 router

Configures

 

 

 

ospf

OSPFv3

 

 

 

 

parameters

 

 

 

 

 

VRF

ZXR10(config-

Global

ip vrf

Configures

config-

vrf)#

config-

 

VRF

uration

 

uration

 

parameters

mode

 

mode

 

 

 

 

 

 

 

VFI con-

ZXR10(config-

Global

vfi

Configures

figu-

vfi)#

config-

 

VPLS related

ration

 

uration

 

parameters

mode

 

mode

 

 

 

 

 

 

 

Confidential and Proprietary Information of ZTE CORPORATION 5

ZXR10 Command Manual (Basic Configuration Volume I)

Mode

Prompt

Admis-

Entry

Functions

 

 

sion

Command

 

 

 

Mode

 

 

 

 

 

 

 

IPv4 ad-

ZXR10(config-

Route

address-fam

Configures

dress

router-af)#

config-

ily ipv4 vrf

RIP VRF

family

 

uration

 

parameters

config-

 

mode

 

 

uration

 

(RIP)

 

 

mode

 

 

 

 

 

Route

address-fam

Configures

 

 

 

 

config-

ily vpnv4

BGP VPN

 

 

uration

address-fam

and VRF

 

 

mode

ily ipv4 vrf

parameters

 

 

(BGP)

 

 

 

 

 

 

 

 

 

 

IPv6

ZXR10(config-

Route

address-fam

Configures

unicast

router-af)#

config-

ily ipv6

BGP4+

address

 

uration

 

unicast

family

 

mode

 

address family

config-

 

(BGP4+)

 

 

uration

 

 

 

 

 

 

 

 

mode

 

Route

address-fam

Configures

 

 

config-

ily ipv6

IS-ISv6

 

 

uration

 

address family

 

 

mode

 

 

 

 

(IS-

 

 

 

 

ISv6)

 

 

 

 

 

 

 

Route

ZXR10(config-

Global

route-map

Configures

map

route-map)#

config-

 

route map

config-

 

uration

 

matching item

uration

 

mode

 

and operation

mode

 

 

 

 

 

 

 

 

 

Channe-

ZXR10(config-

Global

control

Configures

lization

control)#

config-

 

channelization

config-

 

uration

 

for ce1, ce3

uration

 

mode

 

and cpos3

mode

 

 

 

 

 

 

 

 

 

Dial

ZXR10(config-

Global

dial-peer

Configures

peer

voip100)#

config-

voice

business

config-

 

uration

 

related to

uration

 

mode

 

integrated

mode

 

 

 

service

 

 

 

 

 

Voice

ZXR10(config-

Global

voice-port

Configures

port

voice-port)#

config-

 

voice service

config-

 

uration

 

 

uration

 

mode

 

 

mode

 

 

 

 

 

 

 

 

 

IPSec

ZXR10(config-

Global

ipsec

Configures

config-

ipsec)#

config-

 

IPv6 IPSec

uration

 

uration

 

protection

mode

 

mode

 

 

 

 

 

 

 

Diagno-

ZXR10(diag)#

Privi-

diagnose

Tests CPU

sis mode

 

leged

 

and memory

 

 

mode

 

usage

 

 

 

 

 

6 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 2

Basic System

Management

Table of Contents

 

auto-download config..........................................................

8

banner incoming ................................................................

8

boot config-file...................................................................

9

clock set ...........................................................................

9

clock timezone ..................................................................

10

configure terminal .............................................................

10

disable.............................................................................

11

enable .............................................................................

11

enable secret ....................................................................

12

end .................................................................................

13

exit .................................................................................

13

flah-protect power-off ........................................................

14

hostname.........................................................................

14

help message....................................................................

15

more ...............................................................................

15

multi-user configure ..........................................................

16

nvram boot-password ........................................................

17

nvram boot-server.............................................................

17

nvram boot-username........................................................

18

nvram default-gateway ......................................................

18

nvram imgfile-location........................................................

19

nvram mng-ip-address.......................................................

20

privilege...........................................................................

20

reload..............................................................................

21

service password-encryption ...............................................

21

show auto-download-config ................................................

22

show clock........................................................................

22

show diagnostic information................................................

22

show privilege...................................................................

27

show running-config ..........................................................

27

show start running-config...................................................

28

show system-group ...........................................................

29

show username.................................................................

29

show users .......................................................................

29

show user-group ...............................................................

30

show version ....................................................................

30

show version hardware.......................................................

30

show version mec..............................................................

31

show version midplane.......................................................

32

show version npc...............................................................

32

show version software........................................................

32

show version sfc................................................................

33

show version upc...............................................................

33

Confidential and Proprietary Information of ZTE CORPORATION 7

ZXR10 Command Manual (Basic Configuration Volume I)

username.........................................................................

34

user-group .......................................................................

34

who.................................................................................

35

 

auto-download config

Purpose

Use this command to enable downloading the configuration file

 

automatically.

Command Modes

Global Configuration

Syntax

auto-download config

 

no auto-download config

Instructions

This command is to enable downloading configuration file auto-

 

matically. If the configuration files(startrun and config) already

 

exist, delete them and reboot the rack to download them auto-

 

matically. When this function is disabled, if the downloading is in

 

the process, then it informs the TFTP module about shutting the

 

downloading.

Defaults

It is enabled by default and the configuration is writting into

 

NVRAM. It supports 52a.

Example

This example describes how to enable downloading the configura-

 

tion file automatically.

 

ZXR10(config)#auto-download config

Related

boot config-file

Commands

show auto-download-config

 

banner incoming

Function

Use this command to set the greeting for the system startup.

Command mode

Global configuration

 

Format

banner incoming <end-char><TEXT><end-char>

Syntax

 

 

Description

<end-char>

End character, with one character

 

 

 

 

 

<TEXT>

Greeting: text including spaces and ENTER. It

 

 

does not exceed 253 characters at most and

 

 

end with<end-char>

 

 

 

Default Default welcome prompt.

Instructions 1. Set the user-defined <end-char>, with only one character: banner incoming #. After you press ENTER, the system prompts the following information:

Enter TEXT message. End with the character #.

8 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 2 Basic System Management

2. Enter the formal greeting text, which may include special characters (except?) such as space and ENTER. It ends with ’#’.

Note:

The special character? is regarded as the help prompt by default. As a result, all the command parameters (text-type) or the password cannot include?.

Example This example describes how to set the greeting to welcome.

ZXR10(config)#banner incoming #

Enter TEXT message. End with the character #. welcome

#

 

boot config-file

Purpose

Use this command to set the path for config file.

Command Modes

Global Configuration

 

Syntax

boot config-file <filename>

Syntax

 

 

Description

<filename>

Sets the path for config file.

 

 

 

 

Instructions

This command is to specify the path for config file. The configura-

 

tion is writting into NVRAM. It only supports 52a currently.

Defaults

It is enabled by default and the configuration is writting into

 

NVRAM. It supports 52a.

Example

This example describes how to set the path for configuration file

 

to cfg/config.dat

 

 

ZXR10(config)#boot config-file cfg/config.dat

 

ZXR10(config)#

 

Related

auto-download config

Commands

show auto-download-config

 

clock set

Purpose

Use this command to configure the system clock in standard time

 

format.

Command Modes

Privileged EXEC

Syntax

clock set <current-time><month><day><year>

Confidential and Proprietary Information of ZTE CORPORATION 9

ZXR10 Command Manual (Basic Configuration Volume I)

Syntax

 

 

Description

<current-time>

The current time in the format: hh:mm:ss.

 

 

 

 

 

<month>

Month, jan~dec

 

 

 

 

<day>

Date, 1~31

 

 

 

 

<year>

Year, 2001~2098

 

 

 

Example This example describes how to set the system time to 12 minutes 1 second past 23 o’clock on Feb. 23, 2001 with the following command.

ZXR10#clock set 23:12:01 feb 23 2001

Related show clock

Commands

 

clock timezone

Purpose

Use this command to configure time zone information.

Command Modes

Privileged EXEC

 

Syntax

clock timezone <name-of-time-zone><hours-offset>[<minutes

 

-offset>]

 

Syntax

 

 

Description

<name-of-time-zo

Name of time zone

 

 

ne>

 

 

 

 

 

<hours-offset>

Hours offset from UTC

 

 

 

 

<minutes-offset>

Minutes offset from UTC

 

 

 

Instructions

The parameter <minutes-offset> is added in versions 4.8.21 and

 

above.

 

Example

This example describes how to configure time zone as Beijing and

 

the <hours-offset> as 8.

 

ZXR10#clock timezone Beijing 8 0

Related

show clock

 

Commands

 

 

 

configure terminal

Purpose

Use this command to change from the privileged EXEC to the global

 

configuration mode.

Command Modes

Privileged EXEC

Syntax

configure terminal

Example

This example describes how to change from the privileged EXEC

 

to the global configuration mode.

10 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 2 Basic System Management

ZXR10#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

ZXR10(config)#

Related end

Commands exit

 

disable

 

Function

Use this command to return from the privileged mode to exec

 

mode. Lower the current authority level.

Command Mode

EXEC, Privileged EXEC

 

Syntax

disable

 

 

disable [<level>]

 

Syntax

 

 

 

Description

<level>

 

Authority level, 0~15, the default value is 1.

 

 

 

 

 

Instruction

disable [<level>] is only applicable to ZXR10 T64E/T128

 

T600/T1200.

 

Example

This example describes how to return from the privileged mode to

 

EXEC mode and lower the authority level to 1.

 

ZXR10#disable 1

 

 

ZXR10>

 

 

ZXR10>show privilege

 

 

Current privilege level is 1

 

ZXR10>

 

Related

enable

 

Commands

show privilege

 

 

enable

 

Function

Use this command to enter from the EXEC to privilege EXEC mode.

 

Heighten the current authority level.

Command Mode

EXEC, Privilege EXEC

 

Format

enable

 

 

enable [<level>]

 

Parameter

 

 

Description

Parameter

Description

 

 

 

 

 

<level>

Authority level, the default value is 15.

 

 

 

Instructions

Password is required when entering into each authority level.

 

If the passwords have not been configured, then entering into

 

the authority level is not permitted.

Confidential and Proprietary Information of ZTE CORPORATION 11

ZXR10 Command Manual (Basic Configuration Volume I)

The command enable <level> is only applicable to ZXR10 T64E/T128, T600/T1200.

Note:

This password is not displayed on the screen while it is entered, and is case sensitive.

Example This example describes how to heighten authority level to 2; enter from the EXEC to privilege EXEC mode.

ZXR10>enable 2

Password:

ZXR10#

ZXR10#show privilege

Current privilege level is 2

ZXR10#

Related disable

Commands show privilege

enable secret

Function Use this command to set the password for each mode. Use the no command to cancel this set.

Command Mode Global configuration

Syntax enable secret {0 <password>| 5 <password>|<password>}

enable secret [level <level-number>]{0 <password>| 5 <pass word>|<password>}

no enable secret level <1~14>

Syntax

 

 

Description

level < level-number

Designates authority level, the default value

 

 

>

is 15

 

 

 

 

0 <password>

Sets the privileged password with 3–16

 

 

characters to enter the privileged mode

 

 

 

 

5 <password>

Sets encrypted privileged password with 3–24

 

 

characters

 

 

 

 

<password>

Sets privileged password with 3–16 characters

 

 

by default

 

 

 

Instructions The enable password displayed in show running-config is the encrypted privileged password, while the password that is used for enable to enter the privileged mode is unencrypted privileged password.

The command enable secret [level <1~15>]{0 <passwor d>| 5 <password>|<password>} is only applicable to ZXR10 T64E/T128.

12 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 2 Basic System Management

Note:

 

Both commands enable secret 0 <password> and enable secret

 

<password> are used to enter an unencrypted password. Set the

 

password with the enable secret 5 <password> command. The

 

configured password is not an encrypted privileged password un-

 

less the length of <password> is 24.

 

 

Example

This example describes how to set the privilege password to

 

ZXR10.

 

ZXR10(config)#enable secret ZXR10

Related Command

enable

 

end

Purpose

Use this command to return to the privileged EXEC mode.

Command Modes

The command is available for all modes other than the EXEC and

 

privileged EXEC mode.

Syntax

end

Example

This example describes how to return from the global configuration

 

mode to the privileged EXEC mode.

 

ZXR10(config)#end

 

ZXR10#

Related

configure terminal

Commands

interface

 

router bgp

 

router ospf

 

router rip

 

exit

Purpose

Use this command to quit the login router or return to the last

 

mode.

Command Modes

All modes

Syntax

exit

Instructions

When it is executed under the EXEC mode or privileged EXEC

 

mode, it means exiting the login router. While in other modes,

 

it means returning to the last mode.

Example

This example describes how to exit from the global configuration

 

mode to the privileged EXEC mode.

 

ZXR10(config)#exit

 

ZXR10#

 

 

 

Confidential and Proprietary Information of ZTE CORPORATION 13

ZXR10 Command Manual (Basic Configuration Volume I)

Related configure terminal

Commands login logout

 

flah-protect power-off

Purpose Use this command to confirm the power-off.

Command Modes

Privileged EXEC

 

Syntax flash-protect power-off [ force ]

Syntax

 

 

 

Description

force

 

Forces the power-off manually.

 

 

 

 

 

Instructions The platform version 4.8.22 supports this command. The com-

 

mand with the parameter force means forcing power-off manu-

 

ally and being related to flash-protect. If the command is with the

 

parameter force , regardless of whether the Flash is in usage or

 

not, unload the Flash device and power-off manually. Or, if the

 

Flash is in usage, it can not power-off manually.

Example

This example describes how to set force power-off manually.

 

ZXR10# flash-protect

power-off force

 

Are you sure to power off the machine?

 

If you execute the command successfully,

 

any other operation is invalid except power-off.

 

[yes/no]:y

 

 

.. OK!You can power off the machine later.

 

ZXR10#

 

 

This example describes how to set power-off manually.

 

ZXR10# flash-protect

power-off

 

Are you sure to power off the machine?

 

If you execute the command successfully,

 

any other operation is invalid except power-off.

 

[yes/no]:y

 

 

.. OK!You can power off the machine later.

 

ZXR10#

 

 

hostname

 

Purpose

Use this command to set the network name of the system. cancel

 

the network name with the no command.

Command Modes

Global configuration

 

Syntax

hostname <network-name>

 

no hostname

 

Syntax

 

 

 

Description

<network-name>

 

Network name, with 1~32 characters

 

 

 

 

 

Defaults

By default, the default system network name is ZXR10.

14 Confidential and Proprietary Information of ZTE CORPORATION

 

 

 

Chapter 2 Basic System Management

 

 

 

Instructions

The modified hostname takes effect immediately.

Example

This example describes how to set the network name of the router

 

to ZXR10_router.

 

 

ZXR10(config)#hostname ZXR10_router

 

ZXR10_router(config)#

 

 

help message

Function

Use this command to set whether to display all command com-

 

ments.

 

Command Mode

Global configuration mode

Format

help message [full | partial]

Syntax

 

 

 

Description

Full

 

Display all comments

 

 

 

 

 

 

 

Partial

 

Omit some comments

 

 

 

Instruction

By default, the comments are displayed in partial mode.

Example

This example describes how to set help message to full.

 

ZXR10(config)#help message full

 

more

 

Purpose

Use this command to display the flash ascii text such as log, dead

 

halt.

 

Command Modes

Privileged EXEC

 

Syntax

more <word>[ascii | binary [width]]

Syntax

 

 

 

Description

<word>

 

The path for this file

 

 

 

 

 

 

 

<ascii >

 

The display mode of the text

 

 

 

 

 

<binary >

 

The binary display mode

 

 

 

 

 

<width>

 

The byte width of the unit

 

 

 

Instructions

The platform version 4.8.22 supports this command. The com-

 

mand with the parameter force means forcing power-off manu-

 

ally and being related to flash-protect. If the command is with the

 

parameter force , regardless of whether the Flash is in usage or

 

not, unload the Flash device and power-off manually. Or, if the

 

Flash is in usage, it can not power-off manually.

Example

This example describes how to set force power-off manually.

 

ZXR10# flash-protect

power-off force

 

Are you sure to power off the machine?

Confidential and Proprietary Information of ZTE CORPORATION 15

ZTE ZXR10 User Manual

ZXR10 Command Manual (Basic Configuration Volume I)

If you execute the command successfully,

any other operation is invalid except power-off. [yes/no]:y

.. OK!You can power off the machine later. ZXR10#

This example describes how to set power-off manually.

ZXR10# flash-protect power-off

Are you sure to power off the machine? If you execute the command successfully,

any other operation is invalid except power-off. [yes/no]:y

.. OK!You can power off the machine later. ZXR10#

multi-user configure

Function Use this command to permit multiple users to enter the configuration mode. Configure the single user configuration mode with the no command.

Command Mode Global configuration

Format multi-user configure

no multi-user configure

Instructions By default, only a user can enter the global configuration mode. Use this command to permit other users enter into the global configuration mode. The no command is used to configure the single user to enter into configuration mode. Make sure that other users have exited configuration mode, then use no command.

Note:

When multiple users are configuring, their configurations should not conflict.

Example This example describes how to enter the configuration mode and allow multiple user configurations when there is no user in the configuration mode.

ZXR10#configure terminal ZXR10(config)#multi-user configure

%Warning: allow others configure, must avoid conflict. ZXR10(config)#

This example describes how to enter the single user configuration mode when there is one user in the configuration mode.

ZXR10#configure terminal

%Simultaneous configs not allowed. Locked from 168.1.168.168 ZXR10#

This example describes how to do when other users have not exited the configuration mode.

ZXR10(config)#no multi-user conf %Someone has entered the configure mode, cannot set single-user configure! ZXR10(config)#

Related Command configure terminal

16 Confidential and Proprietary Information of ZTE CORPORATION

 

 

Chapter 2 Basic System Management

 

 

 

 

nvram boot-password

Function

Use this command to start the FTP download setting for the map-

 

ping file and specify the password of the FTP server for download.

Command Mode

Global configuration

 

Format

nvram boot-password <password>

Syntax

 

 

Description

<password>

FTP password, with 3~16 characters

 

 

 

 

Instructions

Valid characters

are as follows: 0123456789abcdefghi-

 

jklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ‘*-

 

=~!@#$%^& () _+[]{}|;’:,./<>\\

 

This command works with such commands as nvram boot-se

 

rver, nvram boot-username, nvram imgfile-location and

 

nvram default-gateway.

Example

This example describes how to Set the login password for the map-

 

ping file download FTP to pass.

 

ZXR10(config)#nvram boot-password pass

Related

nvram boot-server

 

Commands

nvram boot-username

 

nvram default-gateway

 

nvram imgfile-location

 

nvram boot-server

Function

Use this command to enable the FTP download settings for map-

 

ping files and specify the IP address of the FTP server for download.

Command Mode

Global configuration

 

Syntax

nvram boot-server <ip-address>

Syntax

 

 

Description

<ip-address>

IP address in the dotted decimal notation

 

 

 

 

Instruction

This command works with these commands: nvram boot-pass-

 

word, nvram boot-usernam, nvram imgfile-location and nvram de-

 

fault-gateway.

 

Example

This example describes how to set the IP address for the mapping

 

download FTP to 168.1.1.1.

 

ZXR10(config)#nvram bootserver 168.1.1.1

Related

nvram boot-password

Commands

nvram boot-username

nvram default-gateway nvram imgfile-location

Confidential and Proprietary Information of ZTE CORPORATION 17

ZXR10 Command Manual (Basic Configuration Volume I)

nvram boot-username

Function

Command Mode

Syntax

Syntax

Description

Use this command to enable the FTP download setting for mapping files and specify the username of the FTP server for download.

Global configuration

nvram boot-username <username>

<username>

Login user name, with 1~16 characters

 

 

Instructions

The valid characters include the letters, numerals and under-

 

line, case insensitive for the letters.

 

This command works with these commands: nvram boot-pa

 

ssword, nvram boot-server, nvram imgfile-location and

 

nvram default-gateway.

Example

This example describes how to set the user name for the mapping

 

file download FTP to ZXR10.

 

ZXR10(config)#nvram boot-username ZXR10

Related Command

nvram boot-password.

 

nvram boot-server

 

nvram default-gateway

 

nvram imgfile-location

 

nvram default-gateway

Function

Use this command to set the IP address of the default gateway.

Command Mode

Global configuration

 

Syntax

nvram default-gateway <ip-address>

Syntax

 

 

Description

<ip-address>

IP address of the gateway in the dotted

 

 

 

decimal notation

 

 

 

Instruction

This command works with these commands: nvram boot-passw

 

ord, nvram boot-server, nvram imgfile-location and nvram

 

boot-username.

 

Example

This example describes how to set the default gateway as

 

168.1.1.1.

 

 

ZXR10(config)#nvram default-gateway 168.1.1.1

Related

nvram boot-password

Commands

nvram boot-server

 

nvram boot-username nvram imgfile-location

18 Confidential and Proprietary Information of ZTE CORPORATION

Chapter 2 Basic System Management

nvram imgfile-location

Purpose Use this command to set the location for booting the mapping file.

Command Modes Global configuration

Syntax set ethernet-oam link-monitor frame-seconds threshold

<xxx> window <yyy>

nvram imgfile-location {local {flash | sd}<filename>}| netw ork <filename>}

Syntax

 

 

Description

local

The mapping file is located locally.

 

 

 

 

 

flash

If the version reboots from local, the storage

 

 

device type is flash.

 

 

 

 

sd

If the version reboots from local, the storage

 

 

device type is sd card.

 

 

 

 

network

The mapping file is located in the network.

 

 

 

 

<filename>

File name, with 1~80 characters.

 

 

 

Instructions The valid characters for the filename are as follows.

0123456789abcdefghijklmnopqrstuvwxyz_ABCDEFGHI- JKLMNOPQRSTUVWXYZ/.;,-=+$#~@% () !&[]{}

If it is specified as network boot, the filename can include the path of the specified FTP directory. For example, the specified FTP directory is sysm and now it is in the nets directory under sysm of the FTP server, and the file name can also include the path under the sysm/nets directory. Note that the path sysm/nets cannot be included repeatedly.

This command works with these commands: nvram boot-p assword, nvram boot-server, nvram boot-username and nvram default-gateway.

The platform version 4.8.22 supports rebooting from SD card when the version starts from local.

Example This example describes how to reset the card in slot 3.

ZXR10#reload slot 3

Proceed with reload? [yes/no]:y

ZXR10#

This example describes how to reset the right sfc.

ZXR10#reload sfc 2

Proceed with reload? [yes/no]:y

ZXR10#

This example describes how to reset the slave MP.

ZXR10#reload mp slave

Proceed with reload? [yes/no]:y

ZXR10#

Confidential and Proprietary Information of ZTE CORPORATION 19

ZXR10 Command Manual (Basic Configuration Volume I)

 

nvram mng-ip-address

Function

Set the IP address of the router MNG (management interface).

Command Mode

Global configuration

 

Syntax

nvram mng-ip-address <ip-address><net-mask>

Syntax

 

 

Description

<ip-address>

IP address of the MNG in the dotted decimal

 

 

 

notation

 

 

 

 

<net-mask>

Subnet mask in the dotted decimal notation

 

 

 

Instruction

This address can be used to log in to the router from an internal

 

network port.

 

 

 

 

 

Note:

 

 

The configured interface address and this address cannot be in the

 

same network segment.

 

 

Example

This example describes how to set the MNG IP address to 168.1.1.1

 

and the subnet mask to 255.255.0.0.

 

ZXR10(config)#nvram mng-ip-address 168.1.1.1 255.255.0.0

 

privilege

 

Function

Use this command to set command authority level. Use no com-

 

mand to recover default authority level.

Command Mode

Global configuration

 

Syntax

privilege <logic-mode>[all] level <0~15><command-keywor

 

ds> no privilege <logic-mode>[all] reset <command-keywor

 

ds>

 

Syntax

 

 

Description

<logic-mode>

Logic mode type

 

 

 

 

 

all

Supports all the commands that this command

 

 

key word appears head

 

 

 

 

level <0~15>

Authority level

 

 

 

 

<command-keywor

l Command keywords

 

ds>

 

 

 

 

Example

This example describes how to set all write appears ahead in priv-

 

ilege exec command authority level to 7.

 

ZXR10(config)#privilege exec all level 7 write

Related Command

show privilege

 

20 Confidential and Proprietary Information of ZTE CORPORATION

Loading...
+ 107 hidden pages