Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch...

128
ZXR10 Router/Ethernet Switch Command Manual (Basic Configuration Volume III) 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: [email protected]

Transcript of Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch...

Page 1: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10Router/Ethernet Switch

Command Manual (Basic Configuration Volume III)

Version 4.8.22

ZTE CORPORATIONZTE Plaza, Keji Road South,Hi-Tech Industrial Park,Nanshan District, Shenzhen,P. R. China518057Tel: (86) 755 26771900Fax: (86) 755 26770801URL: http://ensupport.zte.com.cnE-mail: [email protected]

Page 2: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

LEGAL INFORMATION

Copyright © 2006 ZTE CORPORATION.

The contents of this document are protected by copyright laws and international treaties. Any reproduction or distribution ofthis document or any portion of this document, in any form by any means, without the prior written consent of ZTE CORPO-RATION 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 CORPORATIONor of their respective owners.

This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions are dis-claimed, 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 theinformation contained herein.

ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications covering the subjectmatter 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: sjzl20086530

Page 3: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

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

Command Introduction .....................................1Manual Use Guide........................................................... 1

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

Auxiliary Function ........................................................... 2

Command Mode ............................................................. 3

NAT Configuration .............................................7clear ip nat statistics ....................................................... 7

clear ip nat translations ................................................... 8

ip nat............................................................................ 9

ip nat inside source......................................................... 9

ip nat logging................................................................11

ip nat max-entry-number ...............................................12

ip nat multipool .............................................................12

ip nat pool ....................................................................12

ip nat service ................................................................13

ip nat slot-number.........................................................13

ip nat start ...................................................................14

ip nat stop....................................................................14

ip nat translation maximal ..............................................14

ip nat translation timeout ...............................................15

show ip nat count ..........................................................15

show ip nat statistics .....................................................16

show ip nat translations..................................................17

Address Pool Configuration .............................19clear ip pool conflict-ip ...................................................19

conflict-time .................................................................20

distribute ip pool ...........................................................20

exclude ........................................................................21

ip local pool ..................................................................21

ip pool .........................................................................22

network .......................................................................22

range...........................................................................23

show ip local pool ..........................................................24

Time Range Configuration ...............................25absolute.......................................................................25

debug time-range..........................................................26

Page 4: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

periodic........................................................................26

show time-range ...........................................................27

time-range ...................................................................27

time-range disable.........................................................28

time-range enable .........................................................28

Event-list Configuration...................................29event-list......................................................................29

interface ......................................................................29

logic ............................................................................30

no event-list all .............................................................31

show event-list..............................................................31

show event-list reference................................................31

time-range ...................................................................32

Port Loop Detection Configuration...................33loop-detect interface......................................................33

loop-detect interface vlan ...............................................34

loop-detect protect-interface...........................................34

loop-detect reopen-time .................................................35

show loop-detect interface..............................................35

show loop-detect interface-detail .....................................36

show loop-detect protect-interface...................................36

show loop-detect reopen-time .........................................37

Reverse Telnet Configuration ..........................39absolute-timeout ...........................................................39

disconnect line ..............................................................39

line..............................................................................40

password......................................................................40

session timeout.............................................................41

show line config ............................................................41

transport input ..............................................................41

work-mode...................................................................42

SFLOW Configuration ......................................43sflow agent...................................................................43

sflow collector ...............................................................43

sflow enable .................................................................44

sflow sample.................................................................44

Stack Configuration.........................................47enable stack .................................................................47

disable stack.................................................................47

Page 5: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

nvram stack-machine-id .................................................48

nvram stack-member-priority..........................................48

show switch all-neighbors...............................................48

show switch all-status ....................................................49

show switch neighbours..................................................49

show switch stack-ports .................................................50

show switch status ........................................................51

DNS Protocol Configuration .............................53ip domain flush-cache ...................................................53

ip domain lookup...........................................................53

ip domain name ............................................................53

ip domain server ...........................................................54

show ip domain.............................................................54

Debugging.......................................................55debug all ......................................................................57

debug arp.....................................................................58

debug atm....................................................................58

debug bfd.....................................................................59

debug custom-queue .....................................................59

debug frame-relay lmi....................................................60

debug frame-relay packet...............................................60

debug gre.....................................................................61

debug group-management access....................................61

debug group-management all .........................................62

debug group-management cluster ...................................62

debug group-management zdp........................................62

debug group-management ztp ........................................63

debug hdlc ...................................................................63

debug ip.......................................................................64

debug ip bgp all ............................................................64

debug ip bgp dampening ................................................64

debug ip bgp events ......................................................64

debug ip bgp in .............................................................65

debug ip bgp keepalives .................................................65

debug ip bgp out ...........................................................65

debug ip bgp updates.....................................................66

debug ip destination ......................................................66

debug ip dhcp ...............................................................66

debug ip dhcp client ......................................................67

debug ip domain ...........................................................67

Page 6: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

debug ip icmp ...............................................................68

debug ip icmp detail ......................................................68

debug ip igmp...............................................................68

debug ip igmp-snooping .................................................68

debug ip igmp group......................................................69

debug ip igmp interface..................................................69

debug ip interface..........................................................69

debug ip ippool .............................................................70

debug ip msdp ..............................................................70

debug ip multicast .........................................................71

debug ip nat .................................................................71

debug ip ospf adj...........................................................71

debug ip ospf all............................................................72

debug ip ospf cspf .........................................................72

debug ip ospf database-timer..........................................72

debug ip ospf events......................................................73

debug ip ospf flood ........................................................73

debug ip ospf lsa-generation ...........................................73

debug ip ospf packet......................................................74

debug ip ospf retransmission...........................................74

debug ip ospf spf...........................................................74

debug ip pimdm ............................................................75

debug ip pimsm ............................................................75

debug ip pim-snooping...................................................76

debug ip protocol ..........................................................76

debug ip rip ..................................................................77

debug ip rip all ..............................................................77

debug ip rip database ....................................................77

debug ip rip events ........................................................78

debug ip rip trigger........................................................78

debug ip rsvp................................................................78

debug ip source.............................................................79

debug ip tcp all .............................................................79

debug ip tcp driver ........................................................80

debug ip tcp driver-pak ..................................................80

debug ip tcp packet .......................................................81

debug ip tcp transactions................................................81

debug ip udp ................................................................82

debug ipv6 icmp............................................................82

debug ipv6 nd...............................................................83

Page 7: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

debug ipv6 ospf adj .......................................................85

debug ipv6 ospf events ..................................................85

debug ipv6 ospf ifsm......................................................86

debug ipv6 ospf lsa........................................................86

debug ipv6 ospf lsa-generation........................................87

debug ipv6 ospf nfsm.....................................................87

debug ipv6 ospf packet ..................................................88

debug ipv6 ospf route ....................................................89

debug ipv6 packet .........................................................89

debug ipv6 rip...............................................................90

debug ipv6 tcp all ..........................................................91

debug ipv6 tcp driver .....................................................91

debug ipv6 tcp packet ....................................................92

debug ipv6 tcp transactions ............................................92

debug ipv6 udp .............................................................93

debug isis.....................................................................94

debug isis adj-packets....................................................94

debug isis all.................................................................94

debug isis snp-packets ...................................................95

debug isis spf-events .....................................................95

debug isis update-packets ..............................................95

debug lacp all ...............................................................95

debug lacp fsm .............................................................96

debug lacp packet .........................................................96

debug mac-ping ............................................................96

debug modem...............................................................97

debug mpls ldp advertisements .......................................97

debug mpls ldp all .........................................................98

debug mpls ldp bindings.................................................98

debug mpls ldp l2vpn.....................................................99

debug mpls ldp messages............................................. 100

debug mpls ldp session ................................................ 101

debug mpls ldp transport.............................................. 103

debug mstp agreement ................................................ 103

debug mstp all ............................................................ 104

debug mstp bpdu-rx .................................................... 104

debug mstp bpdu-tx .................................................... 104

debug mstp errors ....................................................... 105

debug mstp flush......................................................... 105

debug mstp info .......................................................... 105

Page 8: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

debug mstp migration .................................................. 106

debug mstp proposals .................................................. 106

debug mstp roles......................................................... 107

debug mstp state ........................................................ 107

debug mstp tc............................................................. 107

debug mstp timers ...................................................... 108

debug ntp packet ........................................................ 108

debug ppp all.............................................................. 108

debug ppp authentication ............................................. 109

debug ppp data........................................................... 109

debug ppp error .......................................................... 109

debug ppp events........................................................ 110

debug ppp lcp ............................................................. 110

debug ppp multilink ..................................................... 110

debug ppp ncp ............................................................ 111

debug ppp packet........................................................ 111

debug priority ............................................................. 112

debug radius all........................................................... 112

debug radius user........................................................ 112

debug radius exception ................................................ 113

debug radius authentication data................................... 113

debug radius authentication error .................................. 113

debug radius authentication event ................................. 114

debug radius authentication packet................................ 114

debug radius accounting data........................................ 114

debug radius accounting error ....................................... 115

debug radius accounting event ...................................... 115

debug radius accounting packet..................................... 115

debug tunnel packet .................................................... 116

debug vbas................................................................. 117

debug voip pstn .......................................................... 117

debug vrrp ................................................................. 117

show debugging .......................................................... 118

terminal monitor ......................................................... 118

Page 9: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

About This Manual

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

IntendedAudience

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

What Is in ThisManual

This manual contains the following chapters:

Chapter Summary

Chapter 1, CommandIntroduction

This chapter describes the use methodof the command manual, commanddescription, format convention, auxiliaryfunction and mode.

Chapter 2, NATConfiguration

This chapter describes the configurationand view commands of NAT.

Chapter 3, Address PoolConfiguration

This chapter describes the configurationand view commands of address pool.

Chapter 4, Time RangeConfiguration

This chapter describes the configurationand view commands of time range.

Chapter 5, Event-listConfiguration

This chapter describes the configurationand view commands of event-list.

Chapter 6, Port LoopDetection Configuration

This chapter describes the configurationand view commands of port loop detection.

Chapter 7, Reverse TelnetConfiguration

This chapter describes reverse Telnetconfiguration commands.

Chapter 8, SFLOWConfiguration

This chapter describes SFLOW configurationcommands.

Chapter 9, StackConfiguration

This chapter describes the configurationand view commands of stack.

Chapter 10, DNSConfiguration

This chapter describes the configurationand view commands DNS.

Chapter 11, Debugging This chapter describes the debugcommands of the system.

RelatedDocumentation

The following documentation is related to this manual:

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

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

� ZXR10 Router/Ethernet Switch Command Manual (Basic Con-figuration Volume I)

Confidential and Proprietary Information of ZTE CORPORATION i

Page 10: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

� ZXR10 Router/Ethernet Switch Command Manual (Basic Con-figuration Volume II)

� ZXR10 Router/Ethernet Switch Command Manual (Remote Ac-cess Volume)

� ZXR10 Router/Ethernet Switch Command Manual (IPv4 Rout-ing Volume I)

� ZXR10 Router/Ethernet Switch Command Manual (IPv4 Rout-ing Volume II)

� ZXR10 Router/Ethernet Switch Command Manual (MPLS Vol-ume)

� ZXR10 Router/Ethernet Switch Command Manual (QoS Vol-ume)

� ZXR10 Router/Ethernet Switch Command Manual (SecurityVolume)

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

� ZXR10 Router/Ethernet Switch Command Manual (MulticastVolume)

� ZXR10 Router/Ethernet Switch Command Manual (IPv6 Vol-ume)

� ZXR10 Router/Ethernet Switch Command Manual (Voice andVideo Service Volume)

ii Confidential and Proprietary Information of ZTE CORPORATION

Page 11: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 1

Command Introduction

Table of ContentsManual Use Guide............................................................... 1Description of Man-Machine Commands................................. 1Auxiliary Function............................................................... 2Command Mode ................................................................. 3

Manual Use GuideThe commands in other volumes are classified by functional mod-ules, and each functional module corresponds to a chapter andthe commands in the chapter are organized in the form of level 2directory and in the order of a–z.

To search a command, do as follows:

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

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

Description of Man-MachineCommandsEach 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, includingthe no format if possible.

� Parameter Description

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

Confidential and Proprietary Information of ZTE CORPORATION 1

Page 12: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

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

� Default

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

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

� Instructions

First describes the platform version information about thiscommand. For example, “The platform version X.X.XX or latersupports this command” indicates this command is providedfrom the beginning of the platform version X.X.XX. This com-mand is provided from the platform version 2.6 by default.

Second describes the use method and precautions of this com-mand.

� 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 com-mand if a command is changed after version upgrade.

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

Auxiliary FunctionThe auxiliary function for ZXR10 devices is as follows.

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

i. In any command mode, enter a question mark "?" after theDOS prompt of the system, and a list of all commands inthe mode and the brief description of the commands willbe displayed.

ii. Input the question mark behind a character or characterstring to view the list of commands or keywords beginningwith this character or character string. Note that there isno space between the character (string) and the questionmark.

iii. Press TAB behind the character string. If the command orkeyword beginning with this character string is unique, itshall be completed with a space at the end. Note that thereis no space between the character string and the TAB.

2 Confidential and Proprietary Information of ZTE CORPORATION

Page 13: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 1 Command Introduction

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

2. If incorrect command, keyword or parameter is input, the errorisolation is offered with ^ in the user interface after you pressENTER. The ^ is below the first character of the input incorrectcommand, keyword or parameter.

3. ZXR10 router/Ethernet switch allows the command or key-word to be abbreviated into a character or character string thatuniquely identifies this command or keyword. For example, theshow command can be abbreviated to sh or sho.

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

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

Command Function

Press CTRL-P or theup arrow key

Re-invokes the latest command in therecord buffer. Repeat these keys toinvoke old commands forwards.

Press CTRL-N or thedown arrow key

Rolls the commands downward. When thelast command line is reached, one moreoperation will roll the commands from thebegging of the buffer cyclically.

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

Command ModeThe command modes in this manual are shown below.

Mode Prompt Admis-sionMode

EntryCommand

Functions

Execmode

ZXR10> enters directlyafter loggingthe system

Views simpleinformation

Privi-legedmode

ZXR10# Execmode

enable Configuressystemparameters

Globalconfig-urationmode

ZXR10(config)# Privi-legedmode

configureterminal

Configuresglobal serviceparameters

Confidential and Proprietary Information of ZTE CORPORATION 3

Page 14: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Mode Prompt Admis-sionMode

EntryCommand

Functions

Inter-faceconfig-urationmode

ZXR10(config-if)#

Globalconfig-urationmode

interface Configuresportparametersand selectsa port typedepending onthe keyword

Subin-terfacemode

ZXR10 (config-subif)#

Globalconfig-urationmode

interface Configuressubinterfaceparametersof theNPCI/NPCT

VLANdata-baseconfig-urationmode

ZXR10(vlan-db)#

Privi-legedmode

vlan database

Creates ordeletes VLANsin batches

VLANconfig-urationmode

ZXR10(config-vlan)#

Globalconfig-urationmode

vlan ConfiguresVLANparameters

MSTPconfig-urationmode

ZXR10(config-mstp)#

Globalconfig-urationmode

spanning-tree mst configuration

ConfiguresMSTPparameters

BasicACLconfig-urationmode

ZXR10(config-basic-acl)#

Globalconfig-urationmode

acl basic Defines basicACL rule

Ex-tendedACLconfig-urationmode

ZXR10(config-ext-acl)#

Globalconfig-urationmode

acl extend Definesextended ACLrule

Lineconfig-urationmode

ZXR10(config-line)#

Globalconfig-urationmode

line console0

line <1~64>(GAR)

Configuresparametersrelated toserial portand telnetconnection

Layer2 ACLconfig-urationmode

ZXR10(config-link-acl)#

Globalconfig-urationmode

acl link Defines layer2 ACL rule

4 Confidential and Proprietary Information of ZTE CORPORATION

Page 15: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 1 Command Introduction

Mode Prompt Admis-sionMode

EntryCommand

Functions

HybridACLconfig-urationmode

ZXR10(config-hybd-acl)#

Globalconfig-urationmode

acl hybrid Defines hybridACL rule

Routerstand-ard ACLmode

ZXR10 (config-std-nacl)#

Globalconfig-urationmode

ip access-list Defines routerstandard ACLrule

Routerex-tendedACLmode

ZXR10 (config-ext-nacl)#

Globalconfig-urationmode

ip access-list Defines routerextended ACLrule

router rip ConfiguresRIPparameters

router ospf ConfiguresOSPFparameters

router isis ConfiguresIS-ISparameters

router bgp ConfiguresBGPparameters

routerpimsm

ConfiguresPIM-SMparameters

ipv6 routerrip

ConfiguresRIPngparameters.

Routeconfig-urationmode

ZXR10(config-router)#

Globalconfig-urationmode

ipv6 routerospf

ConfiguresOSPFv3parameters

VRFconfig-urationmode

ZXR10(config-vrf)#

Globalconfig-urationmode

ip vrf ConfiguresVRFparameters

VFI con-figu-rationmode

ZXR10(config-vfi)#

Globalconfig-urationmode

vfi ConfiguresVPLS relatedparameters

Confidential and Proprietary Information of ZTE CORPORATION 5

Page 16: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Mode Prompt Admis-sionMode

EntryCommand

Functions

Routeconfig-urationmode(RIP)

address-family ipv4 vrf

ConfiguresRIP VRFparameters

IPv4 ad-dressfamilyconfig-urationmode

ZXR10(config-router-af)#

Routeconfig-urationmode(BGP)

address-family vpnv4

address-family ipv4 vrf

ConfiguresBGP VPNand VRFparameters

Routeconfig-urationmode(BGP4+)

address-family ipv6

ConfiguresBGP4+unicastaddress family

IPv6unicastaddressfamilyconfig-urationmode

ZXR10(config-router-af)#

Routeconfig-urationmode(IS-ISv6)

address-family ipv6

ConfiguresIS-ISv6address family

Routemapconfig-urationmode

ZXR10(config-route-map)#

Globalconfig-urationmode

route-map Configuresroute mapmatching itemand operation

Channe-lizationconfig-urationmode

ZXR10(config-control)#

Globalconfig-urationmode

control Configureschannelizationfor ce1, ce3and cpos3

Dialpeerconfig-urationmode

ZXR10(config-voip100)#

Globalconfig-urationmode

dial-peervoice

Configuresbusinessrelated tointegratedservice

Voiceportconfig-urationmode

ZXR10(config-voice-port)#

Globalconfig-urationmode

voice-port Configuresvoice service

IPSecconfig-urationmode

ZXR10(config-ipsec)#

Globalconfig-urationmode

ipsec ConfiguresIPv6 IPSecprotection

Diagno-sis mode

ZXR10(diag)# Privi-legedmode

diagnose Tests CPUand memoryusage

6 Confidential and Proprietary Information of ZTE CORPORATION

Page 17: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 2

NAT Configuration

Table of Contentsclear ip nat statistics ........................................................... 7clear ip nat translations ....................................................... 8ip nat................................................................................ 9ip nat inside source............................................................. 9ip nat logging....................................................................11ip nat max-entry-number ...................................................12ip nat multipool .................................................................12ip nat pool ........................................................................12ip nat service ....................................................................13ip nat slot-number.............................................................13ip nat start .......................................................................14ip nat stop........................................................................14ip nat translation maximal ..................................................14ip nat translation timeout ...................................................15show ip nat count ..............................................................15show ip nat statistics .........................................................16show ip nat translations .....................................................17

clear ip nat statisticsPurpose Use this command to clear the statistics data of NAT conversion.

Command Modes Privileged EXEC

Syntax clear ip nat statistics [max-dynamic-trans | max-local-ip]

Instructions The cleared statistics include numbers of NAT successes and fail-ures, number of aged NAT translations, and number of cleared NATtranslations.

Example � This example describes how to clear the NAT statistics in thecurrent system.ZXR10#clear ip nat statisticsZXR10#show ip nat statisticsTotal active translations: 3066 (1 static, 3065 dynamic)Maximal active dynamic translations: 3237Current local ipaddrs: 2(3238 maximal)Outside interfaces:fei_6/8Inside interfaces:fei_6/1Hits: 0 (uEngine: 0; protocol: 0)Misses: 0 (uEngine: 0; protocol: 0)Expired translations: 0Clear translations: 0

Confidential and Proprietary Information of ZTE CORPORATION 7

Page 18: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

� This example describes how to clear the maximum dynamicentries in history record.ZXR10#clear ip nat statistics max-dynamic-transZXR10#show ip nat statisticsTotal active translations: 3066 (1 static, 3065 dynamic)Maximal active dynamic translations: 3065Current local ipaddrs: 2(3238 maximal)Outside interfaces:fei_6/8Inside interfaces:fei_6/1Hits: 0 (uEngine: 0; protocol: 0)Misses: 0 (uEngine: 0; protocol: 0)Expired translations: 0Clear translations: 0

� This example describes how to clear the maximum number oflocal user in history record.ZXR10#clear ip nat statistics max-local-ipZXR10#show ip nat statisticsTotal active translations: 3066 (1 static, 3065 dynamic)Maximal active dynamic translations: 3237Current local ipaddrs: 2(2 maximal)Outside interfaces:fei_6/8Inside interfaces:fei_6/1Hits: 0 (uEngine: 0; protocol: 0)Misses: 0 (uEngine: 0; protocol: 0)Expired translations: 0Clear translations: 0

RelatedCommands

show ip nat statistics

clear ip nat translationsPurpose Use this command to clear NAT translation entries.

Command Modes Privileged EXEC

Syntax clear ip nat translation {*|[<global-ip><global-port><local-ip><local-port>]| list <list-number>[<interface-name>]|{global<global-ip>| local <local-ip>}}

SyntaxDescription

<global-ip> Global IP address of NAT translations in theform of dotted decimal notation

<global-port> Global port of NAT translations

<local-ip> Local IP address of NAT translations in theform of dotted decimal notation

<local-port> Global port of NAT translations

<list-number> ACL of local addresses in the dynamic NATrule, ranging 1 ~ 99

<interface-name> Export interface specified in the dynamic NATrule

8 Confidential and Proprietary Information of ZTE CORPORATION

Page 19: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 2 NAT Configuration

Instructions This command is to clear all NAT translations, specified NAT trans-lations, all translations produced by a specific NAT rule, or thetranslations containing a global/local address.

Example � This command describes how to clear all NAT translations.ZXR10(config)#clear ip nat translations

� This command describes how to clear specified NAT transla-tions.ZXR10(config)#clear ip nat translations 2.2.2.2 80 1.1.1.1 80

� This command describes how to clear all translations producedby a dynamic NAT rule.ZXR10(config)#clear ip nat translations list 2

� This command describes how to clear the translations of aglobal/local address.ZXR10(config)#clear ip nat translations global 2.2.2.2

ip natPurpose Use this command to configure the NAT attribute of the interface.

Remove the NAT attribute with the no command.

Command Modes Interface configuration

Syntax ip nat {inside|outside}

no ip nat {inside|outside}

Example � This example describes how to configure fei_5/1 interface as aNAT inside interface.ZXR10(config)#interface fei_5/1ZXR10(config-if)#ip nat inside

� This example describes how to configure fei_3/1 interface as aNAT outside interface.ZXR10(config)#interface fei_3/1ZXR10(config-if)#ip nat outside

ip nat inside sourcePurpose Use this command to configure the NAT rules originated from the

internal network. Delete the NAT rules with the no command.

Command Modes Global configuration

Syntax ip nat inside source {list <list-number> pool <pool-name>[overload [<interface-name>]]| list <list-number> interface <intface-name>|static <local-ip><global-ip>| static {tcp | udp}<global-ip><global-port><local-ip><local-port>}

no ip nat inside source {list <list-number> pool <pool-name>[overload][<interface-name>]| list <list-number> interface

Confidential and Proprietary Information of ZTE CORPORATION 9

Page 20: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

<intface-name>|static <local-ip><global-ip>| static {tcp |udp}<global-ip><global-port><local-ip><local-port>}

SyntaxDescription

<list-number> ACL for the local addresses in the dynamicNAT rules, ranging 1 ~ 99

<pool-name> Address pool for the global addresses in thedynamic NAT rules, 1 ~ 16 characters

<interface-name> Export interface specified in the dynamic NATrules

<local-ip> Local IP address of in the static NAT rules inthe form of dotted decimal notation

<global-ip> Global IP address of in the static NAT rules inthe form of dotted decimal notation

<local-port> Local port in the static NAT port translationrules

<global-port> Global port in the static NAT port translationrules

Instructions This command is used to configure the translation rules for thestatic non-port translation, static PAT, dynamic non-port transla-tion and dynamic PAT originated from the internal network.

Example � This example describes how to configure the static NAT non-port translation rules.ZXR10(config)#ip nat inside source static10.1.1.1 202.119.230.9

� This example describes how to configure the static NAT porttranslation rules.ZXR10(config)#ip nat inside source static tcp10.1.1.1 80 202.119.230.9 80

� This example describes how to configure the dynamic NATtranslation rules.ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.254prefix-length 24ZXR10(config)#ip nat inside source list 3 pool p1

� This example describes how to configure the NAT dynamicreusable rule.ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.254prefix-length 24ZXR10(config)#ip nat inside source list 3 pool p1 overload

� This example describes how to configure the NAT dynamicreusable rule, and then bind it to the export interface.ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.254prefix-length 24ZXR10(config)#ip nat inside source list 3 pool p1 overloadfei_4/2

10 Confidential and Proprietary Information of ZTE CORPORATION

Page 21: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 2 NAT Configuration

� This example describes how to configure the NAT dynamictranslation rule with interface address multiplexing.ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255ZXR10(config)#interface fei_3/1ZXR10(config-if)#ip address 170.1.1.1 255.255.255.0ZXR10(config-if)#exitZXR10(config)#ip nat inside source list 3 interface fei_3/1

RelatedCommands

access-list

ip access-list

ip nat pool

ip nat loggingPurpose Use this command to set the NAT log. Delete the configuration

with the no command.

Command Modes Global configuration

Syntax ip nat logging {{all | event | mapping}|{source | destination}<ip-addr>}}

no ip nat logging {{all | event | mapping}|{source | destination}<ip-addr>}}

SyntaxDescription

<ip-addr> Source/Destination IP address of record inthe dotted decimal notation

Instructions � all means the log records event and mapping.

� source | destination means the log records only NAT infor-mation of the specified source/destination address.

� Platform V4.6.02 provides this function, while the ZXR10 GARdoes not.

Example � This example describes how to set to record about NAT trans-lations.ZXR10(config)#ip nat logging mapping

� This example describes how to set to record about NAT trans-lation failures.ZXR10(config)#ip nat logging event

� This example describes how to set to record NAT translationsof the specified source address.ZXR10(config)#ip nat logging source 1.1.1.19

� This example describes how to set to record NAT translationsof the specified destination address.ZXR10(config)#ip nat logging destination 10.1.1.34

Confidential and Proprietary Information of ZTE CORPORATION 11

Page 22: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

ip nat max-entry-numberPurpose Use this command to configure the entry number which is sup-

ported by NAT.

Command Modes Global configuration

Syntax ip nat max-entry-number <max-entry-number>

SyntaxDescription

<max-entry-number> The entry number which is supported by NAT.The value is 32, 64, 128, 256, 512 and 1024.The default value is 64.

Instructions This command is only supported by ZXR10 GAR.

Example This example describes how to configure the entry number whichis supported by NAT is 128K.ZXR10(config)#ip nat max-entry-number 128

ip nat multipoolPurpose Use this command to enter into NAT address pool configuration

mode. If the condition is matched, then perform NAT multi-net-work segments address pool configuration on NAT address poolconfiguration mode. Delete global multi-network segments ad-dress pool with the no command.

Command Modes Global configuration

Syntax ip nat multipool <pool-name> prefix-length <prefix-length>

no ip nat multipool <pool-name>

SyntaxDescription

<pool-name> The name of address pool. 1~16 characters.

<prefix-length> The prefix length of network 24~30

Example This example describes how to enter into NAT multi-network seg-ments address pool configuration mode. This NAT multi-networksegments address pool name is p1.ZXR10(config)#ip nat multipool p1 prefix-length 24ZXR10(config-ipnat-pool)#

ip nat poolPurpose Use this command to configure the global address pool of the dy-

namic NAT. Delete the global address pool with the no command.

Command Modes Global configuration

12 Confidential and Proprietary Information of ZTE CORPORATION

Page 23: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 2 NAT Configuration

Syntax ip nat pool <pool-name><start-address><end-address> prefix-length <prefix-length>

no ip nat pool <pool-name>

SyntaxDescription

<pool-name> Name of the address pool, 1 ~ 16 characters

<start-address> Starting address of the pool in the dotteddecimal notation

<end-address> Ending address of the pool in the dotteddecimal notation

<prefix-length> Length of the network prefix, ranging 24 ~ 32

Example This example describes how to configure an address pool namedp1 from 170.1.1.1 to 170.1.1.78.ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.78prefix-length 24

ip nat servicePurpose Use this command to configure ALG application of non-standard

interface. Delete the configuration with the no command.

Command Modes Global configuration

Syntax ip nat service ftp port <port-number>

no ip nat service ftp port <port-number>

SyntaxDescription

<port-number> Port number, 1~65535

Example This example describes how to configure FTP ALG application onport 21.ZXR10(config)#ip nat service ftp port 21

ip nat slot-numberPurpose Use this command to configure slot number which enables NAT

service. Delete this configuration with the no command.

Command Modes Global configuration

Syntax ip nat slot-number <slot-number>

no ip nat slot-number

SyntaxDescription

<slot-number> slot number, 1~12

Instructions This command is only supported by ZXR10 7800.

Confidential and Proprietary Information of ZTE CORPORATION 13

Page 24: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Example This example describes how to configure the slot number as 3 toenable NAT service.ZXR10(config)#ip nat slot-number 3

ip nat startPurpose Use this command to enable the NAT module.

Command Modes Global configuration

Syntax ip nat start

Example This example describes how to start nat in global configurationmode.ZXR10(config)#ip nat start

ip nat stopPurpose Use this command to stop the NAT module.

Command Modes Global configuration

Syntax ip nat stop

Example This example describes how to stop nat in global configurationmode.ZXR10(config)#ip nat stop

ip nat translation maximalPurpose Use this command to set the maximum number of NAT transla-

tions for each internal address. Restore the default with the nocommand.

Command Modes Global configuration

Syntax ip nat translation maximal {<list-number>| default}<max-value>

no ip nat translation maximal {<list-number>| default}

SyntaxDescription

<list-number> ACL of local addresses in the dynamic NATrules, ranging 1 ~ 99

<max-value> Maximum number of translations of a singleinternal address, ranging 1 ~ 65535, 65535by default

Example � This example describes how to set the maximum number ofNAT translations for each internal address.

14 Confidential and Proprietary Information of ZTE CORPORATION

Page 25: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 2 NAT Configuration

ZXR10(config)#ip nat translation maximal default 100

� This example describes how to set the maximum number ofNAT translations for each internal address in the ACL.ZXR10(config)#ip nat translation maximal 2 100

ip nat translation timeoutPurpose Use this command to configure the aging time of the translation

produced by the NAT rule if it is not active (that is, not participatingin the NAT translation). Restore the default with the no command.

Command Modes Global configuration

Syntax ip nat translation timeout class {a | b | c | d | e}<timeout>

ip nat translation timeout class protocol {icmp | ip | tcp[port <dst-port>]| udp [port <dst-port>]}{a | b | c | d | e}

no ip nat translation timeout class {a | b | c | d | e}

no ip nat translation timeout class protocol {icmp | ip | tcp[port <dst-port>]| udp [port <dst-port>]}

SyntaxDescription

<timeout> Maps the aging time in second, ranging 20 ~2147483647, a: 20, b: 60, c:300, d: 1200,and e: 3600 by default

<dst-port> Generates the destination port of thetranslation packet, ranging 1 ~ 65534

Instructions The NAT translations generated by the static NAT rule do not par-ticipate in the aging operations.

Example � This example describes how to configure the aging time of levela as 600 seconds.ZXR10(config)#ip nat translation timeout class a 600

� This example describes how to configure the aging level ofHTTP as b.ZXR10(config)#ip nat translation timeout protocol tcp 80 b

show ip nat countPurpose Use this command to display address-based NAT statistics in a

descending way.

Command Modes Privileged EXEC

Syntax show ip nat count {by-max <count>| by-used <count>|global <global-ip>| local <local-ip>}

Confidential and Proprietary Information of ZTE CORPORATION 15

Page 26: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription <count> Maximum count, 1 ~ 1024

<global-ip> The global address to specify

<local-ip> The local address to specify

Instructions The displayed contents include the internal address, number inuse, maximum number to use, and maximum limit number.

Example � This example describes how to Display NAT address statisticsin the system in the descending way.ZXR10#show ip nat count by-used 3ID Inside local current max-used limit1 100.100.11.143 1 1 -----2 100.100.11.142 1 1 -----3 100.100.11.141 1 1 -----

� This example describes how to display NAT statistics of a spe-cific address in the system.ZXR10#show ip nat count local 100.1.1.1ID Inside local current max-used limit1 100.1.1.1 3 100 -----

RelatedCommands

show ip nat translations

show ip nat statisticsPurpose Use this command to display NAT statistics.

Command Modes Privileged EXEC

Syntax show ip nat statistics

Instructions The displayed contents cover number of active NAT translations(generates by both static and dynamic rules), maximum numberof dynamic NAT translations, current/maximum number of internaladdresses, statistics of internal and external ports, times of NATsuccesses and failures, number of timed out NAT translations, andnumber of cleared NAT translations.

In the displayed contents, uEngine means count of micode NATmodule processing, and protocol means count of protocol processNAT module processing.

Example This example describes how to display the NAT statistics in thesystem.ZXR10#show ip nat statisticsTotal active translations: 3066 (1 static, 3065 dynamic)Maximal active dynamic translations: 3237Current local ipaddrs: 2(3238 maximal)Outside interfaces:fei_6/8Inside interfaces:fei_6/1Hits: 65620 (uEngine: 0; protocol: 65620)Misses: 8932 (uEngine: 8931; protocol: 1)Expired translations: 63642Clear translations: 0

16 Confidential and Proprietary Information of ZTE CORPORATION

Page 27: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 2 NAT Configuration

RelatedCommands

clear ip nat statistics

ip nat

ip nat inside source

ip nat translation timeout

show ip nat translationsPurpose Use this command to display active NAT translations.

Command Modes Privileged EXEC

Syntax show ip nat translations {*|{global <global-ip>|local <local-ip>}}

SyntaxDescription

<global-ip> Global IP address of NAT translations in theform of dotted decimal notation

<local-ip> Local IP address of NAT translations in theform of dotted decimal notation

Instructions The displayed contents include NAT internal and external ad-dresses, and port translation information in case of dynamicalreusable NAT.

Example � This example describes how to display all NAT translations inthe current system.ZXR10#show ip nat translationsPro Inside global Inside local TYPE--- 170.1.1.254 10.1.1.254 S/---- 170.1.1.1:1024 10.1.1.1:1254 D/e--- 170.1.1.1:1025 10.1.1.1:1255 D/e

� This example describes how to display all NAT translations ofa specific address in the current system.ZXR10#show ip nat translations local 10.1.1.1Pro Inside global Inside local TYPE--- 170.1.1.1:1024 10.1.1.1:1254 D/e--- 170.1.1.1:1025 10.1.1.1:1255 D/e

RelatedCommands

ip nat inside source

Confidential and Proprietary Information of ZTE CORPORATION 17

Page 28: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

This page is intentionally blank.

18 Confidential and Proprietary Information of ZTE CORPORATION

Page 29: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 3

Address PoolConfiguration

Table of Contentsclear ip pool conflict-ip .......................................................19conflict-time .....................................................................20distribute ip pool ...............................................................20exclude ............................................................................21ip local pool ......................................................................21ip pool .............................................................................22network ...........................................................................22range...............................................................................23show ip local pool ..............................................................24

clear ip pool conflict-ipPurpose Use this command to clear the conflict-ip in ip pool.

Command Modes Privileged EXEC

Syntax clear ip pool conflict-ip { all |[ pool <pool-name>]}[ slot <npc-num>]

SyntaxDescription

<pool-name> The ip pool name, 1~16 characters.

<npc-num> The number of npc, for distributed modedisplay.

Instructions The platform version 4.08.22 and upgrade versions support thiscommand.

Example This example describes how to clear the conflict-ip in ip pool.ZXR10#clear ip pool conflict-ip all

Confidential and Proprietary Information of ZTE CORPORATION 19

Page 30: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

ip pool

conflict-timePurpose Use this command to configure the conflict time of IP address in

an address pool. Restore the default configuration with the nocommand.

Command Modes IP pool configuration

Syntax conflict-time <time>

no conflict-time

SyntaxDescription

<time> Conflict time value. 1~18000 minutes

Defaults If this area is configured, it is 30 minutes by default.

Instructions The platform version V4.8.02 and the upgrade version support thiscommand.

Example This example describes how to configure the conflict time as 60minutes.ZXR10(config-ip-pool)#conflict-time 60ZXR10(config-ip-pool)#

RelatedCommands

ip pool

distribute ip poolPurpose Use this command to set the working mode of IP POOL to dis-

tributed.

Command Modes Privileged EXEC

Syntax distribute ip pool

no distribute ip pool

Instructions The platform version 4.08.22 and upgrade versions of distributeddevices support this command.

After enabling this command, the address disposal(apply/release)is executed on local linecard, no longer on main control RP. Theeffeciency is improved greatly. But all the disposal is on the inde-pendent linecard, so this mode can not be used in some occasions.

� For example, all layer-3 interfaces across boards(such asSupVLAN interface) are bound to ip pools with the same name.Then users from different linecards will be disributed with thesame ip address.

� Binding layer-3 interfaces across boards to one ippool alsoleads to the same ip address for different users.

This command is applied to simple networking.

20 Confidential and Proprietary Information of ZTE CORPORATION

Page 31: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 3 Address Pool Configuration

Example This example describes how to show pool1 configuration.ZXR10(config)#distribute ip poolZXR10(config)#

RelatedCommands

ip pool

excludePurpose Use this command to configure the reserved address of an IP ad-

dress pool. Delete the configuration with the no command.

Command Modes IP pool configuration

Syntax exclude <low_ip_addr>[<hig_ip_addr>]

no exclude <low_ip_addr>[<hig_ip_addr>]

SyntaxDescription

<low_ip_addr> The starting lowest address in the range ofreserved address, or specify an address.

<hig_ip_addr> The highest address in the range of reservedaddress.

Instructions � The platform version V4.8.02 and the upgrade version supportthis command.

� The parameter has to be a sub group of this address pool.

Example This example describes how to configure the reserved address as2.2.2.10~2.2.2.30ZXR10(config)#ip pool pool1ZXR10(config-ip-pool)#exclude 2.2.2.10 2.2.2.30

RelatedCommands

ip pool

ip local poolPurpose Use this command to create the address pool name and the ad-

dress range items. Delete the IP address pool with the no com-mand.

Command Modes Global configuration

Syntax ip local pool <pool-name><begin_ip_addr><last_ip_addr><ip_mask>

no ip local pool <pool-name>

SyntaxDescription

<pool-name> Address pool name, 1 ~ 16 characters

<begin_ip_addr> Start IP address, in the dotted decimalnotation

Confidential and Proprietary Information of ZTE CORPORATION 21

Page 32: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

<last_ip_addr> End IP address, in the dotted decimal notation

<ip_mask> Mask, in the dotted decimal notation

Instructions Considering the compatibility of the former versions, this com-mand is kept. The command ip pool is suggested to use.

Example This example describes how to configure the name of IP_POOL aspool1.ZXR10(config)#ip local pool pool1 5.5.5.5 5.5.5.55255.255.255.0ZXR10(config)#

RelatedCommands

show ip local pool

ip poolPurpose Use this command to create IP address pool which is used by DHCP

function, and enter into the relevant address pool configurationmode. Delete the address pool with the no command.

Command Modes Global configuration

Syntax ip pool <pool-name>

no ip pool <pool-name>

SyntaxDescription

<pool-name> The name of ip addresses pool. 1~16characters.

Instructions The platform version V4.8.02 and the upgrade version support thiscommand.

Example This example describes how to name the IP_POOL as pool1.ZXR10(config)#ip pool pool1ZXR10(config-ip-pool)#

RelatedCommands

show ip local pool

networkPurpose Use this command to collect all suitable IP addresses in a sub net-

work into the range of address pool. Delete the configuration withthe no command.

Command Modes IP pool configuration

Syntax network <net_number><net_mask>

no network <net_number><net_mask>

22 Confidential and Proprietary Information of ZTE CORPORATION

Page 33: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 3 Address Pool Configuration

SyntaxDescription

<net_number> The network number of a sub network

<net_mask> The mask of sub network

Instructions � The platform version V4.8.02 and the upgrade version supportthis command.

� It provides the function of fast address range configuration.

� The instruction refers to the command range in detail.

Example This example describes how to collect the network segmentinto address pool, which IP address is 2.2.2.1 and the mask is255.255.255.0.ZXR10(config)#ip pool pool1ZXR10(config-ip-pool)#network 2.2.2.1 255.255.255.0i

RelatedCommands

ip pool

show ip local pool

rangePurpose Use this command to configure the address range of IP address

pool. Delete the configuration with the no command.

Command Modes IP pool configuration

Syntax range <begin_ip_addr><last_ip_addr><ip_mask>

no range <begin_ip_addr><last_ip_addr><ip_mask>

SyntaxDescription

<begin_ip_addr> The starting address of IP address pool

<last_ip_addr> The ending address of IP address pool

<ip_mask> Address mask

Instructions � This command configures the different network segment ad-dresses, and distributes the available addresses according tothe configuration order.

� Make sure that the reasonable address range is configured ac-cording to the network plan when applying DHCP. Avoiding theaddress in IP POOL fails to pass the route test on DHCP server,which causes the DHCP user can not obtain the address.

Example This example describes how to configure the range of IP_POOL1as 2.2.2.10~2.2.2.200, the mask as 255.255.255.0.ZXR10(config)#ip pool pool1ZXR10(config-ip-pool)#range 2.2.2.10 2.2.2.200 255.255.255.0

RelatedCommands

ip pool

show ip local pool

Confidential and Proprietary Information of ZTE CORPORATION 23

Page 34: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

show ip local poolPurpose Use this command to show configuration information of the local

address pool.

Command Modes Privileged EXEC

Syntax show ip local pool [[configure <pool-name>[vrf-instance<vrf-name>]]|[conflict-ip <pool-name>[vrf-instance <vrf-name>[slot <npc-num>]| slot <npc-num>]]|[ exclude-ip<pool-name>[vrf-instance <vrf-name>]|[used-ip <pool-name>[vrf-instance <vrf-name>][slot <npc-num>]| slot<npc-num>]

SyntaxDescription

<pool-name> Ip pool name, 1~16 characters

<vrf-name> VPN name

<npc-num> The number of npc, for distributed modedisplay

Instructions The platform version 4.08.02 support this command. The platformversion 4.08.22 and upgrade versions support the distributed dis-play command.

Example This example describes how to show the configuration of pool1 byuser defined.ZXR10#show ip local pool configure pool1

RelatedCommands

ip pool

24 Confidential and Proprietary Information of ZTE CORPORATION

Page 35: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 4

Time RangeConfiguration

Table of Contentsabsolute...........................................................................25debug time-range..............................................................26periodic............................................................................26show time-range ...............................................................27time-range .......................................................................27time-range disable.............................................................28time-range enable .............................................................28

absolutePurpose Use this command to configure absolute time range. Delete the

absolute time range with the no command.

Command Modes TimeRange configuration

Syntax absolute [start <time-date>][end <time-date>]

no absolute

SyntaxDescription

[start <time-date> the starting time of absolute time range

end <time-date> the ending time of absolute time range

Instructions � The format of <time-date> as hour: minute: second: month:day: year. The minimal time is 2001_01_01 00:00. The sec-ond has to be the multiple of 15.

� Only an absolute time range exists in a TimeRange list. Abso-lute time range defines the effective time range of all lists.

Example This example describes how to enter into TimeRange configurationmode.ZXR10(config)#time-range myTimeZXR10(config-tr)#absolute start 08:00:00 10-01-2007 end08:00:00 10-30-2007ZXR10(config)#

RelatedCommands

show time-range

time-range

Confidential and Proprietary Information of ZTE CORPORATION 25

Page 36: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debug time-rangePurpose Use this command to print the system time, the name of TimeRa

nge and the former state, the next state and so on when the stateof TimeRange is changed.

Command Modes Privileged EXEC

Syntax debug time-range [change-to active | inactive]

SyntaxDescription

change-to Display which kinds of state conversioninformation

active The TimeRange list changes from inactive toactive

inactive The TimeRange list changes from active toinactive

Example This example describes how to print the TimeRange list informationwhich the input state changes from inactive to active.ZXR10#debug time-range change-to activeZXR10#terminal monitorZXR10#

RelatedCommands

show time-range

time-range

periodicPurpose Use this command to configure periodic time range. Delete the

periodic time range with the no command.

Command Modes TimeRange configuration

Syntax periodic <days-of-week hh:mm:ss> to [days-of-week]<hh:mm:ss>

no periodic <days-of-week hh:mm:ss> to [days-of-week]<hh:mm:ss>

SyntaxDescription

<hh:mm:ss> hour: minute: second. The second has to bethe multiple of 15.

<days-of-week> It can be Monday, Tuesday, a specified dateor some days during the week: Monday,Wednesday, Thursday, Friday, Saturday,Sunday. Or it can be daily, weekend,weekdays

Example This example describes how to enter into standard TimeRange con-figuration mode.ZXR10(config)#time-range myTimeZXR10(config-tr)# periodic daily 08:00:00 to 23:00:00

26 Confidential and Proprietary Information of ZTE CORPORATION

Page 37: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 4 Time Range Configuration

RelatedCommands

show time-range

time-range

show time-rangePurpose Use this command to display the configured time segment.

Command Modes All modes

Syntax show time-range [<time-range-name>]

SyntaxDescription

<time-range-name> Time segment name, 1~31 characters. Thefirst character can not be number.

Example This example describes how to show the time range test contents.ZXR10(config)#time-range myTimeZXR10(config-tr)# absolute start 08:00:00 10-01-2007end 08:00:00 10-30-2007ZXR10(config-tr)# periodic daily 08:00:00 to 23:00:00ZXR10(config-tr)# exitZXR10(config)#show time-rangeCurrent time is 14:37:13 10-15-2007 Mondaytime-range ly <active>

absolute start 08:00:00 10-01-2007 end 08:00:00 10-30-2007periodic daily 08:00:00 to 23:00:00

ZXR10(config)#

RelatedCommands

time-range

time-rangePurpose Use this command to configure the time range. Delete this con-

figuration with the no command.

Command Modes Global configuration

Syntax time-range <time-range-name>

SyntaxDescription

<time-range-name> The name of time range. 1~31 characters.The first character can not be number.

Instructions � At most 12 time ranges can be hold on a TimeRange list, in-cluding absolute time range and periodic time range.

� On the state of TimeRange disable, all TimeRange lists do nottake any effect, that is, they are on active state all the time,and do not change state with time.

Example This example describes how to enter into standard TimeRange con-figuration mode, that is, create TimeRange list myTime.ZXR10(config)#time-range myTime

Confidential and Proprietary Information of ZTE CORPORATION 27

Page 38: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

ZXR10(config-tr)#exitZXR10(config)#no time-range myTime

RelatedCommands

show time-range

time-range disablePurpose Use this command to disable TimeRange function.

Command Modes Global configuration

Syntax time-range disable [clear]

SyntaxDescription

clear Whether to clear the non-default configurationafter disabling the function.

Instructions When the function of TimeRange has been disabled, its configurationcan not be cleared by the command time-range disable [clear].

Example This example describes how to disable the function of TimeRange.XR10(config)#time-range disable//disable but keep the configurationZXR10(config)#time-range disable clear// disable and clear the configuration

RelatedCommands

time-range enable

time-range enablePurpose Use this command to enable the function of TimeRange.

Command Modes Global configuration

Syntax time-range enable

Example This example describes how to enable the function of TimeRange.ZXR10(config)#time-range enable

RelatedCommands

time-range disable

28 Confidential and Proprietary Information of ZTE CORPORATION

Page 39: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 5

Event-list Configuration

Table of Contentsevent-list..........................................................................29interface ..........................................................................29logic ................................................................................30no event-list all .................................................................31show event-list .................................................................31show event-list reference ...................................................31time-range .......................................................................32

event-listPurpose Use this command to configure all event lists.

Command Modes Global configuration

Syntax event-list <name>

SyntaxDescription <name> name of the event lists.

Example This example describes how to configure and delete event lists.ZXR10(config)#event-list myEventZXR10(config-event)#time-range morning activeZXR10(config-event)#exitZXR10(config)#no event-list all

RelatedCommands

show event-list

interfacePurpose Use this command to configure the interface up/down sub event.

Delete the sub event with the no command.

Command Modes Event configuration

Syntax interface <interface-name>{protocol | physical | admin}{down | up}

no interface <interface-name>{protocol | physical | admin}{down | up}

Confidential and Proprietary Information of ZTE CORPORATION 29

Page 40: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription

<interface-name> Interface name

protocol Interface protocol state

admin Interface management state

physical Interface physical state

down Interface down event

up Interface up event

Instructions � The sub event only can be configured for the existed interface.The interface can be all type except NULL interface.

� When the interface board is pulled out, all the relevant subevents will be cleared. When the interface board is installed,all the relevant sub interfaces will be recovered.

� When the virtual interface is deleted, all the relevant subevents will be cleared.

Example This example describes how to define the sub event that protocolstate is down on interface fei_2/1.ZXR10(config)#event-list myEventZXR10(config-event)#interface fei_2/1 protocol downZXR10(config-event)#exit

RelatedCommands

show event-list

logicPurpose Use this command to specify the calculation logic of event-list.

Command Modes Event configuration

Syntax logic {add | or}

SyntaxDescription

add The relationship between sub events is add.

or The relationship between sub events is or

Example This example describes how to specify the event list logical is add.ZXR10(config)#event-list myEventZXR10(config-event)#logic addZXR10(config-event)#exitZXR10(config)#

30 Confidential and Proprietary Information of ZTE CORPORATION

Page 41: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 5 Event-list Configuration

RelatedCommands

show event-list

no event-list allPurpose Use this command to delete all event-lists.

Command Modes Global configuration

Syntax no event-list all

SyntaxDescription

all Delete all ELK event lists

Instructions This command can not be used when any event list is using.

Example This example describes how to delete all event lists.ZXR10(config)#no event-list all

RelatedCommands

show event-list reference

show event-listPurpose Use this command to show the information of event lists.

Command Modes All modes

Syntax show event-list [<name>]

SyntaxDescription <name> The name of event list

Example This example describes how to show the information of myEvent.ZXR10(config)#show event-list myEventevent-list myEvent <happen>time-range morning activeZXR10(config)#show event-listCurrent event lists: 2/512Current event entries: 1/512event-list myEvent <happen>time-range morning activeevent-list myEvent2<unhappen>ZXR10(config)#

RelatedCommands

event-list

show event-list referencePurpose Use this command to the reference information of event-list.

Command Modes All modes

Syntax show event-list reference [<name>]

Confidential and Proprietary Information of ZTE CORPORATION 31

Page 42: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription <name> The name of event list

Example This example describes how to show the reference information ofmyEvent.ZXR10(config)#show event-list myEventName Status Application Reference-timesmyEvent happened access-list 3ZXR10(config)#

RelatedCommands

event-list

time-rangePurpose Use this command to configure the time range. Delete this con-

figuration with the no command.

Command Modes Global configuration

Syntax time-range <time-range-name>{ active| inactive}

no time-range <time-range-name>{ active| inactive}

SyntaxDescription

<time-range-name> The name of TIMERANGE lists

active The active event of TIMERANGE

inactive The inactive event of TIMERANGE

Instructions This command can only be applied for the configuration of theexisted TIMERANGE list.

Example This example describes how to configure the TIMERANGE subevent named morning in myEvent list.ZXR10(config)#event-list myEventZXR10(config-event)#time-range morning activeZXR10(config-event)#exit

RelatedCommands

show event-list

32 Confidential and Proprietary Information of ZTE CORPORATION

Page 43: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 6

Port Loop DetectionConfiguration

Table of Contentsloop-detect interface..........................................................33loop-detect interface vlan ...................................................34loop-detect protect-interface...............................................34loop-detect reopen-time .....................................................35show loop-detect interface..................................................35show loop-detect interface-detail .........................................36show loop-detect protect-interface.......................................36show loop-detect reopen-time.............................................37

loop-detect interfacePurpose Use this command to enable loop detection on one or more ports.

Command Modes Global configuration

Syntax loop-detect interface <port-name>[enable | disable]

SyntaxDescription

interface <port-name>

Specifies a port

enable Enables loop detection on the specified port

disable Disables loop detection on the specified port

Defaults If this area is configured, it is disabled by default.

Example This example describes how to enable loop detection on fei_1/1-2and fei_2/3.ZXR10(config)#loop-detect interface fei_1/1-2,fei_2/3 enable

Confidential and Proprietary Information of ZTE CORPORATION 33

Page 44: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

show loop-detect interface

loop-detect interface vlanPurpose Use this command to configure the VLAN for port loop detection,

that is, specify the VLAN in which loop detection is performed. Upto eight VLANs can be specified on a port.

Command Modes Global configuration

Syntax loop-detect interface <port-name> vlan <vlan-id>[enable |disable]

SyntaxDescription

interface <port-name>

Specifies a port

vlan <vlan-id> Specifies the vlans for port loop detection

enable Enables loop detection in the specified vlanon the port

disable Disables loop detection in the specified vlanon the port

Defaults No VLAN is configured by default, and loop detection is performedin the VLAN corresponding to the PVID only.

Example This example describes how to enable loop detection in vlan2-9 onfei_1/1.ZXR10(config)#loop-detect interface fei_1/1 vlan 2-9 enable

RelatedCommands

show loop-detect interface-detail

loop-detect protect-interfacePurpose Use this command to set the protect port for loop detection.

Command Modes Global configuration

Syntax loop-detect protect-interface <port-name><enable |disable>

SyntaxDescription

protect-interface<port-name>

Specifies a port

enable Enables protection of loop detect

disable Disables protection of loop detect

Defaults If this area is configured, it is disabled by default.

34 Confidential and Proprietary Information of ZTE CORPORATION

Page 45: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 6 Port Loop Detection Configuration

Instructions A switch decides further operation on a port based on the protectattribute when detects loop on the port: It sends an alarm to givenotice of the loop without any other operation if the protect-inter-face attribute is enabled; or disable the port if its protect-interfaceattribute is disabled.

Example This example describes how to enable loop detection protection onfei_1/1.ZXR10(config)#loop-detect protect-interface fei_1/1 enable

RelatedCommands

show loop-detect protect-interface

loop-detect reopen-timePurpose Use this command to set the duration from port loop detection to

restart of the port disabled due to a loop.

Command Modes Global configuration

Syntax loop-detect reopen-time <interval>

SyntaxDescription

reopen-time<interval>

Duration (in minutes) from port loop detectionto restart of the port disabled due to a loop,10 minutes by default

Example This example describes how to set reopen time as 1 minute.ZXR10(config)#loop-detect reopen-time 1

RelatedCommands

show loop-detect reopen-time

show loop-detect interfacePurpose Use this command to show the port with loop detection enabled.

Command Modes Privileged EXEC

Syntax show loop-detect interface

Example This example describes how to show the port with loop detectionenabled.ZXR10(config)#show loop-detect interfacefei_1/1 fei_1/2 fei_1/3 fei_1/4fei_1/5 fei_1/6 fei_1/7 fei_1/8

Confidential and Proprietary Information of ZTE CORPORATION 35

Page 46: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

loop-detect interface

show loop-detectinterface-detail

Purpose Use this command to show the detail of the port with loop detectionenabled.

Command Modes Privileged EXEC

Syntax show loop-detect interface-detail <port-name>

SyntaxDescription

interface-detail<port-name>

Specifies a port

Example This example describes how to show the detail of fei_1/1 on whichloop detection is enabled.ZXR10(config)#show loop-detect interface-detail fei_1/1isUp isMonitor isLoop isProtecteddisable enable no enablenpNum portNum reopenTime counter1 15 60 0loopVlan vlanRange0 2 3 4 5 6 7 8 9

RelatedCommands

loop-detect interface

show loop-detectprotect-interface

Purpose Use this command to show the port with loop detection protectionenabled function.

Command Modes Privileged EXEC

Syntax show loop-detect protect-interface

Example This example describes how to show the port with loop detectionprotection enabled.ZXR10(config)#show loop-detect protect-interfacefei_1/1 fei_1/2 fei_1/3 fei_1/4fei_1/5 fei_1/6 fei_1/7 fei_1/8

36 Confidential and Proprietary Information of ZTE CORPORATION

Page 47: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 6 Port Loop Detection Configuration

RelatedCommands

loop-detect protect-interface

show loop-detectreopen-time

Purpose Use this command to show the duration from port loop detectionto restart the port disabled due to a loop.

Command Modes Privileged EXEC

Syntax show loop-detect reopen-time

Example This example describes how to show the duration from port loopdetection to restart the port disabled due to a loop.ZXR10(config)#show loop-detect reopen-timeThe reopening time of loop detect : 1(minute)ZXR10(config)#

RelatedCommands

loop-detect reopen-time

Confidential and Proprietary Information of ZTE CORPORATION 37

Page 48: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

This page is intentionally blank.

38 Confidential and Proprietary Information of ZTE CORPORATION

Page 49: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 7

Reverse TelnetConfiguration

Table of Contentsabsolute-timeout ...............................................................39disconnect line ..................................................................39line..................................................................................40password .........................................................................40session timeout.................................................................41show line config ................................................................41transport input..................................................................41work-mode.......................................................................42

absolute-timeoutPurpose Use this command to set the using timeout of a line.

Command Modes Line configuration

Syntax absolute-timeout <minutes>

SyntaxDescription

<minutes> Connection timeout, unit: minutethe defaultvalue is 24 hours .

Instructions When the time exceeds the setting timeout value, the line connec-tion is cut off.

Example This example describes how to set the absolute using time of line2 reverse telnet connection to 2 hours.ZXR10(config)#line 2ZXR10(line_config)#absolute-timeout 120

disconnect linePurpose Use this command to stop an existed reverse telnet session.

Command Modes Privileged EXEC

Syntax disconnect line <line_number>[all]

Confidential and Proprietary Information of ZTE CORPORATION 39

Page 50: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription

<line_number> Session number, the value range is 1~64

all Stop all line sessions.

Instructions Use this command to stop an existed reverse telnet connection.

Example This example describes how to disconnect the reverse telnet con-nection through line 2.ZXR10#disconnect line 2

linePurpose Use this command to enter into the line configuration mode.

Command Modes Global configuration

Syntax line <begin-line-number>[<ending-line-number>]

SyntaxDescription

<begin-line-number> Designates line number or the first linenumber in a group line

<ending-line-number>

The last line number in a group lines.

Instructions � It is applied to GAR project at present.

� When the corresponding serial physical connection does notexist, mistake hint will be returned.

Example This example describes how to enter line 2 line configuration mode.ZXR10(config)#line 2ZXR10(line_config)#

passwordPurpose Use this command to set user login password for a line.

Command Modes LINE Configuration

Syntax password <password>

no password <password>

SyntaxDescription

<password> User password, character stringthe length is3~16 characters

Example This example describes how to set the reverse telnet connectionpassword to zte on line 2.ZXR10(config)#line 2ZXR10(line_config)#password zte

40 Confidential and Proprietary Information of ZTE CORPORATION

Page 51: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 7 Reverse Telnet Configuration

session timeoutPurpose Use this command to set the session timeout for a line.

Command Modes Line Configuration

Syntax session timeout <interval>

SyntaxDescription

<interval> Time interval, unit: minute the default is 2hours. The range is 1-10000 minutes.

Instruction The line connection is cut off when exceeding the set timeout.

Example This example describes how to set the reverse telnet connectiontimeout to 10 minutes on line 2.ZXR10(config)#line 2ZXR10(line_config)#session-timeout 10

show line configPurpose Use this command to view some line or all line configuration infor-

mation.

Command Modes All modes

Syntax show line config {all |<begin-port>[<end-port>]}

SyntaxDescription

all View all line configuration information

<begin-port> The first line of a group lines

<end-port> The last line of a group lines

transport inputPurpose Use this command to set transmit protocol data that allowed re-

ceiving.

Command Modes Line configuration

Syntax transport input <telnet>

no transport input <telnet>

SyntaxDescription

<telnet> telnet protocol

Instructions It is only applied to telnet connection at present.

Example This example describes how to configure line 2 to allow telnet pro-tocol through.

Confidential and Proprietary Information of ZTE CORPORATION 41

Page 52: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

ZXR10(config)#line 2ZXR10(line_config)#transport input telnet

work-modePurpose Use this command to set the work mode of the serial port.

Command Modes Interface configuration

Syntax work-mode {transmit | com}

SyntaxDescription

transmit Sets the serial port to ordinary forward port.

com Sets the serial port to serial portcommunication.

Instructions � It is applied to GAR project at present only.

� This command can be configured on high-speed asynchronousserial port.

Example This example describes how to set the work mode is serial mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#work-mode com

42 Confidential and Proprietary Information of ZTE CORPORATION

Page 53: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 8

SFLOW Configuration

Table of Contentssflow agent.......................................................................43sflow collector ...................................................................43sflow enable .....................................................................44sflow sample.....................................................................44

sflow agentPurpose Use this command to set the IP address of sflow agent, and specify

the local UDP port to communicate with sflow collector.

Command Modes Global configuration

Syntax sflow agent-config ip-address <ipaddress>[udp-port <portnumber>]

no sflow agent-config ip-address <ipaddress>

SyntaxDescription

<ipaddress> Sflow agent address, can be any valid address

<port number> The local UDP port which is used by agent tocommunicate with collector. 6343 by default.

Instructions � Only ZXR10 6900 series supports this function.

� Local port is the communication port which is used by sflowagent to send sflow sample package.

Example � This example describes how to set IP address of sflow agentas 10.60.80.99, and use the default port to communicate.ZXR10(config)#sflow agent-config ip-address 10.60.80.99

� This example describes how to set IP address of sflow agentas 10.60.80.99, and use port 5600 to communicate.ZXR10(config)#sflow agent-config ip-address 10.60.80.99 udp-port 5600

sflow collectorPurpose Use this command to set IP address of sflow collector, and specify

the remote UDP port to communicate with sflow agent.

Confidential and Proprietary Information of ZTE CORPORATION 43

Page 54: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Command Modes Global configuration

Syntax sflow collector-config ip-address <ipaddress>[udp-port<port number>]

no sflow collector-config ip-address <ipaddress>

SyntaxDescription

<ipaddress> Sflow collector address, can be any validaddress

<port number> The remote UDP port which is used by agentto communicate with collector. 6343 bydefault. 1~65535

Instructions � Only ZXR10 69 series supports this function.

� Remote port is the communication port which is used by sflowcollector to receive sflow sample package.

Example � This example describes how to set IP address of sflow collectoras 192.168.5.203, and use the default port to communicate.ZXR10(config)#sflow collector-config ip-address192.168.5.203

� This example describes how to set IP address of sflow collectoras 192.168.5.203, and use port 9600 to communicate.ZXR10(config)#sflow collector-config ip-address 192.168.5.203 udp-port 9600

sflow enablePurpose Use this command to enable the sflow sample function.

Command Modes Global configuration

Syntax sflow [enable | disable]

Instructions Only ZXR10 6900 series supports this function.

Example � This example describes how to enable sflow sample function.ZXR10(config)#sflow enable

� This example describes how to disable sflow sample function.ZXR10(config)#sflow disable

RelatedCommands

terminal monitor

sflow samplePurpose Use this command to set the sflow sample rate on an interface.

Command Modes Interface configuration

Syntax sflow-sample-rate {ingress | egress}<rate number>

sflow-sample-rate {ingress | egress}

44 Confidential and Proprietary Information of ZTE CORPORATION

Page 55: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 8 SFLOW Configuration

SyntaxDescription

ingress | egress Specifies the direction for sflow sample

<rate number> The range of sample rate

Instructions � Only ZXR10 69 series support this function.

� Enable sflow sample function before configure sample rate.

� Sflow sample function can be configured and enabled oningress and egress direction synchronously. The sampleactions are dependent.

Example This example describes how to configure the sample rate of inter-face gei_7/23 on ingress direction as 200, and the sample rate onegress direction as 1000.ZXR10(config)#interface gei_7/23ZXR10(config-if)#sflow-sample-rate ingress 200ZXR10(config-if)#sflow-sample-rate egress 1000

Confidential and Proprietary Information of ZTE CORPORATION 45

Page 56: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

This page is intentionally blank.

46 Confidential and Proprietary Information of ZTE CORPORATION

Page 57: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 9

Stack Configuration

Table of Contentsenable stack .....................................................................47disable stack.....................................................................47nvram stack-machine-id .....................................................48nvram stack-member-priority..............................................48show switch all-neighbors...................................................48show switch all-status ........................................................49show switch neighbours .....................................................49show switch stack-ports .....................................................50show switch status ............................................................51

enable stackPurpose Use this command to enable the stack function.

Command Modes Global configuration

Syntax enable stack

Instructions � This command is only supported by the device which has stackfunction.

� It is required to restart the device after using this command.

Example This example describes how to enable the stack function of device.ZXR10(config)#enable stack

disable stackPurpose Use this command to disable the stack function.

Command Modes Global configuration

Syntax disable stack

Instructions � This command is only supported by the device which has stackfunction.

� It is required to restart the device after using this command.

Example This example describes how to disable stack function.ZXR10(config)#disable stack

Confidential and Proprietary Information of ZTE CORPORATION 47

Page 58: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

nvram stack-machine-idPurpose Use this command to configure the device ID of stack device.

Command Modes Global configuration

Syntax nvram stack-machine-id <machine id>

SyntaxDescription

<machine id> The device ID, 1~9

Instructions � This command is only supported by the device which has stackfunction.

� It is required to restart the device after using this command.

� The device ID will be written after finishing the stack topology.This command is suggested to use on PC mode.

Example This example describes how to configure the ID of stack device as4.ZXR10(config)#nvram stack-machine-id 4

nvram stack-member-priorityPurpose Use this command to configure the stack priority of stack device.

Command Modes Global configuration

Syntax nvram stack-member-priority <priority>

SyntaxDescription

<priority> The priority level of stack device, 0~255

Instructions � This command is only supported by the device which has stackfunction.

� It is required to restart the device after using this command.

Example This example describes how to configure the stack priority of stackdevice as 100.ZXR10(config)#nvram stack-member-priority 100ZXR10(config)#

show switch all-neighborsPurpose Use this command to show the neighbor information of all stack

devices.

Command Modes Privileged EXEC

Syntax show switch all-neighbors

48 Confidential and Proprietary Information of ZTE CORPORATION

Page 59: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 9 Stack Configuration

Instructions � This command is only supported by the device which has stackfunction.

� This command is only effective on stack mode.

� When there is no neighbor, the result is shown as empty.

Example This example describes how to show the neighbor information ofall stack devices.ZXR10(config)#show switch all-neighboursdevice_id neighbor-one neighbor-two--------------------------------------1 22 1

show switch all-statusPurpose Use this command to show the stack attribute information of all

stack devices.

Command Modes Privileged EXEC

Syntax show switch all-status

Instructions � This command is only supported by the device which has stackfunction.

� This command is only effective on stack mode.

Example This example describes how to show the stack attribute informa-tion of all stack devices.ZXR10(config)#show switch all-statusnum_devices: 2 system_mac:00:00:00:00:00:93master_id: 1 slave_id : 2device_id priority part mac product-type num-stk-ports------------------------------------------------------------------------1 8 master 00:00:00:00:00:93 5928F 42 31 slave 00:d0:d0:c0:56:03 5928F 4

show switch neighboursPurpose Use this command to show the neighbor information of a stack

device.

Command Modes Privileged EXEC

Syntax show switch neighbours [stack-member-number <stack-member-id>]

SyntaxDescription

stack-member-number<stack-member-id>

The ID of stack device. 1~9

Instructions � This command is only supported by the device which has stackfunction.

Confidential and Proprietary Information of ZTE CORPORATION 49

Page 60: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

� This command is only effective on stack mode.

� When this command is used without the parameter, the neigh-bor information of master device will be shown.

Example This example describes how to show the neighbor information ofmember device that ID is 1.ZXR10(config)#show switch neighboursstack-member-number 1stk_port neighbor_device_id neighbor_stk_port-----------------------------------------------4 2 4

show switch stack-portsPurpose Use this command to show the stack port information of stack

device.

Command Modes Privileged EXEC

Syntax show switch stack-ports [stack-member-number <stack-member-id>]

SyntaxDescription

stack-member-number<stack-member-id>

The ID of stack device. 1~9

Instructions � This command is only supported by the device which has stackfunction.

� This command is only effective on stack mode.

� When this command is used without the parameter, the neigh-bor information of master device will be shown.

Example This example describes how to show the stack port information ofmaster device.ZXR10(config)#show switch stack-portsstack port 3

link_state: down flags: 0x000001stp_state :

Input:Packets : 0 Bytes : 0Unicasts : 0 Multicasts: 0Broadcasts : 0 Undersize : 0Oversize : 0 CRC-ERROR : 0Dropped : 0 Fragments : 0Jabber : 0 MacRxErr : 0probe pkts : 0 route pkts: 0config pkts : 0 topo pkts : 0

Output:Packets : 0 Bytes : 0Unicasts : 0 Multicasts: 0Broadcasts : 0 Collision : 0LateCollision: 0probe pkts : 0 route pkts: 0config pkts : 0 topo pkts : 0

stack port 4

link_state: up flags: 0x00000estp_state :

50 Confidential and Proprietary Information of ZTE CORPORATION

Page 61: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 9 Stack Configuration

Input:Packets : 0 Bytes : 0Unicasts : 0 Multicasts: 0Broadcasts : 0 Undersize : 0Oversize : 0 CRC-ERROR : 0Dropped : 0 Fragments : 0Jabber : 0 MacRxErr : 0probe pkts : 2 route pkts: 5config pkts : 1 topo pkts : 1Output:Packets : 0 Bytes : 0Unicasts : 0 Multicasts: 0Broadcasts : 0 Collision : 0LateCollision: 0probe pkts : 2 route pkts: 5config pkts : 1 topo pkts : 0

show switch statusPurpose Use this command to show the stack attribute information of a

stack device.

Command Modes Privileged EXEC

Syntax show switch status [stack-member-number <stack-member-id>]

SyntaxDescription

stack-member-number<stack-member-id>]

The ID of stack device. 1~9

Instructions � This command is only supported by the device which has stackfunction.

� This command is only effective on stack mode.

� When this command is used without the parameter, the neigh-bor information of master device will be shown.

Example This example describes how to show the stack attribute informa-tion of a member device that ID is 2.ZXR10(config)#show switch status stack-member-number 1tx_port : 4 , des device id : 2Switch Mac: 00:00:00:00:00:93 device id: 1priority : 8 product type: 5928Fnum-stk-ports: 4 stack-state: ATTACHflags: 0x111b07 master_id: 1slave_id: 2 part: mastermaster-select-times: 2dest_deviceId: 2 tx-port: 4

Confidential and Proprietary Information of ZTE CORPORATION 51

Page 62: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

This page is intentionally blank.

52 Confidential and Proprietary Information of ZTE CORPORATION

Page 63: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 10

DNS ProtocolConfiguration

Table of Contentsip domain flush-cache .......................................................53ip domain lookup...............................................................53ip domain name ................................................................53ip domain server ...............................................................54show ip domain.................................................................54

ip domain flush-cachePurpose Use this command to delete DNS cache.

Command Modes Global Configuration

Syntax ip domain flush-cache

RelatedCommands

debug ip domain

ip domain lookupPurpose Use this command to enable DNS client.

Command Modes Global Configuration

Syntax ip domain lookup

no ip domain lookup

Instructions By default, DNS is enabled. Disable this function with the no com-mand.

RelatedCommands

debug ip domain

ip domain namePurpose Use this command to set DNS address.

Confidential and Proprietary Information of ZTE CORPORATION 53

Page 64: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Command Modes Global Configuration

Syntax ip domain name <domain>

no ip domain name <domain>

SyntaxDescription

<domain> Default DNS postfix, 1~150 characters.

Instructions Only one default domain postfix can be configured.

RelatedCommands

debug ip domain

ip domain serverPurpose Use this command to set DNS address.

Command Modes Global Configuration

Syntax ip domain server <server-ip>

no ip domain server <server-ip>

SyntaxDescription

<server-ip> DNS address, in format of IPv4, the maximumis 10.

RelatedCommands

debug ip domain

show ip domainPurpose Use this command to display DNS cache information.

Command Modes All modes

Syntax show ip domain

Example ZXR10#show ip domainNO Record Name A (Host) Record TTL----------------------------------------------------------1 Xuxj145873.nyversion.zte 10.44.52.92 1200

RelatedCommands

debug ip domain

54 Confidential and Proprietary Information of ZTE CORPORATION

Page 65: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

C h a p t e r 11

Debugging

Table of Contentsdebug all ..........................................................................57debug arp ........................................................................58debug atm........................................................................58debug bfd.........................................................................59debug custom-queue .........................................................59debug frame-relay lmi........................................................60debug frame-relay packet...................................................60debug gre.........................................................................61debug group-management access........................................61debug group-management all .............................................62debug group-management cluster .......................................62debug group-management zdp............................................62debug group-management ztp ............................................63debug hdlc .......................................................................63debug ip...........................................................................64debug ip bgp all ................................................................64debug ip bgp dampening ....................................................64debug ip bgp events ..........................................................64debug ip bgp in .................................................................65debug ip bgp keepalives .....................................................65debug ip bgp out ...............................................................65debug ip bgp updates.........................................................66debug ip destination ..........................................................66debug ip dhcp ...................................................................66debug ip dhcp client ..........................................................67debug ip domain ...............................................................67debug ip icmp ...................................................................68debug ip icmp detail ..........................................................68debug ip igmp...................................................................68debug ip igmp-snooping .....................................................68debug ip igmp group..........................................................69debug ip igmp interface......................................................69debug ip interface..............................................................69debug ip ippool .................................................................70debug ip msdp ..................................................................70debug ip multicast .............................................................71debug ip nat .....................................................................71debug ip ospf adj...............................................................71debug ip ospf all................................................................72debug ip ospf cspf .............................................................72debug ip ospf database-timer..............................................72debug ip ospf events..........................................................73debug ip ospf flood ............................................................73debug ip ospf lsa-generation ...............................................73debug ip ospf packet..........................................................74debug ip ospf retransmission...............................................74

Confidential and Proprietary Information of ZTE CORPORATION 55

Page 66: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debug ip ospf spf...............................................................74debug ip pimdm ................................................................75debug ip pimsm ................................................................75debug ip pim-snooping.......................................................76debug ip protocol ..............................................................76debug ip rip ......................................................................77debug ip rip all ..................................................................77debug ip rip database ........................................................77debug ip rip events............................................................78debug ip rip trigger............................................................78debug ip rsvp....................................................................78debug ip source.................................................................79debug ip tcp all .................................................................79debug ip tcp driver ............................................................80debug ip tcp driver-pak ......................................................80debug ip tcp packet ...........................................................81debug ip tcp transactions....................................................81debug ip udp ....................................................................82debug ipv6 icmp................................................................82debug ipv6 nd...................................................................83debug ipv6 ospf adj ...........................................................85debug ipv6 ospf events ......................................................85debug ipv6 ospf ifsm..........................................................86debug ipv6 ospf lsa............................................................86debug ipv6 ospf lsa-generation............................................87debug ipv6 ospf nfsm.........................................................87debug ipv6 ospf packet ......................................................88debug ipv6 ospf route ........................................................89debug ipv6 packet .............................................................89debug ipv6 rip...................................................................90debug ipv6 tcp all ..............................................................91debug ipv6 tcp driver .........................................................91debug ipv6 tcp packet ........................................................92debug ipv6 tcp transactions ................................................92debug ipv6 udp .................................................................93debug isis.........................................................................94debug isis adj-packets........................................................94debug isis all.....................................................................94debug isis snp-packets .......................................................95debug isis spf-events .........................................................95debug isis update-packets ..................................................95debug lacp all ...................................................................95debug lacp fsm .................................................................96debug lacp packet .............................................................96debug mac-ping ................................................................96debug modem...................................................................97debug mpls ldp advertisements ...........................................97debug mpls ldp all .............................................................98debug mpls ldp bindings.....................................................98debug mpls ldp l2vpn.........................................................99debug mpls ldp messages................................................. 100debug mpls ldp session .................................................... 101debug mpls ldp transport.................................................. 103debug mstp agreement .................................................... 103debug mstp all ................................................................ 104debug mstp bpdu-rx ........................................................ 104debug mstp bpdu-tx ........................................................ 104debug mstp errors ........................................................... 105debug mstp flush............................................................. 105debug mstp info .............................................................. 105

56 Confidential and Proprietary Information of ZTE CORPORATION

Page 67: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

debug mstp migration ...................................................... 106debug mstp proposals ...................................................... 106debug mstp roles ............................................................ 107debug mstp state ............................................................ 107debug mstp tc................................................................. 107debug mstp timers .......................................................... 108debug ntp packet ............................................................ 108debug ppp all.................................................................. 108debug ppp authentication ................................................. 109debug ppp data............................................................... 109debug ppp error .............................................................. 109debug ppp events............................................................ 110debug ppp lcp ................................................................. 110debug ppp multilink ......................................................... 110debug ppp ncp ................................................................ 111debug ppp packet............................................................ 111debug priority ................................................................. 112debug radius all .............................................................. 112debug radius user............................................................ 112debug radius exception .................................................... 113debug radius authentication data....................................... 113debug radius authentication error ...................................... 113debug radius authentication event ..................................... 114debug radius authentication packet.................................... 114debug radius accounting data............................................ 114debug radius accounting error ........................................... 115debug radius accounting event .......................................... 115debug radius accounting packet......................................... 115debug tunnel packet ........................................................ 116debug vbas..................................................................... 117debug voip pstn .............................................................. 117debug vrrp ..................................................................... 117show debugging .............................................................. 118terminal monitor ............................................................. 118

debug allPurpose Use this command to open all debug switches. Close all debug

switches with the no command.

Command Modes Privileged EXEC

Syntax debug all

no debug all

Defaults If this area is configured, it is invalid by default(All the debug com-mands are disabled by default).

Instructions When the debug all switch is opened, the system will be busyin outputting the debug information, which will affect the networkperformance. As a result, it is generally not recommended to openthe debug all switch.

RelatedCommands

All debug commands

terminal monitor

Confidential and Proprietary Information of ZTE CORPORATION 57

Page 68: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debug arpPurpose � Use this command to enable the packets debug function of ARP,

which displays the debug information of sending and receivingstate processed by the address resolution protocol ARP, anddisplays whether the router is sending/receiving the ARP mes-sages. Disable the arp debug function with the no command.

� Use this command to enable the trace debug function of ARP,which displays the debug information of sending and receivingflow processed by the address resolution protocol ARP, and dis-plays whether sends and receives successfully, and the failurereason. Disable the arp debug function with the no command.

Command Modes Privileged EXEC

Syntax debug arp {packets |[trace {send | receive}]| all}{interface<interface-name>| source <ip-addr>|<mac-addr>| destination <ip-addr>|<mac-addr>}

no debug arp {packets |[trace {send | receive}]| all}{interface <interface-name>| source <ip-addr>|<mac-addr>| destination <ip-addr>|<mac-addr>}

SyntaxDescription

interface Prints ARP packets on the specified interface

packets Prints ARP receiving and sending state.

trace Prints ARP receiving and sending flow.

all Prints all ARP packets state and flow.

send Prints the flow of ARP sending packet.

receive Prints the flow of ARP receiving packet.

source Prints ARP packets in the specified source IPaddress

destination Prints ARP packets in the specified destinationIP address

<interface-name> Interface name

<ip-addr> IP address

<mac-addr> MAC address

RelatedCommands

terminal monitor

debug atmPurpose Use this command to open the debug switch for ATM message

output. Close the switch with the no command.

Command Modes Privileged EXEC

58 Confidential and Proprietary Information of ZTE CORPORATION

Page 69: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Syntax debug atm {packet | oam}

no debug atm {packet | oam}

SyntaxDescription oam Output ATM management cell packets

packet Output atm messages

RelatedCommands

terminal monitor

debug bfdPurpose Use this command to enable BFD debug switch and show the rel-

evant work information of BFD.

Command Modes Privileged EXEC

Syntax debug bfd {bytes | error | events | packet}

no debug bfd {bytes | error | events | packet}

SyntaxDescription

bytes Inputs BFD packet

error Inputs BFD error information

events Inputs BFD event information

packet Inputs BFD packet (the basic information)

Defaults If this area is configured, it is invalid by default.

RelatedCommands

terminal monitor

debug custom-queuePurpose Use this command to monitor the queue process activities of the

customized queue. Cancel the monitoring with the no command.

Command Modes Privileged EXEC

Syntax debug custom-queue

no debug custom-queue

Instructions It is applied to ZXR10 GAR and ZXR10 ZSR.

Confidential and Proprietary Information of ZTE CORPORATION 59

Page 70: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug frame-relay lmiPurpose Use this command to open the debug switch to print the debug

information of the local management interface (LMI). Close thedebug switch with the no command.

Command Modes Privileged EXEC

Syntax debug frame-relay lmi [interface <interface-name>]

no debug frame-relay lmi [interface <interface-name>]

SyntaxDescription

interface <interface-name>

Name of the interface for printing the LMIdebug information

Instructions It is applied to ZXR10 GAR, ZXR10 ZSR.

Example � This example describes how to print the LMI debug information.ZXR10#debug frame-relay lmi

� This example describes how to print the LMI debug information(for a single interface serial_2/1).ZXR10#debug frame-relay lmi interface serial_2/1

RelatedCommands

terminal monitor

debug frame-relay packetPurpose Use this command to open the debug switch to print the frame re-

lay packet information. Close the debug switch with the no com-mand.

Command Modes Privileged EXEC

Syntax debug frame-relay packet [interface <interface-name>[dlci<dlci>]]

no debug frame-relay packet [interface <interface-name>[dlci <dlci>]]

SyntaxDescription

interface <interface-name>

Name of the interface for printing the packetdebug information

dlci <dlci> dlci number of the packet debug informationto be printed, in the range of 16~1007

Instructions It is applied to ZXR10 GARZXR10 ZSR.

Example � This example describes how to print the packet debug infor-mation.

60 Confidential and Proprietary Information of ZTE CORPORATION

Page 71: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

ZXR10#debug frame-relay packet

� This example describes how to print the packet debug infor-mation of the specified interface serial_2/1.ZXR10#debug frame-relay packet interface serial_2/1

� This example describes how to print the packet debug informa-tion of the specified interface serial_2/1 with dlci number 101.ZXR10#debug frame-relay packet interface serial_2/1 dlci 101

RelatedCommands

terminal monitor

debug grePurpose Use this command to open the GRE debug switch to display the

GRE working information. Close the debug switch with the nocommand.

Command Modes Privileged EXEC

Syntax debug gre

no debug gre

Instructions ZXR10 5900 series does not support this command.

RelatedCommands

terminal monitor

debug group-managementaccess

Purpose Use this command to enable the debug function of ACCESS submodule.

Command Modes Privileged EXEC

Syntax debug group-management access {all | error | packet |event}

no debug group-management access {all | error | packet |event}

SyntaxDescription

all The print control of all access sub moduleinformation

error Prints error information

event Prints event information

packet Prints packet information

Confidential and Proprietary Information of ZTE CORPORATION 61

Page 72: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debug group-managementall

Purpose Use this command to enable the debug function of group manage-ment protocol and show all debug information. Disable the debugfuction with the no command.

Command Modes Privileged EXEC

Syntax debug group-management all

no debug group-management all

debug group-managementcluster

Purpose Use this command to enable debug function of the cluster man-agement protocol to display debugging information of the clustermanagement protocol processing, display whether cluster man-agement messages are sent on the switch, display whether clus-ter management messages are received, and cluster managementstate machine change information. Disable the function with theno command.

Command Modes Privileged EXEC

Syntax debug group-management cluster {all | error| packet |event | state}

no debug group-management cluster {all | error| packet |event | state}

SyntaxDescription

all The print control of all CLUSTER sub moduleinformation

error Prints error information

event Prints event information

packet Prints packet information

state Prints state information on CLUSTER module

debug group-managementzdp

Purpose Use this command to enable debug function of ZDP managementprotocol. Disable the function with the no command.

62 Confidential and Proprietary Information of ZTE CORPORATION

Page 73: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Command Modes Privileged EXEC

Syntax debug group-management zdp {all | error| packet | event |state}

no debug group-management zdp {all | error| packet |event | state}

SyntaxDescription

all The print control of all ZDP sub moduleinformation

error Prints error information

event Prints event information

packet Prints packet information

debug group-managementztp

Purpose Use this command to enable debug function of ZTP managementprotocol. Disable the function with the no command.

Command Modes Privileged EXEC

Syntax debug group-management ztp {all | error| packet | event |state}

no debug group-management ztp {all | error| packet | event| state}

SyntaxDescription

all The print control of all ZTP sub moduleinformation

error Print error information

event Print event information

packet Print packet information

debug hdlcPurpose Use this command to trace the hdlc basic link setup procedure.

Command Modes Privileged EXEC

Syntax debug hdlc

no debug hdlc

Instructions It is applied to ZXR10 GAR, ZXR10 ZSR.

Confidential and Proprietary Information of ZTE CORPORATION 63

Page 74: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug ipPurpose Use this command to enable the IP debug function to display the

debugging information processed by the IP, and display whetherthe router is sending/receiving the IP message. Disable the IPdebug function with the no command.

Command Modes Privileged EXEC

Syntax debug ip

no debug ip

RelatedCommands

terminal monitor

debug ip bgp allPurpose Use this command to open all BGP debug switches. Close the trac-

ing with the no command.

Command Modes Privileged EXEC

Syntax debug ip bgp all

no debug ip bgp all

RelatedCommands

terminal monitor

debug ip bgp dampeningPurpose Use this command to trace and show the information and pro-

cessing of BGP route oscillation. Close the tracing with the nocommand.

Command Modes Privileged EXEC

Syntax debug ip bgp dampening

no debug ip bgp dampening

RelatedCommands

terminal monitor

debug ip bgp eventsPurpose Use this command to trace and display the transition of the state

machine connected with the BGP. The cause will also be shown

64 Confidential and Proprietary Information of ZTE CORPORATION

Page 75: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

if the transition of the state machine is abnormal (the abnormaltransition mainly refers to the transition of the BGP from the highstate to the low state). Close the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip bgp events

no debug ip bgp events

RelatedCommands

terminal monitor

debug ip bgp inPurpose Use this command to trace and display the messages received by

the BGP. Close the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip bgp in

no debug ip bgp in

RelatedCommands

terminal monitor

debug ip bgp keepalivesPurpose Use this command to trace and display the keepalives message

received and sent by the BGP. Close the tracing with the no com-mand.

Command Modes Privileged EXEC

Syntax debug ip bgp keepalives

no debug ip bgp keepalives

RelatedCommands

terminal monitor

debug ip bgp outPurpose Use this command to trace and display the messages sent by the

BGP. Close the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip bgp out

no debug ip bgp out

Confidential and Proprietary Information of ZTE CORPORATION 65

Page 76: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug ip bgp updatesPurpose Use this command to trace and display the updates message

sent/received by the BGP connection and show the route pro-cessing conditions in the message. Close the tracing with the nocommand.

Command Modes Privileged EXEC

Syntax debug ip bgp [<ip-address>] updates

no debug ip bgp [<ip-address>] updates

SyntaxDescription

<ip-address> Neighbor IP address. When a neighbor isspecified, only the updates message relatedto this neighbor will be traced.

RelatedCommands

terminal monitor

debug ip destinationPurpose Use this command to enable debug function of the specified des-

tination address IP protocol to display the debugging informationprocessed by the IP protocol, and display whether the router issending/receiving the specified destination address IP message.Disable the function with the no command.

Command Modes Privileged EXEC

Syntax debug ip destination <ip-address>

no debug ip destination <ip-address>

SyntaxDescription

<ip-address> Destination IP address in the dotted decimalnotation

RelatedCommands

terminal monitor

debug ip dhcpPurpose Use this command to enable the debug function of the DHCP RE-

LAY and DHCP SERVER. Disable the debug function with the nocommand.

Command Modes Privileged EXEC

66 Confidential and Proprietary Information of ZTE CORPORATION

Page 77: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Syntax debug ip dhcp [[interface <inf_name>]|[mac <mac_addr>[vrf-instance <vrf_name>]]|[vlan <vlan_ID>]|[invlan <invlan_ID>[exvlan <exvlan_ID>]]|[exvlan <exvlan_ID>]|[pool]|[policy]]

no debug ip dhcp

SyntaxDescription

<inf_name> Interface name

<mac_addr> Mac address

<vrf_name> Vpn name

<vlan_ID> Vlan ID

<invlan_ID> Inner layer Vlan ID

<exvlan_ID> Outer layer Vlan ID

Instructions The information can be printed according to the specified attribute,such as interface, vlan and mac, inner layer vlan, outer layer vlan.Use the keyword pool to print the information of DHCP POOL mod-ule. Use the keyword policy to print the information of DHCP POL-ICY module.

RelatedCommands

terminal monitor

debug ip dhcp clientPurpose Use this command to enable DHCP CLIENT debugging. Disable it

with the no command.

Command Modes All modes

Syntax debug ip dhcp client

no debug ip dhcp client

Instructions The platform version 4.08.22 support this command. It supports5900 switches currently.

RelatedCommands

terminal monitor

debug ip domainPurpose Use this command to enable or disable DNS debugging.

Command Modes Privileged EXEC

Syntax debug ip domain

no debug ip domain

Confidential and Proprietary Information of ZTE CORPORATION 67

Page 78: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debug ip icmpPurpose Use this command to enable the ICMP debug function to display the

debugging information processed by the ICMP, and display whetherthe router is sending/receiving the ICMP message. Disable thefunction with the no command.

Command Modes Privileged EXEC

Syntax debug ip icmp

no debug ip icmp

RelatedCommands

terminal monitor

debug ip icmp detailPurpose Use this command to enable ICMP debug function to display de-

tailed debugging information processed by the ICMP, and displaydetailed information of ICMP packets sent and received by therouter. Disable the function with the no command.

Command Modes Privileged EXEC

Syntax debug ip icmp detail

no debug ip icmp detail

RelatedCommands

terminal monitor

debug ip igmpPurpose Use this command to open/close the ICMP debug switch. Close

the IGMP debug switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip igmp

no debug ip igmp

RelatedCommands

terminal monitor

debug ip igmp-snoopingPurpose Use this command to enable the debug switch of IGMP Snooping.

Disable the debug switch of IGMP Snooping with the no command.

Command Modes Privileged EXEC

Syntax debug ip igmp-snooping

68 Confidential and Proprietary Information of ZTE CORPORATION

Page 79: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

no debug ip igmp-snooping

RelatedCommands

terminal monitor

debug ip igmp groupPurpose Use this command to enable IGMP debug switch of a specified

group. Disable the switch with the no command. Only one groupis supported to configure. When the no command is used, thegroup name does not need to specify.

Command Modes Privileged EXEC

Syntax debug ip igmp group <group-address>

no debug ip igmp group

SyntaxDescription

<group-address> IP address of the specified group, in dotteddecimal notation

RelatedCommands

terminal monitor

debug ip igmp interfacePurpose Use this command to enable IGMP debug switch on a specified

interface. Disable IGMP debug switch on interface with the nocommand. Only one interface is supported to configure. Whenthe no command is used, the interface name does not need tospecify.

Command Modes Privileged EXEC

Syntax debug ip igmp interface <interface-name>

no debug ip igmp interface

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug ip interfacePurpose Use this command to enable debug function of IP sent and re-

ceived on the specified interface to display debugging informationprocessed by the IP. Disable the function with the no command.

Command Modes Privileged EXEC

Confidential and Proprietary Information of ZTE CORPORATION 69

Page 80: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Syntax debug ip interface <interface-name>

no debug ip interface <interface-name>

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug ip ippoolPurpose Use this command to enable the debug function of OP POOL mod-

ule. Disable this function with the no command.

Command Modes Privileged EXEC

Syntax debug ip ippool [<debug_level>]

no debug ip ippool

SyntaxDescription

<debug_level> The classified level of print. 1~3

Instructions When more information is required to print, use the high printlevel. The lowest print level is default setting.

RelatedCommands

terminal monitor

debug ip msdpPurpose Use this command to open the MSDP debugging switch. Close the

switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip msdp [message-recv| message-send| connect|warning]

no debug ip msdp [message-recv| message-send| connect|warning]

SyntaxDescription message-recv Debug information of the MSDP received

messages

message-send Debug information of the MSDP sentmessages

connect MSDP debugging information related to peerconnection

warning MSDP alarm debugging information

70 Confidential and Proprietary Information of ZTE CORPORATION

Page 81: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug ip multicastPurpose Use this command to open the multicast debug switch. Close the

multicast debug switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip multicast [data | mrt | timer]

no debug ip multicast [data | mrt | timer]

SyntaxDescription

data Multicast packet debugging information

mrt Multicast routing table debugging information

timer Multicast timer debugging information

RelatedCommands

terminal monitor

debug ip natPurpose Use this command to enable the NAT protocol debug function. Dis-

able the function with the no command.

Command Modes Privileged EXEC

Syntax debug ip nat

no debug ip nat

RelatedCommands

terminal monitor

debug ip ospf adjPurpose Use this command to open the switch for returning the OSPF ad-

jacent event debugging information. Close the switch with the nocommand.

Command Modes Privileged EXEC

Syntax debug ip ospf adj

no debug ip ospf adj

Instructions Neighbor events include neighbor event and state transition, hellopacket receiving, processing and sending, link state request packetreceiving, processing and sending.

Confidential and Proprietary Information of ZTE CORPORATION 71

Page 82: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug ip ospf allPurpose Use this command to open all OSPF debug switches. Close the

switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip ospf all

no debug ip ospf all

RelatedCommands

terminal monitor

debug ip ospf cspfPurpose Use this command to debug the shortest path calculation of limit-

based OSPF. Close the debug with the no command.

Command Modes Privileged EXEC

Syntax debug ip ospf cspf

no debug ip ospf cspf

Instructions It mainly used to debug traffic engineering path calculation.

RelatedCommands

terminal monitor

debug ip ospf database-timerPurpose Use this command to open the switch for returning the debugging

information of OSPF link state database timer events. Close theswitch with the no command.

Command Modes Privileged EXEC

Syntax debug ip ospf database-timer

no debug ip ospf database-timer

72 Confidential and Proprietary Information of ZTE CORPORATION

Page 83: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug ip ospf eventsPurpose Use this command to open the switch for returning the debugging

information of important events of the OSPF. Close the switch withthe no command.

Command Modes Privileged EXEC

Syntax debug ip ospf events

no debug ip ospf events

Instructions The important events include: selection of the DR and BDR, receiv-ing, processing and sending of the link status database descriptionpacket, and the transfer of the OSPF interface status.

RelatedCommands

terminal monitor

debug ip ospf floodPurpose Use this command to open the switch for returning the debugging

information of the OSPF flood events. Close the switch with theno command.

Command Modes Privileged EXEC

Syntax debug ip ospf flood

no debug ip ospf flood

Instructions Flood events include flood event processing and OSPF responsepacket processing, and receiving, processing and sending of theOSPF update packets.

RelatedCommands

terminal monitor

debug ip ospf lsa-generationPurpose Use this command to open the switch for returning the debug-

ging information of the OSPF generating link state announcementevent. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip ospf lsa-generation

no debug ip ospf lsa-generation

Instructions The generating link state announcement events include route linkstate announcement, network link state announcement, networksummary link state announcement, autonomous boundary router

Confidential and Proprietary Information of ZTE CORPORATION 73

Page 84: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

state announcement generation, link state announcement addi-tion, deletion and refreshment.

RelatedCommands

terminal monitor

debug ip ospf packetPurpose Use this command to open the switch for returning the debugging

information of the OSPF receiving/transmitting packets, to monitorthe transmitting/receiving of all OSPF packets. Close the switchwith the no command.

Command Modes Privileged EXEC

Syntax debug ip ospf packet

no debug ip ospf packet

RelatedCommands

terminal monitor

debug ip ospf retransmissionPurpose Use this command to open the switch for returning the debug-

ging information of OSPF retransmission queue events. Close theswitch with the nocommand.

Command Modes Privileged EXEC

Syntax debug ip ospf retransmission

no debug ip ospf retransmission

RelatedCommands

terminal monitor

debug ip ospf spfPurpose Use this command to open the switch for returning the debugging

information of the OSPF route computing events. Close the switchwith the no command.

Command Modes Privileged EXEC

Syntax debug ip ospf spf [external | inter | intra]

no debug ip ospf spf [external | inter | intra]

SyntaxDescription

external Key words

inter Key words

intra Key words

74 Confidential and Proprietary Information of ZTE CORPORATION

Page 85: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Instructions The route calculation events include intra-area route computingwith the dijkstra algorithm, the computing and adding of inter-arearoutes and the adding of the external routes of AS. If a parameteris set, the switch for one option in the route computing eventsis turned. Otherwise, the switches for the three options are allturned on.

RelatedCommands

terminal monitor

debug ip pimdmPurpose Use this command to open the PIM-DM debug switches. Close the

switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip pimdm [assert | data | mrt | packet-send | packet-recv | timer | warning]

no debug ip pimdm [assert | data |mrt | packet-send | packet-recv | timer | warning]

SyntaxDescription

assert Debug information of the Pim-dm aboutASSERT

data Debug information of the Pim-dm receivedmessages

packet-recv Debug information of the Pim-dm receivedprotocol messages

packet-send Debug information of the Pim-dm sentprotocol messages

mrt Debug information of the Pim-dm multicastrouting table

warning Pim-dm alarm debugging information

timer Pim-dm debugging information related totimer

RelatedCommands

terminal monitor

debug ip pimsmPurpose Use this command to open the PIM-SM debug switches. Close the

switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip pimsm [message-recv | message-send | packet-recv | packet-send | mrt | bsr-rp | assert | warning | msdp]

Confidential and Proprietary Information of ZTE CORPORATION 75

Page 86: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

no debug ip pimsm [message-recv |message-send | packet-recv | packet-send |mrt | bsr-rp | assert |warning |msdp]

SyntaxDescription message-recv Debug information of the Pim-sm received

messages

message-send Debug information of the Pim-sm sentmessages

packet-recv Debug information of the Pim-sm receivedprotocol messages

packet-send Debug information of the Pim-sm sentprotocol messages

mrt Debug information of the Pim-sm multicastrouting table

bsr-rp Pim-sm debugging information related withBSR and RP

assert Pim-sm debugging information related withASSERRT

warning Pim-sm alarm debugging information

msdp Pim-sm debugging information related toMSDP

RelatedCommands

terminal monitor

debug ip pim-snoopingPurpose Use this command to enable the debug switch of PIM Snooping.

Disable this switch with the no command.

Command Modes Privileged EXEC

Syntax debug ip igmp-snooping

no debug ip igmp-snooping

RelatedCommands

terminal monitor

debug ip protocolPurpose Use this command to open debug function of the IP protocol with

the specified upper layer protocol number to display debugginginformation processed by the IP. Disable the function with the nocommand.

Command Modes Privileged EXEC

Syntax debug ip protocol <protocol-number>

76 Confidential and Proprietary Information of ZTE CORPORATION

Page 87: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

no debug ip protocol <protocol-number>

SyntaxDescription

<protocol-number> Protocol number

RelatedCommands

terminal monitor

debug ip ripPurpose Use this command to trace basic packet receiving and sending of

RIP. Cancel the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip rip

no debug ip rip

RelatedCommands

terminal monitor

debug ip rip allPurpose Use this command to open all RIP debug switches. Close the switch

with the no command.

Command Modes Privileged EXEC

Syntax debug ip rip all

no debug ip rip all

RelatedCommands

terminal monitor

debug ip rip databasePurpose Use this command to trace RIP routing table changes. Cancel the

tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip rip database

no debug ip rip database

Confidential and Proprietary Information of ZTE CORPORATION 77

Page 88: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug ip rip eventsPurpose Use this command to trace the RIP related events, such as the

interface status. Cancel the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip rip events

no debug ip rip events

RelatedCommands

terminal monitor

debug ip rip triggerPurpose Use this command to trace the RIP trigger events, such as timer

timeout. Cancel the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug ip rip trigger

no debug ip rip trigger

RelatedCommands

terminal monitor

debug ip rsvpPurpose Use this command to enable or disable the RSVP debugging mes-

sage.

Command Modes Privileged EXEC

Syntax debug ip rsvp {all | hello | message | path | pathErr | pathTear | resv | resvErr | resvTear| fast-reroute| packet| timer|authentication | bfd }

no debug ip rsvp {all | hello | message | path | pathErr |pathTear | resv | resvErr | resvTear| fast-reroute| packet|timer| authentication | bfd }

SyntaxDescription

all All debugging information of Rsvp

hello Debugging information of Rsvp hello event

message Debugging information of the Rsvpreceiving/sending messages

path Debugging information of Rsvp path message

78 Confidential and Proprietary Information of ZTE CORPORATION

Page 89: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

pathErr Debugging information of Rsvp pathErrmessage

pathTear Debugging information of Rsvp pathTearmessage

resv Debugging information of Rsvp resv message

resvErr Debugging information of Rsvp resvErrmessage

resvTear Debugging information of Rsvp resvTearmessage

fast-reroute Debugging information of Rsvp fast-reroute

packet Debugging information of Rsvp packet

timer Debugging information of Rsvp timer

authentication Debugging information of Rsvp authentication

bfd Debugging information of Rsvp bfd

Defaults If this area is configured, it is not opened by default.

RelatedCommands

show debug

no debug all

debug ip sourcePurpose Use this command to enable debug function of the specified

source address IP protocol to display the debugging informationprocessed by the IP protocol, and display whether the routeris sending/receiving the specified source address IP message.Disable the function with the no command.

Command Modes Privileged EXEC

Syntax debug ip source <ip-address>

no debug ip source <ip-address>

SyntaxDescription

<ip-address> Source IP address in the dotted decimalnotation

RelatedCommands

terminal monitor

debug ip tcp allPurpose Use this command to open all TCP debug switches. Close the

switch with the no command.

Confidential and Proprietary Information of ZTE CORPORATION 79

Page 90: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Command Modes Privileged EXEC

Syntax debug ip tcp all

no debug ip tcp all

RelatedCommands

terminal monitor

debug ip tcp driverPurpose Use this command to set the debug switches for establishing and

closing the TCP connections. When the switches are opened, therelated information will be output, including TCP proactive open-ing, passive opening, TCP link establishment timer, TCP normalclosing and abnormal closing information. When the no commandis used to close the switches, no information will be output. Whenuser logins ZXR10 series, TCP events of BGP and FTP (not includ-ing telnet) will be shown.

Command Modes Privileged EXEC

Syntax debug ip tcp packet

no debug ip tcp packet

RelatedCommands

terminal monitor

debug ip tcp driver-pakPurpose Use this command to set the debug switches for TCP buffer man-

agement information. No information is output once the switch isclosed with the no command.

Command Modes Privileged EXEC

Syntax debug ip tcp driver-pak

no debug ip tcp driver-pak

Instructions � Output the following information once the switch is opened:output packet to a queue, the size of the sent or receivedpacket, the information of a packet being deleted due to thenumber of packets received out of sequence exceeding themax. Number allowed (25 by default) will be output.

� The information will be displayed when the user logs intoZXR10. The information includes TCP supplementary informa-tion of BGP, and TCP supplementary information of FTP (notinclude telnet).

80 Confidential and Proprietary Information of ZTE CORPORATION

Page 91: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug ip tcp packetPurpose Use this command to set the debug switches for the source and

destination information of the TCP sent/received packets. No infor-mation is output once the switch is closed with the no command.

Command Modes Privileged EXEC

Syntax debug ip tcp packet

no debug ip tcp packet

Instructions � After a switch is enabled, when TCP receives or sends a packet,such information as source/destination address of data packet,port number, sequence number, acknowledgment number, thesize of receiving window and control bit information etc. willbe output.

� The information will be displayed when the user logs intoZXR10. The information includes TCP sending/receiving ofBGP, and TCP sending/receiving of FTP (not include TELNET).

RelatedCommands

terminal monitor

debug ip tcp transactionsPurpose Use this command to set the debug switches for TCP state transi-

tion information. No information is output once the switch is closedwith the no command.

Command Modes Privileged EXEC

Syntax debug ip tcp transactions

no debug ip tcp transactions

Instructions � After the switch is enabled, the TCP special event information,including the destination IP address, port number and MSSadvertisement of TCP connection established, the time reset-ting of retransmission timer, retransmission timeout, limitedstate-machine transition and releasing of TCP control block in-formation will be output.

� The information will be displayed when the user logs intoZXR10. The information includes TCP special information ofBGP, and TCP special information of FTP (not include telnet).

Confidential and Proprietary Information of ZTE CORPORATION 81

Page 92: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug ip udpPurpose Use this command to set the debug switches for the source and

destination information of the UDP sent/received packets. No in-formation is output once the switch is closed with the no com-mand.

Command Modes Privileged EXEC

Syntax debug ip udp

no debug ip udp

Instructions � After a switch is opened, and when the UDP receives andsends a packet, source/destination addresses and port andUDP packet length information are displayed.

� The information will be displayed when the user logs intoZXR10.

RelatedCommands

terminal monitor

debug ipv6 icmpPurpose Use this command to display debugging information of the IPv6

Internet Control Message Protocol (ICMP) message (exclusive ofICMP neighbor discovery protocol message). Disable the functionwith the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 icmp

no debug ipv6 icmp

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� The debug ipv6 icmp command is similar to the debug ipicmp command, while it is only for the IPv6 protocol. Thiscommand is used to determine whether IPv6 ICMP message isreceived or sent.

Example When use debug ipv6 icmp, the following output is shown.ZXR10#debug ipv6 icmpIPv6 ICMP6 debugging is on00:59:06 ICMPv6: Received ICMP6 Packet from 5ffe::1,type 13500:59:06 ICMPv6: Received ICMP6 Packet from 5ffe::1,type 136

The displayed field descriptions are shown below.

82 Confidential and Proprietary Information of ZTE CORPORATION

Page 93: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

00:59:06 The time when the ICMP event occurs.

ICMPv6: This debug content is ICMP information ofIPv6

Received ICMP6Packet from 5ffe::1

Received IPv6 ICMP message address

Type 135 Values of the type field in IPv6 ICMP headerare as follows:

1: Destination is unreachable. The routercannot forward the received packet

2: Packet is too large. The length of packet tobe sent by the router exceeds the MaximumTransmission Unit (MTU) of the link betweenthe router and destination address.

3: timeout. Hop limit is reached duringtransmission or fragment & reassembly timesout.

4: Parameter error. The router attempts tosend a packet with illegal parameter.

128: response request

129: answer

133: router request. The host sends themessage to request the router on a link tosend a route announcement message

134: route announcement

135: neighbor request message. The nodesends this message to obtain the link layeraddress of other nodes on the same link.

136: neighbor announcement message. Thenode sends the message, including its ownlink layer address as the response of neighborrequest message

137: redistribution message

debug ipv6 ndPurpose Use this command to display the neighbor discovery protocol

packet contents of the IPv6 ICMP packet. Disable the functionwith the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 nd[interface <interface-name>]

no debug ipv nd

SyntaxDescription

<interface-name> The name of the interface.

Defaults If this area is configured, it is disable by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

Confidential and Proprietary Information of ZTE CORPORATION 83

Page 94: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

� This command helps the user understand interactive conditionof the IPv6 ICMP neighbor discovery packet.

Example This example describes how to display the output of debug ipv6nd.02:09:31 ICMPv6-ND: STALE -> DELAY: 5ffe::102:09:36 ICMPv6-ND: Received NS on fei_3/1 for 5ffe::302:09:36 ICMPv6-ND: Sending NA on fei_3/1 for 5ffe::302:09:36 ICMPv6-ND: DELAY -> PROB: 5ffe::102:09:36 ICMPv6-ND: Sending NS on fei_3/1 for 5ffe::102:09:36 ICMPv6-ND: Received NA on fei_3/1 for 5ffe::102:09:36 ICMPv6-ND: PROB -> REACH: 5ffe::102:09:50 ICMPv6-ND: REACH -> STALE: 5ffe::102:10:52 IPV6: fei_3/1: starting DAD for 5ffe::000102:10:52 ICMPv6-ND: Sending NS on fei_3/1 for 5ffe::102:10:52 ICMPv6-ND: Received NA on fei_3/1 for 5ffe::102:10:52 ICMPv6-ND: DAD:5ffe::1 is duplica02:10:52 IPV6: fei_3/1: DAD complete for 5ffe::0001 -duplicate found02:10:52 IPV6: fei_3/1: manual intervention required(removeduplicate address)02:12:20 ICMPv6-ND: Sending RA on fei_3/1:02:12:20 ICMPv6-ND: M=0,O=0,lifetime=1800,reachable=30000,retransmit=100002:12:20 ICMPv6-ND: MTU = 150002:12:20 ICMPv6-ND: prefix = 5ffe::/64 onlink autoconfig02:12:20 ICMPv6-ND: 2592000/604800(valid/preferred)

The displayed field descriptions are shown below.

Field Description

02:09:31 The time when ICMP neighbor discoveryprotocol incurs

ICMPV6-ND The event is IPV6 ICMP neighbor discoveryprotocol

STALE-> DELAY State change of neighbor cache item,including DELAY -> PROB, PROB -> REACHand REACH -> STALE

Received NS on XXXfor X::X

Neighbor request message of an addressreceived on an interface

Sending NA on XXXfor X::X

Neighbor request announcement of anaddress sent from an interface

starting DAD for5ffe::0001

Start DAD for an address

DAD:5ffe::1 isduplicate

DAD complete for5ffe::0001 - duplicatefound

Find that the local interface address is aduplicate one, and one node on the local linkhas adopted this address

Manual interventionrequired(removeduplicate address)

It is required that the administrator deletesthe duplicate address manually

Sending RA on fei_3/1 Send a router announcement message on aninterface

M={0|1} M tag value in the router announcement

84 Confidential and Proprietary Information of ZTE CORPORATION

Page 95: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Field Description

0={0|1} O tag value in the router announcement

Lifetime=1800 Life time of the router announcement

reachable=30000 Reachable time of the router announcement

retransmit=1000 Retransmission time value of the routerannouncement

MTU = 1500 Interface MTU value in the routerannouncement

prefix = 5ffe::/64onlink autoconfig

2592000/604800

(valid/preferred)

Prefix and its length

Online tag: 1 represents onlink, 0 representsofflink indicating whether the address isconfigured automatically: 1 representsautoconfig and 0 not autoconfig

Valid/Recommended life time of the prefix

RelatedCommands

debug ipv6 icmp

show nd6 cache

debug ipv6 ospf adjPurpose Use this command to trace adjacency of the OSPFv3 protocol. Dis-

able the debugging information with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf adj

no debug ipv6 ospf adj

Defaults If this area is configured, it is invalid by default.

Instructions Trace adjacency with this command to facilitate troubleshooting.

Example This example describes how to open the adjacency switch.ZXR10#debug ipv6 ospf adj

RelatedCommands

terminal monitor

debug ipv6 ospf eventsPurpose Use this command to trace event run over the OSPFv3 protocol.

Disable the debugging information with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf events [abr | asbr | os | router | vlink]

no debug ipv6 ospf events [abr | asbr | os | router | vlink]

Confidential and Proprietary Information of ZTE CORPORATION 85

Page 96: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription

[abr | asbr | os |router | vlink]

Detailed content of the traced event, whichmay be border router, area border router andvirtual link

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� Trace event with this command to facilitate troubleshooting.

Example This example describes how to open all event switches.ZXR10#debug ipv6 ospf events

RelatedCommands

terminal monitor

debug ipv6 ospf ifsmPurpose Use this command to trace interface run over the OSPFv3 protocol.

Disable the debugging information with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf ifsm [events | status | timers]

no debug ipv6 ospf ifsm [events | status | timers]

SyntaxDescription

[events | status |timers]

Specific condition of the traced interface,corresponding to interface event, interfacestate and interface timer

Defaults If this area is configured, it is invalid by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� You can implement interface trace with this command to facil-itate troubleshooting.

Example This example describes how to open all interface switches.ZXR10#debug ipv6 ospf ifsm

RelatedCommands

terminal monitor

debug ipv6 ospf lsaPurpose Use this command to trace LSA run over the OSPFv3 protocol.

Disable the debugging information with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf lsa [generate | flooding | install | maxage| refresh]

86 Confidential and Proprietary Information of ZTE CORPORATION

Page 97: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

no debug ipv6 ospf lsa [generate | flooding | install |maxage | refresh]

SyntaxDescription

[generate | flooding| install | maxage |refresh]

Specific condition of the traced LSA,corresponding to generation, flood,installation information and refreshment ofLSA

Defaults If this area is configured, it is invalid by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� Trace LSA condition with this command to facilitate trou-bleshooting.

Example This example describes how to open all LSA switches.ZXR10#debug ipv6 ospf lsa

RelatedCommands

terminal monitor

debug ipv6 ospflsa-generation

Purpose Use this command to Trace LSA generation over the OSPFv3 pro-tocol. Disable the debugging information with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf lsa-generation

no debug ipv6 ospf lsa-generation

Defaults If this area is configured, it is invalid by default.

Instructions You can implement LSA generation trace with this command tofacilitate troubleshooting.

Example This example describes how to open the switch of LSA generation.ZXR10#debug ipv6 ospf lsa-generation

RelatedCommands

terminal monitor

debug ipv6 ospf nfsmPurpose Use this command to trace adjacency run over the OSPFv3 proto-

col. Disable the debugging information with no.

Command Modes Privileged

Syntax debug ipv6 ospf nfsm [events | status | timers]

no debug ipv6 ospf nfsm [events | status | timers]

Confidential and Proprietary Information of ZTE CORPORATION 87

Page 98: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription

[events | status |timers]

Specific condition of traced adjacencycorresponding to adjacency event, state andtimer

Defaults If this area is configured, it is invalid by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� Trace adjacency with this command to facilitate troubleshoot-ing.

Example This example describes how to open all adjacency switches.ZXR10#debug ipv6 ospf nfsm

RelatedCommands

terminal monitor

debug ipv6 ospf packetPurpose Use this command to trace packet receiving/sending run over the

OSPFv3 protocol. Disable the debugging information with the nocommand.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf packet [dd | hello | ls-ack | ls-request |ls-upd | detail]

no debug ipv6 ospf packet [dd | hello | ls-ack | ls-request |ls-update | detail]

SyntaxDescription

dd | hello | ls-ack| ls-request |ls-update | detail

Specific condition of the traced packet,corresponding to DD packet, hello packet,ls-ack packet and ls-request packet. Thedetail parameter is used work with theopened specific packet to display detailedcontent of the packet.

Defaults If this area is configured, it is invalid by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� You canimplement packet receiving/sending condition tracewith this command to facilitate troubleshooting.

Example This example describes how to open all packet receiving/sendingswitches.ZXR10#debug ipv6 ospf packet

88 Confidential and Proprietary Information of ZTE CORPORATION

Page 99: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug ipv6 ospf routePurpose Use this command to trace route run over the OSPFv3 protocol.

Disable the debugging information with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 ospf route [ase | ia | install | spf]

no debug ipv6 ospf route [ase | ia | install | spf]

SyntaxDescription

ase | ia | install | spf Specific condition of the traced route,corresponding to route load, calculation, routeoutside a region, and router inside a region

Defaults If this area is configured, it is invalid by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� You can implement route condition trace with this command tofacilitate troubleshooting.

Example This example describes how to open all route switches.ZXR10#debug ipv6 ospf route

RelatedCommands

terminal monitor

debug ipv6 packetPurpose Use this command to display the information of IPV6 packet re-

ceived and sent by the system. Disable the function with the nocommand.

Command Modes Privileged EXEC

Syntax debug ipv6 packet [interface<interface-name>][protocol<protocol>][detail]

no debug ipv6 packet

SyntaxDescription

detail Displays packet information as detailed aspossible

<interface-name> The name of the interface

<protocol> The name of the protocol

Defaults If this area is configured, it is disabled by default.

Confidential and Proprietary Information of ZTE CORPORATION 89

Page 100: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� When the parameter detail and <protocol> are used together,the protocol type has to be ICMP protocol.

Example This example describes how to display the output of debug ipv6packet.Zxros#debug ipv6 packet detail00:33:19 IPv6:rcvd on:fei_3/100:33:19 source: 5ffe::100:33:19 dest: 5ffe::300:33:19 flow label:0,payload lenth:32,hops:255,nexhead:5800:33:19 NextHead is ICMPv6 head:00:33:19 type:135 ,code:0 ,chksum:3137700:33:19 IPv6:sent on:fei_3/100:33:19 source: 5ffe::300:33:19 dest: 5ffe::100:33:19 flow label:0,payload lenth:24,hops:255,nexhead:5800:33:19 NextHead is ICMPv6 head:00:33:19 type:136 ,code:0 ,chksum:38826

The displayed field descriptions are shown below.

00:33:19 The time for receiving or sending packet

IPv6 The event is an IPV6 event

rcvd on:fei_3/1 Interface of the received packet

sent on:fei_3/1 Interface of the sent packet

source: 5ffe::1X Source address of IPV6 packet

dest: 5ffe::3 Destination address of IPV6 packet

flow label:0 ,payloadlenth:32 ,hops:255,nexhead:58

Traffic label, payload length, hop limit andnext header field value in the IPV6 header

NextHead is ICMPv6head:

In detail mode, it is possible to further analyzenext head, for example, next header in thisexample is ICMP header.

type:135 ,code:0,chksum:31377

Information in next header, corresponding todifferent next header, whose content may bedifferent. For the ICMP header, ICMP headertype, code and checksum field are displayed

RelatedCommands

debug ipv6 icmp

debug ipv6 nd

debug ipv6 ripPurpose Use this command to trace and view running condition of theRIPng

protocol. Disable the debugging information with the no com-mand.

90 Confidential and Proprietary Information of ZTE CORPORATION

Page 101: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Command Modes Privileged EXEC

Syntax debug ipv6 rip events | packet (recv | send | detail)

no debug ipv6 rip events| packet (recv | send | detail)

SyntaxDescription

events Traces running event of the RIPng protocol

packet Traces packet condition of the RIPng protocol

recv Traces received protocol packet

send Traces sent protocol packet

detail Traces specific content of packet, which workswith recv and send

Defaults If this area is configured, it is invalid by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� You can implement running condition trace of the RIPng pro-tocol with this command.

debug ipv6 tcp allPurpose Use this command to open all TCP6 debugging switches. Close the

switch with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 tcp all

no debug ipv6 tcp all

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� The command debug ipv6 tcp all is similar to the commanddebug ip tcp all, while it is only for the IPv6 protocol. Thiscommand helps the user determine TCP6 packet receiving andstate change information. Open the DEBUG command switchto display DEBUG information of all TCPs.

RelatedCommands

debug ipv6 tcp packet

debug ipv6 tcp driver

debug ipv6 tcp transactions

debug ipv6 tcp driverPurpose Use this command to set the debugging switches for establishing

and closing the TCP6 connections. After the switch is opened, the

Confidential and Proprietary Information of ZTE CORPORATION 91

Page 102: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debugging information, including TCP6 active-open/passive-open,reconfig tcp build link timer, TCP normal close, abnormal close willbe output. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 tcp driver

no debug ipv6 tcp driver

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� The debug ipv6 tcp driver command is similar to the debugip tcp driver command, while it is only for the IPv6 protocol.This command helps the user determine IPv6 TCP connectionactive-open/passive-open, normal close and abnormal close.

RelatedCommands

debug ipv6 tcp all

debug ipv6 tcp packetPurpose Use this command to display the information of TCP6 packet re-

ceived and sent by the system. In the privileged mode, viewpacket information received and sent by the system with this com-mand. No information is output once the switch is closed with theno command.

Command Modes Privileged EXEC

Syntax debug ipv6 tcp packet

no debug ipv6 tcp packet

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� This command helps the user understand the TCP packet re-ceiving and sending interactive condition.

RelatedCommands

debug ipv6 tcp all

debug ipv6 tcp transactionsPurpose Use this command to set the debugging switches for TCP6 state

transition information. When the switches are opened, the TCPspecial event information will be output, including TCP connectiondestination address, port, reconfigured resend timer time, resendupon timeout, finite state machine transition, and released TCPcontrol block. When the no command is used to close the switches,no information will be output.

Command Modes Privileged

Syntax debug ipv6 tcp transactions

92 Confidential and Proprietary Information of ZTE CORPORATION

Page 103: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

no debug ipv6 tcp transactions

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� The debug ipv6 tcp transactions command is similar to thedebug ip tcp transactions command, while it is only for theIPv6 protocol. This command helps the user determine TCP6state change information.

RelatedCommands

debug ipv6 tcp all

debug ipv6 udpPurpose Use this command to open the IPv6 UDP debugging switch. Close

the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ipv6 udp

no debug ipv6 udp

Defaults If this area is configured, it is disabled by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� The debug ipv6 udp command is similar to the debug ip udpcommand, while it is only for the IPV6 protocol. The commandhelps the user view condition of IPV6 UDP packet received andsent by the system.

Example This example describes how to display output with the debug ipv6udp command.ZXR10#debug ipv6 udpIPV6 UDP packet debugging is on13:33:39 IPV6 UDP: sending src=3ffe::1(4915),

dst=3ffe::2(39810), len=20813:33:39 IPV6 UDP: rcv src=3ffe::2(39810),

dst=3ffe::1 (4915), len=208

The displayed field descriptions are shown below.

13:33:39 Time when the IPV6 UDP event occurs.

IPV6 UDP: This debug content is UDP information of IPV6

sendingsrc=3ffe::1(4915)dst=3ffe::2(39810),len=208

Sends a UDP packet with the source addressof 3ffe::1, source port of 4915, destinationaddress of 3ffe::2 and destination port of39810

rcvsrc=3ffe::2(39810),dst=3ffe::1 (4915),len=208

Receives a UDP packet with the sourceaddress of 3ffe::2, source port of 39810,destination address of 3ffe::1 and destinationport of 4915

Confidential and Proprietary Information of ZTE CORPORATION 93

Page 104: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

debug isisPurpose Use this command to trace and display IS-IS running state.

Command Modes Privileged EXEC

Syntax debug isis {adj-packets | snp-packets | spf-events | update-packets| all}

SyntaxDescription

adj-packets Tracks and shows the received andtransmitted IS-IS Hello packets

snp-packets Tracks and shows the received andtransmitted IS-IS SNP packets and relevantprocessing events

spf-events Tracks and shows the debugging informationof the IS-IS route calculation event

update-packets Tracks and shows the debugging informationof the IS-IS LSP processing event

all Tracks and shows all the information of IS-IS

debug isis adj-packetsPurpose Use this command to trace and show the IS-IS received/sent Hello

messages. Close the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug isis adj-packets

no debug isis adj-packets

RelatedCommands

terminal monitor

debug isis allPurpose Use this command to open all IS-IS related debug switches. Close

the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug isis all

no debug isis all

94 Confidential and Proprietary Information of ZTE CORPORATION

Page 105: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug isis snp-packetsPurpose Use this command to trace and show the IS-IS received/sent SNP

messages and related handling events. Close the tracing with theno command.

Command Modes Privileged EXEC

Syntax debug isis snp-packets

no debug isis snp-packets

RelatedCommands

terminal monitor

debug isis spf-eventsPurpose Use this command to trace and show the IS-IS route computing

event debug information. Close the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug isis spf-events

no debug isis spf-events

RelatedCommands

terminal monitor

debug isis update-packetsPurpose Use this command to trace and show the IS-IS LSP packet handling

event debug information. Close the tracing with the no command.

Command Modes Privileged EXEC

Syntax debug isis update-packets

no debug isis update-packets

RelatedCommands

terminal monitor

debug lacp allPurpose Use this command to open all LACP debugging switches. Close all

LACP debugging switches with the no command.

Command Modes Privileged EXEC

Confidential and Proprietary Information of ZTE CORPORATION 95

Page 106: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Syntax debug lacp all

no debug lacp all

RelatedCommands

terminal monitor

debug lacp fsmPurpose Use this command to open the switch of LACP state machine de-

bugging. Close the debugging switch with the no command.

Command Modes Privileged EXEC

Syntax debug lacp all fsm [interface <port-number>]

no debug lacp all fsm [interface <port-number>]

SyntaxDescription

<port-number> Port number

RelatedCommands

terminal monitor

debug lacp packetPurpose Use this command to open the LACP receiving/sending packet de-

bugging switch. Close the debugging switch with the no com-mand.

Command Modes Privileged EXEC

Syntax debug lacp packet [interface <port-number>]

no debug lacp packet [interface <port-number>]

SyntaxDescription

<port-number> Port number

RelatedCommands

terminal monitor

debug mac-pingPurpose Use this command to enable MAC PING debugging and display MAC

ping information. Disable it with the no command.

Command Modes Privileged EXEC

Syntax debug mac-ping { bytes | error | packet }

no debug mac-ping { bytes | error | packet }

96 Confidential and Proprietary Information of ZTE CORPORATION

Page 107: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

SyntaxDescription

bytes Outputs MAC PING packet(by hexadecimal)

error Outputs MAC PING error packet

packet Outputs MAC PING packet

RelatedCommands

terminal monitor

debug modemPurpose Use this command to show the modem debug information. Cancel

the displaying with the no command.

Command Modes Privileged EXEC

Syntax debug modem

no debug modem

Instructions It is applied to ZXR10 GAR, ZXR10 ZSR at present.

RelatedCommands

terminal monitor

debug mpls ldpadvertisements

Purpose Use this command to monitor the addresses and labels advertisedto the LDP neighbors. Cancel the monitoring with the no com-mand.

Command Modes Privileged EXEC

Syntax debug mpls ldp advertisements

no debug mpls ldp advertisements

Example This example describes how to monitor the addresses and labelsadvertised to the LDP neighbors.ZXR10#debug mpls ldp advertisementstagcon: peer 144.0.0.44:0: advertise 130.77.0.33tagcon: peer 144.0.0.44:0: advertise 133.0.0.33tagcon: peer 144.0.0.44:0: advertise 34.0.0.33tagcon: peer 144.0.0.44:0: advertise 103.0.0.33tagcon: peer 144.0.0.44:0: advertise 35.0.0.33tagcon: peer 144.0.0.44:0: advertise 38.0.0.33tagcon: peer 144.0.0.44:0: advertise 34.0.0.0/8, label 3tagcon: peer 144.0.0.44:0: advertise 203.0.7.7/32, label 24tagcon: peer 144.0.0.44:0: advertise 35.0.0.0/8, label 3……

The displayed field descriptions are shown below.

Confidential and Proprietary Information of ZTE CORPORATION 97

Page 108: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Field Description

tagcon Indicates the debugging information is fromthe label control subsystem

Peer a.b.c.d:e Opposite LDP ID

advertise Announced label and address

RelatedCommands

terminal monitor

debug mpls ldp allPurpose Use this command to open all LDP related debug switches. Close

the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mpls ldp all

no debug mpls ldp all

RelatedCommands

terminal monitor

debug mpls ldp bindingsPurpose Use this command to monitor the addresses and labels advertised

to the LDP neighbors. Cancel the monitoring with the no com-mand.

Command Modes Privileged EXEC

Syntax debug mpls ldp bindings

no debug mpls ldp bindings

Example This example describes how to monitor the addresses and labelsadvertised to the LDP neighbors.ZXR10#debug mpls ldp bindingstagcon:tibent(34.0.0.0/8):created; find route tags requesttagcon:tibent(34.0.0.0/8):label 3 assignedtagcon:tibent(203.0.7.7/32):created; find route tags requesttagcon:tibent(203.0.7.7/32):label 24 assignedtagcon:tibent(144.0.0.44/32):created; find route tags requesttagcon:tibent(144.0.0.44/32):label 33 assignedtagcon:Assign peer id; 144.0.0.44:0:id 0tagcon:144.0.0.44:0:144.0.0.44 added to addr<->ldp ident maptagcon:144.0.0.44:0:34.0.0.44 added to addr<->ldp ident maptagcon:144.0.0.44:0:45.0.0.44 added to addr<->ldp ident maptagcon:tibent(144.0.0.44/32):rem label 3 from 144.0.0.44:0addedtagcon:tibent(34.0.0.0/8):label 3 from 144.0.0.44:0 addedtagcon:tibent(45.0.0.0/8):label 3 from 144.0.0.44:0 addedtagcon:tibent(107.0.0.0/8):created; remote label learnedtagcon:tibent(107.0.0.0/8):label 55 from 144.0.0.44:0 added……

The displayed field descriptions are shown below.

98 Confidential and Proprietary Information of ZTE CORPORATION

Page 109: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

Field Description

tagcon Indicates the debugging information is fromthe label control subsystem

tibent LIB item with binding event

created;(reason) LIB items created because of that reason

a.b.c.d:e Opposite LDP ID

RelatedCommands

terminal monitor

debug mpls ldp l2vpnPurpose Use this command to monitor L2VPN activities. Cancel the moni-

toring with the no command.

Command Modes Privileged EXEC

Syntax debug mpls ldp l2vpn {event | fsm}

no debug mpls ldp l2vpn {event | fsm}

SyntaxDescription

event Monitors the details of the messagesreceived/sent in the L2VPN

fsm Monitors the internal/external events receivedby the L2VPN state machine

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� Debugging information of the L2VPN, including VPWS andVPLS, which both have the debug command.

Example � This example shows the message when vpws is established.ZXR10# debug mpls ldp vpwsentl2vpn: Sending label mapping msgvc type 4, cbit 0, vc id 888, group id 0, vc label 418, mtu 150

� This example shows the message when vpws is deleted.ZXR10# debug mpls ldp vpwsentl2vpn: Sending label Withdraw msgvc type 4, vc id 888, group id 0, vc label 418,state 0x8000000l2vpn: Received label Release msg vc id 888, group id 0,vc label 418l2vpn: receive release msg cann’t find xcon

� This example shows state machine event when vpws is estab-lished.ZXR10# debug mpls ldp vpwsfsml2vpn vpws: L2VPN_Negotiate is OK!

� This example shows state machine event when vpws is deleted.

Confidential and Proprietary Information of ZTE CORPORATION 99

Page 110: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

ZXR10# debug mpls ldp vpwsfsmldp: release label is 16l2vpn: L2VpwsSentToforwardwith !Local_label:16,Remote_label:16,Vpnid:1,vcid:201,tunnelid:0

debug mpls ldp messagesPurpose Use this command to monitor the messages sent to or received

from the LDP neighbors. Cancel the monitoring with the no com-mand.

Command Modes Privileged EXEC

Syntax debug mpls ldp messages {received | sent}

no debug mpls ldp advertisement {received | sent}

SyntaxDescription

received Monitors the messages received from the LDPneighbors.

sent Monitors the messages sent to the LDPneighbors.

Example This example describes how to monitor the messages sent to orreceived from the LDP neighbors, including the periodic Keep Alivemessages.ZXR10#debug mpls ldp messages receivedZXR10#debug mpls ldp messages sentldp: Rcvd init msg from 144.0.0.44ldp: Sent init msg to 144.0.0.44:0ldp: Sent keepalive msg to 144.0.0.44:0ldp: Rcvd keepalive msg from 144.0.0.44:0ldp: Sent address msg to 144.0.0.44:0ldp: Sent label mapping msg to 144.0.0.44:0ldp: Rcvd address msg from 144.0.0.44:0ldp: Rcvd label mapping msg from 144.0.0.44:0ldp: Rcvd label mapping msg from 144.0.0.44:0ldp: Rcvd label mapping msg from 144.0.0.44:0……

The displayed field descriptions are shown below.

Field Description

Ldp Indicates the debugging information is fromthe LDP module

Rcvd xxx msg Sentxxx msg

Message type

from a.b.c.d Messages received from a router, used inthe initial phase of the session establishmentwhen the LDP ID is unknown

From a.b.c.d:e toa.b.c.d:e

Specifies the destination/source LDP ID

100 Confidential and Proprietary Information of ZTE CORPORATION

Page 111: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug mpls ldp sessionPurpose Use this command to monitor the LDP session activities. Cancel

the monitoring with the no command.

Command Modes Privileged EXEC

Syntax debug mpls ldp session {io | state-machine}

no debug mpls ldp session {io | state-machine}

SyntaxDescription

io Monitors the details of the messagessent/received in the session

state-machine Monitors the internal/external events receivedby the state machine

Example � This example describes how to monitor the details of the mes-sages sent/received in the session.ZXR10#debug mpls ldp session ioldp: Sent init msg to 204.1.1.200:0baseMsg : uBit = 0; msgType = 200; msgLength = 0; msgId = 0CSP: uBit = 0; fBit = 0; type = 500; length = 14Ver = 1; time = 60; PduLen = 4096; Lsrid = cc0101c8; LblSp = 0lad = 0, ld = 0, pvl = 0, res = 0ldp: Rcvd init msg from 177.1.1.1baseMsg : uBit = 0; msgType = 200; msgLength = 22; msgId = 2CSP: uBit = 0; fBit = 0; type = 500; length = 14Ver = 1; time = 60; PduLen = 4096; Lsrid = cc010164; LblSp = 0lad = 0, ld = 0, pvl = 0, res = 0……

� This example describes how to monitor the internal/externalevents received by the state machine.ZXR10#debug mpls ldp session state-machineldp: ptcl_adj:204.1.1.200:0: state 1, event: 0xeldp: ptcl_adj:204.1.1.200:0: state from 1 to 6, event: 0xeldp: ptcl_adj:204.1.1.200:0: state 6, event: 0xafdldp: ptcl_adj:204.1.1.200:0: state from 6 to 4, event: 0xafdldp: ptcl_adj:204.1.1.200:0: state 4, event: 0x200ldp: ptcl_adj:204.1.1.200:0: state from 4 to 3, event: 0x200ldp: ptcl_adj:204.1.1.200:0: state 3, event: 0x201ldp: ptcl_adj:204.1.1.200:0: state from 3 to 5, event: 0x201……

The displayed field descriptions are shown below.

Field Description

Ldp Indicates the debugging information is fromthe LDP module

ptcl_adj:a.b.c.d Specifies the opposite LDP ID

State Session state (see the state table)

Event Session state machine event (see the statetable)

Confidential and Proprietary Information of ZTE CORPORATION 101

Page 112: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Session state table is show below.

Status Description

1 NONEXISTENT

2 INITIALIZED

3 OPENREC

4 OPENSENT

5 OPERATIONAL

6 Waits for the establishment of TCPconnection

Session state machine event table is show below.

Status Description

0xd Internal event, session timeout

0xe Internal event, session created

0x10 Internal event, adjacent timeout

0x11fa Internal event, TCP connection created

0x11fc Internal event, TCP connection released

0x0001 External event, notification messagereceived

0x0200 External event, initialization messagereceived

0x0201 External event, keepAlive message received

0x0300 External event, address message received

0x0301 External event, address canceling messagereceived

0x0400 External event, label mapping messagereceived

0x0401 External event, label request messagereceived

0x0402 External event, label canceling messagereceived

0x0403 External event, label release messagereceived

0x0404 External event, label request terminationmessage received

102 Confidential and Proprietary Information of ZTE CORPORATION

Page 113: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug mpls ldp transportPurpose Use this command to monitor the messages found by LDP. Cancel

the monitoring with the no command.

Command Modes Privileged EXEC

Syntax debug mpls ldp transport {connections|events}

no debug mpls ldp transport {connections|events}

SyntaxDescription

connections Monitors and creates TCP-related events

events Creates and finds mechanism-related events,including hello messages receiving/sending

Example � This example describes how to create and find mechanism-related events.ZXR10#debug mpls ldp transport eventsldp: Send ldp hello; fei_1/1, scr/dst 204.1.1.100(0.0.0.0)/224.0.0.2, intf_id 33ldp: Send ldp hello; fei_1/2, scr/dst 196.1.1.100(0.0.0.0)/224.0.0.2, intf_id 65ldp: Rcvd ldp hello; fei_1/1, from 177.1.1.1(204.1.1.200:0),intf_id 33ldp: New adj 0 from 177.1.1.1(204.1.1.200:0), 177.1.1.1ldp: Opening ldp conn; 204.1.1.100<-->177.1.1.1ldp: ldp conn is up; 204.1.1.100:1027<-->177.1.1.1:646ldp: Send ldp hello; fei_1/1, scr/dst 204.1.1.100(0.0.0.0)/224.0.0.2, intf_id 33ldp: Send ldp hello; fei_1/2, scr/dst 196.1.1.100(0.0.0.0)/224.0.0.2, intf_id 65ldp: Rcvd ldp hello; fei_1/1, from 177.1.1.1(204.1.1.200:0),intf_id 33……

� This example describes how to monitor and create TCP-relatedevents.ZXR10#debug mpls ldp transport connectionsldp: Opening ldp conn; 204.1.1.100<-->177.1.1.1ldp: ldp conn is up; 204.1.1.100:1028<-->177.1.1.1:646……

RelatedCommands

terminal monitor

debug mstp agreementPurpose Use this command to open the MSTP debugging switch for fast

handing off negotiation information. Disable the switch with theno command.

Command Modes Privileged EXEC

Confidential and Proprietary Information of ZTE CORPORATION 103

Page 114: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

Syntax debug mstp agreement[interface <interface-name> instance<instance_number>]

no debug mstp agreement

SyntaxDescription

<interface-name> Interface name

<instance_number> Number of instances, in the range of 1~63

RelatedCommands

terminal monitor

debug mstp allPurpose Use this command to open all MSTP debugging switches. Close

the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mstp all

no debug mstp all

RelatedCommands

terminal monitor

debug mstp bpdu-rxPurpose Use this command to open the MSTP debugging switch for receiv-

ing packet information. Disable the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mstp bpdu-rx [interface <interface-name>]

no debug mstp bpdu-rx

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug mstp bpdu-txPurpose Use this command to open the MSTP debugging switch for sending

packet information. Disable the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mstp bpdu-tx [interface <interface-name>]

no debug mstp bpdu-tx

104 Confidential and Proprietary Information of ZTE CORPORATION

Page 115: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug mstp errorsPurpose Use this command to open MSTP error information debugging

switch. Disable the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mstp errors

no debug mstp errors

RelatedCommands

terminal monitor

debug mstp flushPurpose Use this command to open the MSTP debugging switch for delet-

ing MAC address information. Disable the switch with the no com-mand.

Command Modes Privileged EXEC

Syntax debug mstp flush [interface <interface-name> instance <instance_number>]

no debug mstp flush

SyntaxDescription

<interface-name> Interface name

<instance_number> Number of instances, in the range of 1~63

RelatedCommands

terminal monitor

debug mstp infoPurpose Use this command to open the MSTP info state machine informa-

tion debugging switch. Disable the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mstp info [interface <interface-name> instance <instance_number>]

no debug mstp info

Confidential and Proprietary Information of ZTE CORPORATION 105

Page 116: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription

<interface-name> Interface name

<instance_number> Number of instances, in the range of 1~63

RelatedCommands

terminal monitor

debug mstp migrationPurpose Use this command to open the MSTP protocol transition state ma-

chine information debugging switch. Disable the switch with theno command.

Command Modes Privileged EXEC

Syntax debug mstp migration [interface <interface-name>]

no debug mstp migration

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug mstp proposalsPurpose Use this command to open the MSTP debugging switch for fast

handing off negotiation request information. Disable the switchwith the no command.

Command Modes Privileged EXEC

Syntax debug mstp proposals [interface <interface-name> instance<instance_number>]

no debug mstp proposals

SyntaxDescription

<interface-name> Interface name

<instance_number> Number of instances, in the range of 1~63

106 Confidential and Proprietary Information of ZTE CORPORATION

Page 117: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug mstp rolesPurpose Use this command to open the MSTP instance calculation state

machine information debugging switch. Disable the switch withthe no command.

Command Modes Privileged EXEC

Syntax debug mstp roles [instance <instance_number>]

no debug mstp roles

SyntaxDescription

<instance_number> Number of instances, in the range of 1~63

RelatedCommands

terminal monitor

debug mstp statePurpose Use this command to open the MSTP port state synchronization in-

formation debugging switch. Disable the switch with the no com-mand.

Command Modes Privileged EXEC

Syntax debug mstp state [interface <interface-name>]

no debug mstp state

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug mstp tcPurpose Use this command to open the MSTP typology change state ma-

chine information debugging switch. Disable the switch with theno command.

Command Modes Privileged EXEC

Syntax debug mstp tc [interface <interface-name> instance <instance_number>]

no debug mstp tc

Confidential and Proprietary Information of ZTE CORPORATION 107

Page 118: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription

<interface-name> Interface name

<instance_number> Number of instances, in the range of 0~16

RelatedCommands

terminal monitor

debug mstp timersPurpose Use this command to open MSTP timer information debugging

switch. Disable the switch with the no command.

Command Modes Privileged EXEC

Syntax debug mstp timers

no debug mstp timers

RelatedCommands

terminal monitor

debug ntp packetPurpose Use this command to open NTP debug switch and show the infor-

mation of NTP sending and receiving packet. Close this switch withthe no command.

Command Modes Privileged EXEC

Syntax debug ntp packet

no debug ntp packet

Instructions The platform version V4.8.01 and the upgrade version support thiscommand.

RelatedCommands

terminal monitor

debug ppp allPurpose Use this command to open all PPP debugging switches. Close the

switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp all

no debug ppp all

108 Confidential and Proprietary Information of ZTE CORPORATION

Page 119: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug ppp authenticationPurpose Use this command to open PPP authentication information debug-

ging switch. Disable the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp authentication [interface <interface-name>]

no debug ppp authentication [interface <interface-name>]

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug ppp dataPurpose Use this command to open the debug switch for PPP data message

output. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp data [interface <interface-name>]

no debug ppp data [interface <interface-name>]

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug ppp errorPurpose Use this command to open the PPP error information debugging

switch. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp error [interface <interface-name>]

no debug ppp error [interface <interface-name>]

SyntaxDescription

<interface-name> Interface name

Confidential and Proprietary Information of ZTE CORPORATION 109

Page 120: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug ppp eventsPurpose Use this command to open the PPP event debugging switch. Close

the switch with no.

Command Modes Privileged

Syntax debug ppp events [interface <interface-name>]

no debug ppp events [interface <interface-name>]

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug ppp lcpPurpose Use this command to open the debugging switch for PPP LCP mes-

sage resolution output. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp lcp [interface <interface-num>]

no debug ppp lcp [interface <interface-num>]

SyntaxDescription

<interface-num> Interface number

RelatedCommands

terminal monitor

debug ppp multilinkPurpose Use this command to open the multilink PPP output debugging

switch. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp multilink {events | fragments}[interface <interface-name>]

no debug ppp multilink {events | fragments}[interface <interface-name>]

110 Confidential and Proprietary Information of ZTE CORPORATION

Page 121: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

SyntaxDescription

events Important event incurred in multilinknegotiation

fragments Whether packets through multilink are sentin fragments

<interface-name> Interface name

Instructions It is applied to ZXR10 GAR, ZXR10 ZSR.

RelatedCommands

terminal monitor

debug ppp ncpPurpose Use this command to open the debug switch for PPP NCP message

resolution output. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp ncp [interface <interface-name>]

no debug ppp ncp [interface <interface-name>]

SyntaxDescription

<interface-name> Interface name

RelatedCommands

terminal monitor

debug ppp packetPurpose Use this command to open the debugging switch for PPP control

message output. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug ppp packet [interface <interface-name>]

no debug ppp packet [interface <interface-name>]

SyntaxDescription

<interface-name> Interface name

Confidential and Proprietary Information of ZTE CORPORATION 111

Page 122: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug priorityPurpose Use this command to monitor the queue process activities of the

priority queue. Cancel the monitoring with the no command.

Command Modes Privileged EXEC

Syntax debug priority

no debug priority

Instructions It is applied to ZXR10 GAR, ZXR10 ZSR at present.

RelatedCommands

terminal monitor

debug radius allPurpose Open the RADIUS debugging switch. Close the Radius debug

switch with the no command.

Command Modes Privileged EXEC

Syntax debug radius all

no debug radius all

RelatedCommands

terminal monitor

debug radius userPurpose Use this command to open the RADIUS user debugging switch.

Close the Radius user debug switch with the no command.

Command Modes Privileged EXEC

Syntax debug radius user <subscriber name><domain name>

no debug radius user

SyntaxDescription

<subscriber name> subscriber name

<domain name> domain name

112 Confidential and Proprietary Information of ZTE CORPORATION

Page 123: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

terminal monitor

debug radius exceptionPurpose Use this command to open the RADIUS exception debugging

switch. Close the Radius exception debug switch with the nocommand.

Command Modes Privileged EXEC

Syntax debug radius exception

no debug radius exception

RelatedCommands

terminal monitor

debug radius authenticationdata

Purpose Use this command to open the RADIUS authentication data debug-ging switch. Close the Radius authentication data debug switchwith the no command.

Command Modes Privileged EXEC

Syntax debug radius authentication data

no debug radius authentication data

RelatedCommands

terminal monitor

debug radius authenticationerror

Purpose Use this command to open the RADIUS authentication error debug-ging switch. Close the Radius authentication error debug switchwith the no command.

Command Modes Privileged EXEC

Syntax debug radius authentication error

no debug radius authentication error

Confidential and Proprietary Information of ZTE CORPORATION 113

Page 124: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

RelatedCommands

terminal monitor

debug radius authenticationevent

Purpose Use this command to open the RADIUS authentication eventdebugging switch. Close the Radius authentication event debugswitch with the no command.

Command Modes Privileged EXEC

Syntax debug radius authentication event

no debug radius authentication event

RelatedCommands

terminal monitor

debug radius authenticationpacket

Purpose Use this command to open the RADIUS authentication packet de-bugging switch. Close the Radius authentication packet debugswitch with the no command.

Command Modes Privileged EXEC

Syntax debug radius authentication packet {<group_num>| all}

no debug radius authentication packet

SyntaxDescription <group_num> Authentication server group number

all All Authentication server group

RelatedCommands

terminal monitor

debug radius accountingdata

Purpose Use this command to open the RADIUS accounting data debuggingswitch. Close the Radius accounting data debug switch with theno command.

Command Modes Privileged EXEC

Syntax debug radius accounting data

114 Confidential and Proprietary Information of ZTE CORPORATION

Page 125: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

no debug radius accounting data

RelatedCommands

terminal monitor

debug radius accountingerror

Purpose Use this command to open the RADIUS accounting error debuggingswitch. Close the Radius accounting error debug switch with theno command.

Command Modes Privileged EXEC

Syntax debug radius accounting error

no debug radius accounting error

RelatedCommands

terminal monitor

debug radius accountingevent

Purpose Use this command to open the Radius accounting event debuggingswitch. Close the RADIUS accounting event debug switch with theno command.

Command Modes Privileged EXEC

Syntax debug radius accounting event

no debug radius accounting event

RelatedCommands

terminal monitor

debug radius accountingpacket

Purpose Use this command to open the RADIUS accounting packet debug-ging switch. Close the radius accounting packet debug switch withthe no command.

Command Modes Privileged EXEC

Syntax debug radius accounting packet {<group_num>| all}

no debug radius accounting packet

Confidential and Proprietary Information of ZTE CORPORATION 115

Page 126: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

SyntaxDescription <group_num> Authentication server group number

all All Authentication server group

RelatedCommands

terminal monitor

debug tunnel packetPurpose Use this command to show the information of packets received and

sent on a channel. Disable the function with the no command.

Command Modes Privileged EXEC

Syntax debug tunnel packet

no debug tunnel packet

Defaults If this area is configured, it is disabled by default.

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to display the output of the debugipv6 packet command.1d0h tunnel1: Ipv6/Ip packet to be encapsulate:10::1-->10::2 (len=64 ttl=64)1d0h tunnel1: Ipv6/Ip packet encapsulated: 7.7.7.7-->7.7.7.6(len=124 ttl=30 )1d0h tunnel1: Ipv6/Ip packet to be decapsulate: 7.7.7.6-->7.7.7.7(len=124 ttl=30 )1d0h tunnel1: Ipv6/Ip packet decapsulated: 10::2-->10::1(len=64 ttl=64)

The displayed field descriptions are shown below.

Field Description

1d0h Time for receiving or sending packet

Ipv6/Ip Indicates the channel type is ipv6 over ipchannel

packet to beencapsulate

Indicates the packet is to be encapsulated

packet encapsulated Indicates the packet is encapsulated

packet to bedecapsulate

Indicates the packet is to be decapsulated

packet decapsulated Indicates the packet is decapsulated

10::1-->10::2 or7.7.7.7-->7.7.7.6

Indicates the source address and destinationaddress of the packet

len=64 Indicates packet length

ttl=64 Indicates packet ttl

116 Confidential and Proprietary Information of ZTE CORPORATION

Page 127: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

Chapter 11 Debugging

RelatedCommands

debug ipv6 packet

debug vbasPurpose Use this command to open the switch for displaying VBAS debug-

ging information. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug vbas

no debug vbas

RelatedCommands

terminal monitor

debug voip pstnPurpose Use this command to display the PSTN call debugging information

in VoIP. Cancel the displaying with the no command.

Command Modes Privileged EXEC

Syntax debug voip pstn

no debug voip pstn

Instructions It is applied to ZXR10 GAR and ZXR10 ZSR at present.

RelatedCommands

terminal monitor

debug vrrpPurpose Use this command to open the switch for displaying VRRP debug-

ging information. Close the switch with the no command.

Command Modes Privileged EXEC

Syntax debug vrrp {state | packet | event | error | all}[group_no]

debug vrrp group {all | group_no}

no debug vrrp {state | packet | event | error | all}[group_no]

no debug vrrp group {all | group_no}

SyntaxDescription

state Shows the VRRP state change debugginginformation

packet Shows the protocol packet informationreceived/sent by the VRRP

Confidential and Proprietary Information of ZTE CORPORATION 117

Page 128: Router/EthernetSwitch - v4.8.22)/Basic Configuration Volume III.pdf · ZXR10 Router/EthernetSwitch ... ZXR10 Router/Ethernet Switch Command Manual (Security Volume) ZXR10 Router/Ethernet

ZXR10 Command Manual (Basic Configuration Volume III)

event Shows the information triggering VRRP statechange

group_no Shows this group all VRRP debug information

error Shows the error packet information receivedby VRRP

all Shows all the VRRP-related debugginginformation

RelatedCommands

terminal monitor

show debug

show debuggingPurpose Use this command to view the opened debugging switches.

Command Modes Privileged EXEC

Syntax show debugging

RelatedCommands

All debug commands

terminal monitorPurpose Use this command to output the debug information to the current

terminal. Stop the debugging information output to the currentterminal with the no command.

Command Modes Privileged EXEC

Syntax terminal monitor

no terminal monitor

RelatedCommands

All debug commands

118 Confidential and Proprietary Information of ZTE CORPORATION