ZXR10 Router/Ethernet Switch

advertisement
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: support@zte.com.cn
LEGAL INFORMATION
Copyright © 2006 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or distribution of
this document or any portion of this document, in any form by any means, without the prior written consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by contractual confidentiality obligations.
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE CORPORATION
or of their respective owners.
This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions are disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose, title or non-infringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the use of or reliance on the
information contained herein.
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications covering the subject
matter of this document. Except as expressly provided in any written license between ZTE CORPORATION and its licensee,
the user of this document shall not acquire any license to the subject matter herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit ZTE technical support website http://ensupport.zte.com.cn to inquire related information.
The ultimate right to interpret this product resides in ZTE CORPORATION.
Revision History
Revision No.
Revision Date
Revision Reason
R1.0
Dec. 28, 2008
First Edition
Serial Number: sjzl20086530
About This Manual.............................................. i
Command Introduction .....................................1
Manual Use Guide........................................................... 1
Description of Man-Machine Commands ............................. 1
Auxiliary Function ........................................................... 2
Command Mode ............................................................. 3
NAT Configuration .............................................7
clear 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 ............................. 19
clear 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 ............................... 25
absolute .......................................................................25
debug time-range ..........................................................26
periodic........................................................................26
show time-range ...........................................................27
time-range ...................................................................27
time-range disable.........................................................28
time-range enable .........................................................28
Event-list Configuration................................... 29
event-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................... 33
loop-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 .......................... 39
absolute-timeout ...........................................................39
disconnect line ..............................................................39
line..............................................................................40
password......................................................................40
session timeout .............................................................41
show line config ............................................................41
transport input ..............................................................41
work-mode ...................................................................42
SFLOW Configuration ...................................... 43
sflow agent...................................................................43
sflow collector ...............................................................43
sflow enable .................................................................44
sflow sample.................................................................44
Stack Configuration ......................................... 47
enable stack .................................................................47
disable stack.................................................................47
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 ............................. 53
ip domain flush-cache ...................................................53
ip domain lookup...........................................................53
ip domain name ............................................................53
ip domain server ...........................................................54
show ip domain .............................................................54
Debugging....................................................... 55
debug 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
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
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
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
About This Manual
Purpose
This manual provides procedures and guidelines that support the
operation of ZXR10 router and Ethernet switch.
Intended
Audience
This manual is intended for engineers and technicians who perform
operation activities on ZXR10 router and Ethernet switch.
What Is in This
Manual
Related
Documentation
This manual contains the following chapters:
Chapter
Summary
Chapter 1, Command
Introduction
This chapter describes the use method
of the command manual, command
description, format convention, auxiliary
function and mode.
Chapter 2, NAT
Configuration
This chapter describes the configuration
and view commands of NAT.
Chapter 3, Address Pool
Configuration
This chapter describes the configuration
and view commands of address pool.
Chapter 4, Time Range
Configuration
This chapter describes the configuration
and view commands of time range.
Chapter 5, Event-list
Configuration
This chapter describes the configuration
and view commands of event-list.
Chapter 6, Port Loop
Detection Configuration
This chapter describes the configuration
and view commands of port loop detection.
Chapter 7, Reverse Telnet
Configuration
This chapter describes reverse Telnet
configuration commands.
Chapter 8, SFLOW
Configuration
This chapter describes SFLOW configuration
commands.
Chapter 9, Stack
Configuration
This chapter describes the configuration
and view commands of stack.
Chapter 10, DNS
Configuration
This chapter describes the configuration
and view commands DNS.
Chapter 11, Debugging
This chapter describes the debug
commands of the system.
The following documentation is related to this manual:
�
ZXR10 Router/Ethernet Switch Command Manual (Command
Index Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (Ethernet
Switch Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (Basic Configuration Volume I)
Confidential and Proprietary Information of ZTE CORPORATION
i
ZXR10 Command Manual (Basic Configuration Volume III)
ii
�
ZXR10 Router/Ethernet Switch Command Manual (Basic Configuration Volume II)
�
ZXR10 Router/Ethernet Switch Command Manual (Remote Access Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (IPv4 Routing Volume I)
�
ZXR10 Router/Ethernet Switch Command Manual (IPv4 Routing Volume II)
�
ZXR10 Router/Ethernet Switch Command Manual (MPLS Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (QoS Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (Security
Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (Network
Management Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (Multicast
Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (IPv6 Volume)
�
ZXR10 Router/Ethernet Switch Command Manual (Voice and
Video Service Volume)
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
1
Command Introduction
Table of Contents
Manual Use Guide...............................................................
Description of Man-Machine Commands .................................
Auxiliary Function ...............................................................
Command Mode .................................................................
1
1
2
3
Manual Use Guide
The commands in other volumes are classified by functional modules, and each functional module corresponds to a chapter and
the commands in the chapter are organized in the form of level 2
directory and in the order of a–z.
To search a command, do as follows:
1. Find the desired command by referring to ZXR10 Router/Ethernet Switch Command Manual — Command Index.
2. Find command details by the volume, chapter/section and page
of the obtained command.
Description of Man-Machine
Commands
Each MML command is described by the following items:
�
Function
It describes the function implemented by this command.
�
Command Mode
It describes the mode in which this command can be executed.
�
Format
It describes the complete format of this command, including
the no format if possible.
�
Parameter Description
It describes parameters in this command in the form and prescribes the range and default value. If different products have
Confidential and Proprietary Information of ZTE CORPORATION
1
ZXR10 Command Manual (Basic Configuration Volume III)
different parameter ranges or default values, an additional
form is used for description.
�
Default
The default value is available in the case that this command is
not set. The default parameter value is not described here for
value selection.
Additional description shall be given if different products have
different default values.
�
Instructions
First describes the platform version information about this
command. For example, “The platform version X.X.XX or later
supports this command” indicates this command is provided
from the beginning of the platform version X.X.XX. This command is provided from the platform version 2.6 by default.
Second describes the use method and precautions of this command.
�
Example
It describes the use of this command in an example.
�
Related Commands
Lists the command(s) related to this command.
�
History Command
It describes history version information related to this command if a command is changed after version upgrade.
Do not describe the history command if this entry does not exist.
Auxiliary Function
The auxiliary function for ZXR10 devices is as follows.
1. In any command mode, enter a question mark (?) after the
DOS prompt of the system, a list of available commands in the
command mode will be displayed. With the context-sensitive
help function, the keywords and parameter lists of any commands can be obtained.
i.
In any command mode, enter a question mark "?" after the
DOS prompt of the system, and a list of all commands in
the mode and the brief description of the commands will
be displayed.
ii. Input the question mark behind a character or character
string to view the list of commands or keywords beginning
with this character or character string. Note that there is
no space between the character (string) and the question
mark.
iii. Press TAB behind the character string. If the command or
keyword beginning with this character string is unique, it
shall be completed with a space at the end. Note that there
is no space between the character string and the TAB.
2
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 1 Command Introduction
iv. Input a question mark after a command, a keyword or a
parameter, the next keyword or parameter to be input will
be listed, and also a brief explanation will be given. Note
that a space must be entered before the question mark.
2. If incorrect command, keyword or parameter is input, the error
isolation is offered with ^ in the user interface after you press
ENTER. The ^ is below the first character of the input incorrect
command, keyword or parameter.
3. ZXR10 router/Ethernet switch allows the command or keyword to be abbreviated into a character or character string that
uniquely identifies this command or keyword. For example, the
show command can be abbreviated to sh or sho.
4. The user interface supports the function of recording input
commands. A maximum of ten history commands can be
recorded. The function is very useful in re-invocation of a long
or complicated command or ingress.
To re-invoke a command from the record buffer, conduct one
of the following operations, as shown below.
Command
Function
Press CTRL-P or the
up arrow key
Re-invokes the latest command in the
record buffer. Repeat these keys to
invoke old commands forwards.
Press CTRL-N or the
down arrow key
Rolls the commands downward. When the
last command line is reached, one more
operation will roll the commands from the
begging of the buffer cyclically.
In any mode, execute the show history command to list the
latest commands input in this mode.
Command Mode
The command modes in this manual are shown below.
Mode
Prompt
Exec
mode
ZXR10>
Privileged
mode
ZXR10#
Global
configuration
mode
ZXR10(config)#
Entry
Command
Functions
enters directly
after logging
the system
Views simple
information
Exec
mode
enable
Configures
system
parameters
Privileged
mode
configure
terminal
Configures
global service
parameters
Admission
Mode
Confidential and Proprietary Information of ZTE CORPORATION
3
ZXR10 Command Manual (Basic Configuration Volume III)
4
Mode
Prompt
Admission
Mode
Entry
Command
Functions
Interface
configuration
mode
ZXR10(configif)#
Global
configuration
mode
interface
Configures
port
parameters
and selects
a port type
depending on
the keyword
Subinterface
mode
ZXR10 (configsubif)#
Global
configuration
mode
interface
Configures
subinterface
parameters
of the
NPCI/NPCT
VLAN
database
configuration
mode
ZXR10(vlandb)#
Privileged
mode
vlan datab
ase
Creates or
deletes VLANs
in batches
VLAN
configuration
mode
ZXR10(configvlan)#
Global
configuration
mode
vlan
Configures
VLAN
parameters
MSTP
configuration
mode
ZXR10(configmstp)#
Global
configuration
mode
spanning-t
ree mst conf
iguration
Configures
MSTP
parameters
Basic
ACL
configuration
mode
ZXR10(configbasic-acl)#
Global
configuration
mode
acl basic
Defines basic
ACL rule
Extended
ACL
configuration
mode
ZXR10(configext-acl)#
Global
configuration
mode
acl extend
Defines
extended ACL
rule
Line
configuration
mode
ZXR10(configline)#
Global
configuration
mode
line console
0
Configures
parameters
related to
serial port
and telnet
connection
Layer
2 ACL
configuration
mode
ZXR10(configlink-acl)#
Global
configuration
mode
acl link
Confidential and Proprietary Information of ZTE CORPORATION
line <1~64
>(GAR)
Defines layer
2 ACL rule
Chapter 1 Command Introduction
Mode
Prompt
Admission
Mode
Entry
Command
Functions
Hybrid
ACL
configuration
mode
ZXR10(confighybd-acl)#
Global
configuration
mode
acl hybrid
Defines hybrid
ACL rule
Router
standard ACL
mode
ZXR10 (configstd-nacl)#
Global
configuration
mode
ip access-list
Defines router
standard ACL
rule
Router
extended
ACL
mode
ZXR10 (configext-nacl)#
Global
configuration
mode
ip access-list
Defines router
extended ACL
rule
Route
configuration
mode
ZXR10(configrouter)#
Global
configuration
mode
router rip
Configures
RIP
parameters
router ospf
Configures
OSPF
parameters
router isis
Configures
IS-IS
parameters
router bgp
Configures
BGP
parameters
router
pimsm
Configures
PIM-SM
parameters
ipv6 router
rip
Configures
RIPng
parameters.
ipv6 router
ospf
Configures
OSPFv3
parameters
VRF
configuration
mode
ZXR10(configvrf)#
Global
configuration
mode
ip vrf
Configures
VRF
parameters
VFI configuration
mode
ZXR10(configvfi)#
Global
configuration
mode
vfi
Configures
VPLS related
parameters
Confidential and Proprietary Information of ZTE CORPORATION
5
ZXR10 Command Manual (Basic Configuration Volume III)
6
Mode
Prompt
Admission
Mode
Entry
Command
Functions
IPv4 address
family
configuration
mode
ZXR10(configrouter-af)#
Route
configuration
mode
(RIP)
address-fam
ily ipv4 vrf
Configures
RIP VRF
parameters
Route
configuration
mode
(BGP)
address-fam
ily vpnv4
Configures
BGP VPN
and VRF
parameters
address-fam
ily ipv4 vrf
Route
configuration
mode
(BGP4+)
address-fam
ily ipv6
Configures
BGP4+
unicast
address family
Route
configuration
mode
(ISISv6)
address-fam
ily ipv6
Configures
IS-ISv6
address family
ZXR10(configroute-map)#
Global
configuration
mode
route-map
Configures
route map
matching item
and operation
Channelization
configuration
mode
ZXR10(configcontrol)#
Global
configuration
mode
control
Configures
channelization
for ce1, ce3
and cpos3
Dial
peer
configuration
mode
ZXR10(configvoip100)#
Global
configuration
mode
dial-peer
voice
Configures
business
related to
integrated
service
Voice
port
configuration
mode
ZXR10(configvoice-port)#
Global
configuration
mode
voice-port
Configures
voice service
IPSec
configuration
mode
ZXR10(configipsec)#
Global
configuration
mode
ipsec
Configures
IPv6 IPSec
protection
Diagnosis mode
ZXR10(diag)#
Privileged
mode
diagnose
Tests CPU
and memory
usage
IPv6
unicast
address
family
configuration
mode
ZXR10(configrouter-af)#
Route
map
configuration
mode
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
2
NAT Configuration
Table of Contents
clear 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
clear ip nat statistics
Purpose
Command Modes
Syntax
Instructions
Example
Use this command to clear the statistics data of NAT conversion.
Privileged EXEC
clear ip nat statistics [max-dynamic-trans | max-local-ip]
The cleared statistics include numbers of NAT successes and failures, number of aged NAT translations, and number of cleared NAT
translations.
�
This example describes how to clear the NAT statistics in the
current system.
ZXR10#clear ip nat statistics
ZXR10#show ip nat statistics
Total active translations: 3066 (1 static, 3065 dynamic)
Maximal active dynamic translations: 3237
Current local ipaddrs: 2(3238 maximal)
Outside interfaces:
fei_6/8
Inside interfaces:
fei_6/1
Hits:
0 (uEngine: 0; protocol: 0)
Misses: 0 (uEngine: 0; protocol: 0)
Expired translations: 0
Clear translations:
0
Confidential and Proprietary Information of ZTE CORPORATION
7
ZXR10 Command Manual (Basic Configuration Volume III)
�
This example describes how to clear the maximum dynamic
entries in history record.
ZXR10#clear ip nat statistics max-dynamic-trans
ZXR10#show ip nat statistics
Total active translations: 3066 (1 static, 3065 dynamic)
Maximal active dynamic translations: 3065
Current local ipaddrs: 2(3238 maximal)
Outside interfaces:
fei_6/8
Inside interfaces:
fei_6/1
Hits:
0 (uEngine: 0; protocol: 0)
Misses: 0 (uEngine: 0; protocol: 0)
Expired translations: 0
Clear translations:
0
�
This example describes how to clear the maximum number of
local user in history record.
ZXR10#clear ip nat statistics max-local-ip
ZXR10#show ip nat statistics
Total active translations: 3066 (1 static, 3065 dynamic)
Maximal active dynamic translations: 3237
Current local ipaddrs: 2(2 maximal)
Outside interfaces:
fei_6/8
Inside interfaces:
fei_6/1
Hits:
0 (uEngine: 0; protocol: 0)
Misses: 0 (uEngine: 0; protocol: 0)
Expired translations: 0
Clear translations:
0
Related
Commands
show ip nat statistics
clear ip nat translations
Purpose
Command Modes
Syntax
Syntax
Description
8
Use this command to clear NAT translation entries.
Privileged EXEC
clear ip nat translation {*|[<global-ip><global-port><local-ip
><local-port>]| list <list-number>[<interface-name>]|{global
<global-ip>| local <local-ip>}}
<global-ip>
Global IP address of NAT translations in the
form of dotted decimal notation
<global-port>
Global port of NAT translations
<local-ip>
Local IP address of NAT translations in the
form of dotted decimal notation
<local-port>
Global port of NAT translations
<list-number>
ACL of local addresses in the dynamic NAT
rule, ranging 1 ~ 99
<interface-name>
Export interface specified in the dynamic NAT
rule
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 NAT Configuration
Instructions
Example
This command is to clear all NAT translations, specified NAT translations, all translations produced by a specific NAT rule, or the
translations containing a global/local address.
�
This command describes how to clear all NAT translations.
ZXR10(config)#clear ip nat translations
�
This command describes how to clear specified NAT translations.
ZXR10(config)#clear ip nat translations 2.2.2.2 80 1.1.1.1 80
�
This command describes how to clear all translations produced
by a dynamic NAT rule.
ZXR10(config)#clear ip nat translations list 2
�
This command describes how to clear the translations of a
global/local address.
ZXR10(config)#clear ip nat translations global 2.2.2.2
ip nat
Purpose
Command Modes
Syntax
Use this command to configure the NAT attribute of the interface.
Remove the NAT attribute with the no command.
Interface configuration
ip nat {inside|outside}
no ip nat {inside|outside}
Example
�
This example describes how to configure fei_5/1 interface as a
NAT inside interface.
ZXR10(config)#interface fei_5/1
ZXR10(config-if)#ip nat inside
�
This example describes how to configure fei_3/1 interface as a
NAT outside interface.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#ip nat outside
ip nat inside source
Purpose
Command Modes
Syntax
Use this command to configure the NAT rules originated from the
internal network. Delete the NAT rules with the no command.
Global configuration
ip nat inside source {list <list-number> pool <pool-name>[ov
erload [<interface-name>]]| list <list-number> interface <intf
ace-name>|static <local-ip><global-ip>| static {tcp | udp}<g
lobal-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
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>}
Syntax
Description
Instructions
Example
<list-number>
ACL for the local addresses in the dynamic
NAT rules, ranging 1 ~ 99
<pool-name>
Address pool for the global addresses in the
dynamic NAT rules, 1 ~ 16 characters
<interface-name>
Export interface specified in the dynamic NAT
rules
<local-ip>
Local IP address of in the static NAT rules in
the form of dotted decimal notation
<global-ip>
Global IP address of in the static NAT rules in
the form of dotted decimal notation
<local-port>
Local port in the static NAT port translation
rules
<global-port>
Global port in the static NAT port translation
rules
This command is used to configure the translation rules for the
static non-port translation, static PAT, dynamic non-port translation and dynamic PAT originated from the internal network.
�
This example describes how to configure the static NAT nonport translation rules.
ZXR10(config)#ip nat inside source static
10.1.1.1 202.119.230.9
�
This example describes how to configure the static NAT port
translation rules.
ZXR10(config)#ip nat inside source static tcp
10.1.1.1 80 202.119.230.9 80
�
This example describes how to configure the dynamic NAT
translation rules.
ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255
ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.254
prefix-length 24
ZXR10(config)#ip nat inside source list 3 pool p1
�
This example describes how to configure the NAT dynamic
reusable rule.
ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255
ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.254
prefix-length 24
ZXR10(config)#ip nat inside source list 3 pool p1 overload
�
This example describes how to configure the NAT dynamic
reusable rule, and then bind it to the export interface.
ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255
ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.254
prefix-length 24
ZXR10(config)#ip nat inside source list 3 pool p1 overload
fei_4/2
10
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 NAT Configuration
�
This example describes how to configure the NAT dynamic
translation rule with interface address multiplexing.
ZXR10(config)#access-list 3 permit 10.1.1.0 0.0.0.255
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#ip address 170.1.1.1 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#ip nat inside source list 3 interface fei_3/1
Related
Commands
access-list
ip access-list
ip nat pool
ip nat logging
Purpose
Command Modes
Syntax
Use this command to set the NAT log. Delete the configuration
with the no command.
Global configuration
ip nat logging {{all | event | mapping}|{source | destinatio
n}<ip-addr>}}
no ip nat logging {{all | event | mapping}|{source | destin
ation}<ip-addr>}}
Syntax
Description
Instructions
Example
<ip-addr>
Source/Destination IP address of record in
the dotted decimal notation
�
all means the log records event and mapping.
�
source | destination means the log records only NAT information of the specified source/destination address.
�
Platform V4.6.02 provides this function, while the ZXR10 GAR
does not.
�
This example describes how to set to record about NAT translations.
ZXR10(config)#ip nat logging mapping
�
This example describes how to set to record about NAT translation failures.
ZXR10(config)#ip nat logging event
�
This example describes how to set to record NAT translations
of the specified source address.
ZXR10(config)#ip nat logging source 1.1.1.19
�
This example describes how to set to record NAT translations
of the specified destination address.
ZXR10(config)#ip nat logging destination 10.1.1.34
Confidential and Proprietary Information of ZTE CORPORATION
11
ZXR10 Command Manual (Basic Configuration Volume III)
ip nat max-entry-number
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to configure the entry number which is supported by NAT.
Global configuration
ip nat max-entry-number <max-entry-number>
<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.
This command is only supported by ZXR10 GAR.
This example describes how to configure the entry number which
is supported by NAT is 128K.
ZXR10(config)#ip nat max-entry-number 128
ip nat multipool
Purpose
Command Modes
Syntax
Use this command to enter into NAT address pool configuration
mode. If the condition is matched, then perform NAT multi-network segments address pool configuration on NAT address pool
configuration mode. Delete global multi-network segments address pool with the no command.
Global configuration
ip nat multipool <pool-name> prefix-length <prefix-length>
no ip nat multipool <pool-name>
Syntax
Description
Example
<pool-name>
The name of address pool. 1~16 characters.
<prefix-length>
The prefix length of network 24~30
This example describes how to enter into NAT multi-network segments address pool configuration mode. This NAT multi-network
segments address pool name is p1.
ZXR10(config)#ip nat multipool p1 prefix-length 24
ZXR10(config-ipnat-pool)#
ip nat pool
Purpose
Command Modes
12
Use this command to configure the global address pool of the dynamic NAT. Delete the global address pool with the no command.
Global configuration
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 NAT Configuration
Syntax
ip nat pool <pool-name><start-address><end-address> prefix
-length <prefix-length>
no ip nat pool <pool-name>
Syntax
Description
Example
<pool-name>
Name of the address pool, 1 ~ 16 characters
<start-address>
Starting address of the pool in the dotted
decimal notation
<end-address>
Ending address of the pool in the dotted
decimal notation
<prefix-length>
Length of the network prefix, ranging 24 ~ 32
This example describes how to configure an address pool named
p1 from 170.1.1.1 to 170.1.1.78.
ZXR10(config)#ip nat pool p1 170.1.1.1 170.1.1.78
prefix-length 24
ip nat service
Purpose
Command Modes
Syntax
Use this command to configure ALG application of non-standard
interface. Delete the configuration with the no command.
Global configuration
ip nat service ftp port <port-number>
no ip nat service ftp port <port-number>
Syntax
Description
Example
<port-number>
Port number, 1~65535
This example describes how to configure FTP ALG application on
port 21.
ZXR10(config)#ip nat service ftp port 21
ip nat slot-number
Purpose
Command Modes
Syntax
Use this command to configure slot number which enables NAT
service. Delete this configuration with the no command.
Global configuration
ip nat slot-number <slot-number>
no ip nat slot-number
Syntax
Description
Instructions
<slot-number>
slot number, 1~12
This command is only supported by ZXR10 7800.
Confidential and Proprietary Information of ZTE CORPORATION
13
ZXR10 Command Manual (Basic Configuration Volume III)
Example
This example describes how to configure the slot number as 3 to
enable NAT service.
ZXR10(config)#ip nat slot-number 3
ip nat start
Purpose
Command Modes
Syntax
Example
Use this command to enable the NAT module.
Global configuration
ip nat start
This example describes how to start nat in global configuration
mode.
ZXR10(config)#ip nat start
ip nat stop
Purpose
Command Modes
Syntax
Example
Use this command to stop the NAT module.
Global configuration
ip nat stop
This example describes how to stop nat in global configuration
mode.
ZXR10(config)#ip nat stop
ip nat translation maximal
Purpose
Command Modes
Syntax
Use this command to set the maximum number of NAT translations for each internal address. Restore the default with the no
command.
Global configuration
ip nat translation maximal {<list-number>| default}<max-v
alue>
no ip nat translation maximal {<list-number>| default}
Syntax
Description
Example
14
<list-number>
ACL of local addresses in the dynamic NAT
rules, ranging 1 ~ 99
<max-value>
Maximum number of translations of a single
internal address, ranging 1 ~ 65535, 65535
by default
�
This example describes how to set the maximum number of
NAT translations for each internal address.
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 NAT Configuration
ZXR10(config)#ip nat translation maximal default 100
�
This example describes how to set the maximum number of
NAT translations for each internal address in the ACL.
ZXR10(config)#ip nat translation maximal 2 100
ip nat translation timeout
Purpose
Command Modes
Syntax
Use this command to configure the aging time of the translation
produced by the NAT rule if it is not active (that is, not participating
in the NAT translation). Restore the default with the no command.
Global configuration
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>]}
Syntax
Description
Instructions
Example
<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 the
translation packet, ranging 1 ~ 65534
The NAT translations generated by the static NAT rule do not participate in the aging operations.
�
This example describes how to configure the aging time of level
a as 600 seconds.
ZXR10(config)#ip nat translation timeout class a 600
�
This example describes how to configure the aging level of
HTTP as b.
ZXR10(config)#ip nat translation timeout protocol tcp 80 b
show ip nat count
Purpose
Command Modes
Syntax
Use this command to display address-based NAT statistics in a
descending way.
Privileged EXEC
show ip nat count {by-max <count>| by-used <count>|
global <global-ip>| local <local-ip>}
Confidential and Proprietary Information of ZTE CORPORATION
15
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Instructions
Example
<count>
Maximum count, 1 ~ 1024
<global-ip>
The global address to specify
<local-ip>
The local address to specify
The displayed contents include the internal address, number in
use, maximum number to use, and maximum limit number.
�
This example describes how to Display NAT address statistics
in the system in the descending way.
ZXR10#show ip nat count by-used 3
ID Inside local
current max-used limit
1 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 specific address in the system.
ZXR10#show ip nat count local 100.1.1.1
ID Inside local
current max-used limit
1 100.1.1.1
3
100
Related
Commands
-----
show ip nat translations
show ip nat statistics
Purpose
Command Modes
Syntax
Instructions
Use this command to display NAT statistics.
Privileged EXEC
show ip nat statistics
The displayed contents cover number of active NAT translations
(generates by both static and dynamic rules), maximum number
of dynamic NAT translations, current/maximum number of internal
addresses, statistics of internal and external ports, times of NAT
successes and failures, number of timed out NAT translations, and
number of cleared NAT translations.
In the displayed contents, uEngine means count of micode NAT
module processing, and protocol means count of protocol process
NAT module processing.
Example
This example describes how to display the NAT statistics in the
system.
ZXR10#show ip nat statistics
Total active translations: 3066 (1 static, 3065 dynamic)
Maximal active dynamic translations: 3237
Current local ipaddrs: 2(3238 maximal)
Outside interfaces:
fei_6/8
Inside interfaces:
fei_6/1
Hits:
65620 (uEngine: 0; protocol: 65620)
Misses: 8932 (uEngine: 8931; protocol: 1)
Expired translations: 63642
Clear translations:
0
16
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 NAT Configuration
Related
Commands
clear ip nat statistics
ip nat
ip nat inside source
ip nat translation timeout
show ip nat translations
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to display active NAT translations.
Privileged EXEC
show ip nat translations {*|{global <global-ip>|local <localip>}}
<global-ip>
Global IP address of NAT translations in the
form of dotted decimal notation
<local-ip>
Local IP address of NAT translations in the
form of dotted decimal notation
The displayed contents include NAT internal and external addresses, and port translation information in case of dynamical
reusable NAT.
�
This example describes how to display all NAT translations in
the current system.
ZXR10#show ip nat translations
Pro Inside global
--- 170.1.1.254
--170.1.1.1:1024
--170.1.1.1:1025
�
Inside local
10.1.1.254
10.1.1.1:1254
10.1.1.1:1255
This example describes how to display all NAT translations of
a specific address in the current system.
ZXR10#show ip nat translations local 10.1.1.1
Pro Inside global
Inside local
--170.1.1.1:1024
10.1.1.1:1254
--170.1.1.1:1025
10.1.1.1:1255
Related
Commands
TYPE
S/D/e
D/e
TYPE
D/e
D/e
ip nat inside source
Confidential and Proprietary Information of ZTE CORPORATION
17
ZXR10 Command Manual (Basic Configuration Volume III)
This page is intentionally blank.
18
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
3
Address Pool
Configuration
Table of Contents
clear 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
clear ip pool conflict-ip
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to clear the conflict-ip in ip pool.
Privileged EXEC
clear ip pool conflict-ip { all |[ pool <pool-name>]}[ slot <npc
-num>]
<pool-name>
The ip pool name, 1~16 characters.
<npc-num>
The number of npc, for distributed mode
display.
The platform version 4.08.22 and upgrade versions support this
command.
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
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
ip pool
conflict-time
Purpose
Command Modes
Syntax
Use this command to configure the conflict time of IP address in
an address pool. Restore the default configuration with the no
command.
IP pool configuration
conflict-time <time>
no conflict-time
Syntax
Description
Defaults
<time>
Conflict time value. 1~18000 minutes
If this area is configured, it is 30 minutes by default.
Instructions
The platform version V4.8.02 and the upgrade version support this
command.
Example
This example describes how to configure the conflict time as 60
minutes.
ZXR10(config-ip-pool)#conflict-time 60
ZXR10(config-ip-pool)#
Related
Commands
ip pool
distribute ip pool
Purpose
Command Modes
Syntax
Use this command to set the working mode of IP POOL to distributed.
Privileged EXEC
distribute ip pool
no distribute ip pool
Instructions
The platform version 4.08.22 and upgrade versions of distributed
devices support this command.
After enabling this command, the address disposal(apply/release)
is executed on local linecard, no longer on main control RP. The
effeciency is improved greatly. But all the disposal is on the independent linecard, so this mode can not be used in some occasions.
�
For example, all layer-3 interfaces across boards(such as
SupVLAN interface) are bound to ip pools with the same name.
Then users from different linecards will be disributed with the
same ip address.
�
Binding layer-3 interfaces across boards to one ippool also
leads to the same ip address for different users.
This command is applied to simple networking.
20
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Address Pool Configuration
Example
This example describes how to show pool1 configuration.
ZXR10(config)#distribute ip pool
ZXR10(config)#
Related
Commands
ip pool
exclude
Purpose
Command Modes
Syntax
Use this command to configure the reserved address of an IP address pool. Delete the configuration with the no command.
IP pool configuration
exclude <low_ip_addr>[<hig_ip_addr>]
no exclude <low_ip_addr>[<hig_ip_addr>]
Syntax
Description
Instructions
Example
<low_ip_addr>
The starting lowest address in the range of
reserved address, or specify an address.
<hig_ip_addr>
The highest address in the range of reserved
address.
�
The platform version V4.8.02 and the upgrade version support
this command.
�
The parameter has to be a sub group of this address pool.
This example describes how to configure the reserved address as
2.2.2.10~2.2.2.30
ZXR10(config)#ip pool pool1
ZXR10(config-ip-pool)#exclude 2.2.2.10 2.2.2.30
Related
Commands
ip pool
ip local pool
Purpose
Command Modes
Syntax
Use this command to create the address pool name and the address range items. Delete the IP address pool with the no command.
Global configuration
ip local pool <pool-name><begin_ip_addr><last_ip_addr><ip_
mask>
no ip local pool <pool-name>
Syntax
Description
<pool-name>
Address pool name, 1 ~ 16 characters
<begin_ip_addr>
Start IP address, in the dotted decimal
notation
Confidential and Proprietary Information of ZTE CORPORATION
21
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 command is kept. The command ip pool is suggested to use.
Example
This example describes how to configure the name of IP_POOL as
pool1.
ZXR10(config)#ip local pool pool1 5.5.5.5 5.5.5.55
255.255.255.0
ZXR10(config)#
Related
Commands
show ip local pool
ip pool
Purpose
Command Modes
Syntax
Use this command to create IP address pool which is used by DHCP
function, and enter into the relevant address pool configuration
mode. Delete the address pool with the no command.
Global configuration
ip pool <pool-name>
no ip pool <pool-name>
Syntax
Description
Instructions
Example
<pool-name>
The name of ip addresses pool. 1~16
characters.
The platform version V4.8.02 and the upgrade version support this
command.
This example describes how to name the IP_POOL as pool1.
ZXR10(config)#ip pool pool1
ZXR10(config-ip-pool)#
Related
Commands
show ip local pool
network
Purpose
Command Modes
Syntax
Use this command to collect all suitable IP addresses in a sub network into the range of address pool. Delete the configuration with
the no command.
IP pool configuration
network <net_number><net_mask>
no network <net_number><net_mask>
22
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Address Pool Configuration
Syntax
Description
Instructions
Example
<net_number>
The network number of a sub network
<net_mask>
The mask of sub network
�
The platform version V4.8.02 and the upgrade version support
this command.
�
It provides the function of fast address range configuration.
�
The instruction refers to the command range in detail.
This example describes how to collect the network segment
into address pool, which IP address is 2.2.2.1 and the mask is
255.255.255.0.
ZXR10(config)#ip pool pool1
ZXR10(config-ip-pool)#network 2.2.2.1 255.255.255.0
i
Related
Commands
ip pool
show ip local pool
range
Purpose
Command Modes
Syntax
Use this command to configure the address range of IP address
pool. Delete the configuration with the no command.
IP pool configuration
range <begin_ip_addr><last_ip_addr><ip_mask>
no range <begin_ip_addr><last_ip_addr><ip_mask>
Syntax
Description
Instructions
Example
<begin_ip_addr>
The starting address of IP address pool
<last_ip_addr>
The ending address of IP address pool
<ip_mask>
Address mask
�
This command configures the different network segment addresses, and distributes the available addresses according to
the configuration order.
�
Make sure that the reasonable address range is configured according to the network plan when applying DHCP. Avoiding the
address in IP POOL fails to pass the route test on DHCP server,
which causes the DHCP user can not obtain the address.
This example describes how to configure the range of IP_POOL1
as 2.2.2.10~2.2.2.200, the mask as 255.255.255.0.
ZXR10(config)#ip pool pool1
ZXR10(config-ip-pool)#range 2.2.2.10 2.2.2.200 255.255.255.0
Related
Commands
ip pool
show ip local pool
Confidential and Proprietary Information of ZTE CORPORATION
23
ZXR10 Command Manual (Basic Configuration Volume III)
show ip local pool
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to show configuration information of the local
address pool.
Privileged EXEC
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
<poolname>[vrf-instance <vrf-name>][slot <npc-num>]| slot
<npc-num>]
<pool-name>
Ip pool name, 1~16 characters
<vrf-name>
VPN name
<npc-num>
The number of npc, for distributed mode
display
Instructions
The platform version 4.08.02 support this command. The platform
version 4.08.22 and upgrade versions support the distributed display command.
Example
This example describes how to show the configuration of pool1 by
user defined.
ZXR10#show ip local pool configure pool1
Related
Commands
24
ip pool
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
4
Time Range
Configuration
Table of Contents
absolute ...........................................................................25
debug time-range..............................................................26
periodic............................................................................26
show time-range ...............................................................27
time-range .......................................................................27
time-range disable.............................................................28
time-range enable .............................................................28
absolute
Purpose
Command Modes
Syntax
Use this command to configure absolute time range. Delete the
absolute time range with the no command.
TimeRange configuration
absolute [start <time-date>][end <time-date>]
no absolute
Syntax
Description
Instructions
Example
[start <time-date>
the starting time of absolute time range
end <time-date>
the ending time of absolute time range
�
The format of <time-date> as hour: minute: second: month:
day: year. The minimal time is 2001_01_01 00:00. The second has to be the multiple of 15.
�
Only an absolute time range exists in a TimeRange list. Absolute time range defines the effective time range of all lists.
This example describes how to enter into TimeRange configuration
mode.
ZXR10(config)#time-range myTime
ZXR10(config-tr)#absolute start 08:00:00 10-01-2007 end
08:00:00 10-30-2007
ZXR10(config)#
Related
Commands
show time-range
time-range
Confidential and Proprietary Information of ZTE CORPORATION
25
ZXR10 Command Manual (Basic Configuration Volume III)
debug time-range
Purpose
Command Modes
Syntax
Syntax
Description
Example
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 state
of TimeRange is changed.
Privileged EXEC
debug time-range [change-to active | inactive]
change-to
Display which kinds of state conversion
information
active
The TimeRange list changes from inactive to
active
inactive
The TimeRange list changes from active to
inactive
This example describes how to print the TimeRange list information
which the input state changes from inactive to active.
ZXR10#debug time-range change-to active
ZXR10#terminal monitor
ZXR10#
Related
Commands
show time-range
time-range
periodic
Purpose
Command Modes
Syntax
Use this command to configure periodic time range. Delete the
periodic time range with the no command.
TimeRange configuration
periodic <days-of-week hh:mm:ss> to [days-of-week]<hh:m
m:ss>
no periodic <days-of-week hh:mm:ss> to [days-of-week]<hh
:mm:ss>
Syntax
Description
Example
<hh:mm:ss>
hour: minute: second. The second has to be
the multiple of 15.
<days-of-week>
It can be Monday, Tuesday, a specified date
or some days during the week: Monday,
Wednesday, Thursday, Friday, Saturday,
Sunday. Or it can be daily, weekend,
weekdays
This example describes how to enter into standard TimeRange configuration mode.
ZXR10(config)#time-range myTime
ZXR10(config-tr)# periodic daily 08:00:00 to 23:00:00
26
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 4 Time Range Configuration
Related
Commands
show time-range
time-range
show time-range
Purpose
Command Modes
Syntax
Syntax
Description
Example
Use this command to display the configured time segment.
All modes
show time-range [<time-range-name>]
<time-range-name>
Time segment name, 1~31 characters. The
first character can not be number.
This example describes how to show the time range test contents.
ZXR10(config)#time-range myTime
ZXR10(config-tr)# absolute start 08:00:00 10-01-2007
end 08:00:00 10-30-2007
ZXR10(config-tr)# periodic daily 08:00:00 to 23:00:00
ZXR10(config-tr)# exit
ZXR10(config)#show time-range
Current time is 14:37:13 10-15-2007 Monday
time-range ly <active>
absolute start 08:00:00 10-01-2007 end 08:00:00 10-30-2007
periodic daily 08:00:00 to 23:00:00
ZXR10(config)#
Related
Commands
time-range
time-range
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to configure the time range. Delete this configuration with the no command.
Global configuration
time-range <time-range-name>
<time-range-name>
The name of time range. 1~31 characters.
The first character can not be number.
�
At most 12 time ranges can be hold on a TimeRange list, including absolute time range and periodic time range.
�
On the state of TimeRange disable, all TimeRange lists do not
take any effect, that is, they are on active state all the time,
and do not change state with time.
This example describes how to enter into standard TimeRange configuration mode, that is, create TimeRange list myTime.
ZXR10(config)#time-range myTime
Confidential and Proprietary Information of ZTE CORPORATION
27
ZXR10 Command Manual (Basic Configuration Volume III)
ZXR10(config-tr)#exit
ZXR10(config)#no time-range myTime
Related
Commands
show time-range
time-range disable
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to disable TimeRange function.
Global configuration
time-range disable [clear]
clear
Whether to clear the non-default configuration
after disabling the function.
Instructions
When the function of TimeRange has been disabled, its configuration
can 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 configuration
ZXR10(config)#time-range disable clear
// disable and clear the configuration
Related
Commands
time-range enable
time-range enable
Purpose
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
Related
Commands
28
time-range disable
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
5
Event-list Configuration
Table of Contents
event-list..........................................................................29
interface ..........................................................................29
logic ................................................................................30
no event-list all .................................................................31
show event-list .................................................................31
show event-list reference ...................................................31
time-range .......................................................................32
event-list
Purpose
Use this command to configure all event lists.
Command Modes
Global configuration
Syntax
event-list <name>
Syntax
Description
Example
<name>
name of the event lists.
This example describes how to configure and delete event lists.
ZXR10(config)#event-list myEvent
ZXR10(config-event)#time-range morning active
ZXR10(config-event)#exit
ZXR10(config)#no event-list all
Related
Commands
show event-list
interface
Purpose
Command Modes
Syntax
Use this command to configure the interface up/down sub event.
Delete the sub event with the no command.
Event configuration
interface <interface-name>{protocol | physical | admin}{d
own | up}
no interface <interface-name>{protocol | physical | admin
}{down | up}
Confidential and Proprietary Information of ZTE CORPORATION
29
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Instructions
Example
<interface-name>
Interface name
protocol
Interface protocol state
admin
Interface management state
physical
Interface physical state
down
Interface down event
up
Interface up event
�
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 sub
events 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 sub
events will be cleared.
This example describes how to define the sub event that protocol
state is down on interface fei_2/1.
ZXR10(config)#event-list myEvent
ZXR10(config-event)#interface fei_2/1 protocol down
ZXR10(config-event)#exit
Related
Commands
show event-list
logic
Purpose
Command Modes
Syntax
Syntax
Description
Example
Use this command to specify the calculation logic of event-list.
Event configuration
logic {add | or}
add
The relationship between sub events is add.
or
The relationship between sub events is or
This example describes how to specify the event list logical is add.
ZXR10(config)#event-list myEvent
ZXR10(config-event)#logic add
ZXR10(config-event)#exit
ZXR10(config)#
30
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 5 Event-list Configuration
Related
Commands
show event-list
no event-list all
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to delete all event-lists.
Global configuration
no event-list all
all
Delete all ELK event lists
This command can not be used when any event list is using.
This example describes how to delete all event lists.
ZXR10(config)#no event-list all
Related
Commands
show event-list reference
show event-list
Purpose
Command Modes
Syntax
Syntax
Description
Example
Use this command to show the information of event lists.
All modes
show event-list [<name>]
<name>
The name of event list
This example describes how to show the information of myEvent.
ZXR10(config)#show event-list myEvent
event-list myEvent <happen>
time-range morning active
ZXR10(config)#show event-list
Current event lists:
2/512
Current event entries:
1/512
event-list myEvent <happen>
time-range morning active
event-list myEvent2<unhappen>
ZXR10(config)#
Related
Commands
event-list
show event-list reference
Purpose
Command Modes
Syntax
Use this command to the reference information of event-list.
All modes
show event-list reference [<name>]
Confidential and Proprietary Information of ZTE CORPORATION
31
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Example
<name>
The name of event list
This example describes how to show the reference information of
myEvent.
ZXR10(config)#show event-list myEvent
Name
Status
Application
myEvent
happened access-list
ZXR10(config)#
Related
Commands
Reference-times
3
event-list
time-range
Purpose
Command Modes
Syntax
Use this command to configure the time range. Delete this configuration with the no command.
Global configuration
time-range <time-range-name>{ active| inactive}
no time-range <time-range-name>{ active| inactive}
Syntax
Description
<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 the
existed TIMERANGE list.
Example
This example describes how to configure the TIMERANGE sub
event named morning in myEvent list.
ZXR10(config)#event-list myEvent
ZXR10(config-event)#time-range morning active
ZXR10(config-event)#exit
Related
Commands
32
show event-list
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
6
Port Loop Detection
Configuration
Table of Contents
loop-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
loop-detect interface
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to enable loop detection on one or more ports.
Global configuration
loop-detect interface <port-name>[enable | disable]
interface <port-na
me>
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-2
and fei_2/3.
ZXR10(config)#loop-detect interface fei_1/1-2,fei_2/3 enable
Confidential and Proprietary Information of ZTE CORPORATION
33
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
show loop-detect interface
loop-detect interface vlan
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to configure the VLAN for port loop detection,
that is, specify the VLAN in which loop detection is performed. Up
to eight VLANs can be specified on a port.
Global configuration
loop-detect interface <port-name> vlan <vlan-id>[enable |
disable]
interface <port-na
me>
Specifies a port
vlan <vlan-id>
Specifies the vlans for port loop detection
enable
Enables loop detection in the specified vlan
on the port
disable
Disables loop detection in the specified vlan
on the port
Defaults
No VLAN is configured by default, and loop detection is performed
in the VLAN corresponding to the PVID only.
Example
This example describes how to enable loop detection in vlan2-9 on
fei_1/1.
ZXR10(config)#loop-detect interface fei_1/1 vlan 2-9 enable
Related
Commands
show loop-detect interface-detail
loop-detect protect-interface
Purpose
Command Modes
Syntax
Syntax
Description
Defaults
34
Use this command to set the protect port for loop detection.
Global configuration
loop-detect
disable>
protect-interface
<port-name><enable
protect-interface
<port-name>
Specifies a port
enable
Enables protection of loop detect
disable
Disables protection of loop detect
If this area is configured, it is disabled by default.
Confidential and Proprietary Information of ZTE CORPORATION
|
Chapter 6 Port Loop Detection Configuration
Instructions
A switch decides further operation on a port based on the protect
attribute when detects loop on the port: It sends an alarm to give
notice of the loop without any other operation if the protect-interface attribute is enabled; or disable the port if its protect-interface
attribute is disabled.
Example
This example describes how to enable loop detection protection on
fei_1/1.
ZXR10(config)#loop-detect protect-interface fei_1/1 enable
Related
Commands
show loop-detect protect-interface
loop-detect reopen-time
Purpose
Command Modes
Syntax
Syntax
Description
Example
Use this command to set the duration from port loop detection to
restart of the port disabled due to a loop.
Global configuration
loop-detect reopen-time <interval>
reopen-time
<interval>
Duration (in minutes) from port loop detection
to restart of the port disabled due to a loop,
10 minutes by default
This example describes how to set reopen time as 1 minute.
ZXR10(config)#loop-detect reopen-time 1
Related
Commands
show loop-detect reopen-time
show loop-detect interface
Purpose
Command Modes
Syntax
Example
Use this command to show the port with loop detection enabled.
Privileged EXEC
show loop-detect interface
This example describes how to show the port with loop detection
enabled.
ZXR10(config)#show loop-detect interface
fei_1/1
fei_1/2
fei_1/3
fei_1/5
fei_1/6
fei_1/7
fei_1/4
fei_1/8
Confidential and Proprietary Information of ZTE CORPORATION
35
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
loop-detect interface
show loop-detect
interface-detail
Purpose
Command Modes
Syntax
Syntax
Description
Example
Use this command to show the detail of the port with loop detection
enabled.
Privileged EXEC
show loop-detect interface-detail <port-name>
interface-detail
<port-name>
Specifies a port
This example describes how to show the detail of fei_1/1 on which
loop detection is enabled.
ZXR10(config)#show loop-detect interface-detail fei_1/1
isUp
isMonitor
isLoop
isProtected
disable
enable
no
enable
npNum
portNum
reopenTime
counter
1
15
60
0
loopVlan
vlanRange
0
2 3 4 5 6 7 8 9
Related
Commands
loop-detect interface
show loop-detect
protect-interface
Purpose
Command Modes
Syntax
Example
Use this command to show the port with loop detection protection
enabled function.
Privileged EXEC
show loop-detect protect-interface
This example describes how to show the port with loop detection
protection enabled.
ZXR10(config)#show loop-detect protect-interface
fei_1/1
fei_1/2
fei_1/3
fei_1/4
fei_1/5
fei_1/6
fei_1/7
fei_1/8
36
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 6 Port Loop Detection Configuration
Related
Commands
loop-detect protect-interface
show loop-detect
reopen-time
Purpose
Command Modes
Syntax
Example
Use this command to show the duration from port loop detection
to restart the port disabled due to a loop.
Privileged EXEC
show loop-detect reopen-time
This example describes how to show the duration from port loop
detection to restart the port disabled due to a loop.
ZXR10(config)#show loop-detect reopen-time
The reopening time of loop detect :
1(minute)
ZXR10(config)#
Related
Commands
loop-detect reopen-time
Confidential and Proprietary Information of ZTE CORPORATION
37
ZXR10 Command Manual (Basic Configuration Volume III)
This page is intentionally blank.
38
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
7
Reverse Telnet
Configuration
Table of Contents
absolute-timeout ...............................................................39
disconnect line ..................................................................39
line..................................................................................40
password .........................................................................40
session timeout .................................................................41
show line config ................................................................41
transport input ..................................................................41
work-mode .......................................................................42
absolute-timeout
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to set the using timeout of a line.
Line configuration
absolute-timeout <minutes>
<minutes>
Connection timeout, unit: minutethe default
value is 24 hours .
Instructions
When the time exceeds the setting timeout value, the line connection is cut off.
Example
This example describes how to set the absolute using time of line
2 reverse telnet connection to 2 hours.
ZXR10(config)#line 2
ZXR10(line_config)#absolute-timeout 120
disconnect line
Purpose
Command Modes
Syntax
Use this command to stop an existed reverse telnet session.
Privileged EXEC
disconnect line <line_number>[all]
Confidential and Proprietary Information of ZTE CORPORATION
39
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Instructions
Example
<line_number>
Session number, the value range is 1~64
all
Stop all line sessions.
Use this command to stop an existed reverse telnet connection.
This example describes how to disconnect the reverse telnet connection through line 2.
ZXR10#disconnect line 2
line
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to enter into the line configuration mode.
Global configuration
line <begin-line-number>[<ending-line-number>]
<begin-line-number>
Designates line number or the first line
number in a group line
<ending-line-numb
er>
The last line number in a group lines.
�
It is applied to GAR project at present.
�
When the corresponding serial physical connection does not
exist, mistake hint will be returned.
This example describes how to enter line 2 line configuration mode.
ZXR10(config)#line 2
ZXR10(line_config)#
password
Purpose
Command Modes
Syntax
Use this command to set user login password for a line.
LINE Configuration
password <password>
no password <password>
Syntax
Description
Example
<password>
User password, character stringthe length is
3~16 characters
This example describes how to set the reverse telnet connection
password to zte on line 2.
ZXR10(config)#line 2
ZXR10(line_config)#password zte
40
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 7 Reverse Telnet Configuration
session timeout
Purpose
Command Modes
Syntax
Syntax
Description
Instruction
Example
Use this command to set the session timeout for a line.
Line Configuration
session timeout <interval>
<interval>
Time interval, unit: minute the default is 2
hours. The range is 1-10000 minutes.
The line connection is cut off when exceeding the set timeout.
This example describes how to set the reverse telnet connection
timeout to 10 minutes on line 2.
ZXR10(config)#line 2
ZXR10(line_config)#session-timeout 10
show line config
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to view some line or all line configuration information.
All modes
show line config {all |<begin-port>[<end-port>]}
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 input
Purpose
Command Modes
Syntax
Use this command to set transmit protocol data that allowed receiving.
Line configuration
transport input <telnet>
no transport input <telnet>
Syntax
Description
Instructions
Example
<telnet>
telnet protocol
It is only applied to telnet connection at present.
This example describes how to configure line 2 to allow telnet protocol through.
Confidential and Proprietary Information of ZTE CORPORATION
41
ZXR10 Command Manual (Basic Configuration Volume III)
ZXR10(config)#line 2
ZXR10(line_config)#transport input telnet
work-mode
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to set the work mode of the serial port.
Interface configuration
work-mode {transmit | com}
transmit
Sets the serial port to ordinary forward port.
com
Sets the serial port to serial port
communication.
�
It is applied to GAR project at present only.
�
This command can be configured on high-speed asynchronous
serial port.
This example describes how to set the work mode is serial mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#work-mode com
42
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
8
SFLOW Configuration
Table of Contents
sflow agent.......................................................................43
sflow collector ...................................................................43
sflow enable .....................................................................44
sflow sample.....................................................................44
sflow agent
Purpose
Command Modes
Syntax
Use this command to set the IP address of sflow agent, and specify
the local UDP port to communicate with sflow collector.
Global configuration
sflow agent-config ip-address <ipaddress>[udp-port <port
number>]
no sflow agent-config ip-address <ipaddress>
Syntax
Description
Instructions
Example
<ipaddress>
Sflow agent address, can be any valid address
<port number>
The local UDP port which is used by agent to
communicate with collector. 6343 by default.
�
Only ZXR10 6900 series supports this function.
�
Local port is the communication port which is used by sflow
agent to send sflow sample package.
�
This example describes how to set IP address of sflow agent
as 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 agent
as 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 collector
Purpose
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
ZXR10 Command Manual (Basic Configuration Volume III)
Command Modes
Syntax
Global configuration
sflow collector-config
<port number>]
ip-address
<ipaddress>[udp-port
no sflow collector-config ip-address <ipaddress>
Syntax
Description
Instructions
Example
<ipaddress>
Sflow collector address, can be any valid
address
<port number>
The remote UDP port which is used by agent
to communicate with collector. 6343 by
default. 1~65535
�
Only ZXR10 69 series supports this function.
�
Remote port is the communication port which is used by sflow
collector to receive sflow sample package.
�
This example describes how to set IP address of sflow collector
as 192.168.5.203, and use the default port to communicate.
ZXR10(config)#sflow collector-config ip-address
192.168.5.203
�
This example describes how to set IP address of sflow collector
as 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 enable
Purpose
Command Modes
Syntax
Instructions
Example
Use this command to enable the sflow sample function.
Global configuration
sflow [enable | disable]
Only ZXR10 6900 series supports this function.
�
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
Related
Commands
terminal monitor
sflow sample
Purpose
Command Modes
Syntax
Use this command to set the sflow sample rate on an interface.
Interface configuration
sflow-sample-rate {ingress | egress}<rate number>
sflow-sample-rate {ingress | egress}
44
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 8 SFLOW Configuration
Syntax
Description
Instructions
Example
ingress | egress
Specifies the direction for sflow sample
<rate number>
The range of sample rate
�
Only ZXR10 69 series support this function.
�
Enable sflow sample function before configure sample rate.
�
Sflow sample function can be configured and enabled on
ingress and egress direction synchronously.
The sample
actions are dependent.
This example describes how to configure the sample rate of interface gei_7/23 on ingress direction as 200, and the sample rate on
egress direction as 1000.
ZXR10(config)#interface gei_7/23
ZXR10(config-if)#sflow-sample-rate ingress 200
ZXR10(config-if)#sflow-sample-rate egress 1000
Confidential and Proprietary Information of ZTE CORPORATION
45
ZXR10 Command Manual (Basic Configuration Volume III)
This page is intentionally blank.
46
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
9
Stack Configuration
Table of Contents
enable stack .....................................................................47
disable stack.....................................................................47
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
enable stack
Purpose
Command Modes
Syntax
Instructions
Example
Use this command to enable the stack function.
Global configuration
enable stack
�
This command is only supported by the device which has stack
function.
�
It is required to restart the device after using this command.
This example describes how to enable the stack function of device.
ZXR10(config)#enable stack
disable stack
Purpose
Command Modes
Syntax
Instructions
Example
Use this command to disable the stack function.
Global configuration
disable stack
�
This command is only supported by the device which has stack
function.
�
It is required to restart the device after using this command.
This example describes how to disable stack function.
ZXR10(config)#disable stack
Confidential and Proprietary Information of ZTE CORPORATION
47
ZXR10 Command Manual (Basic Configuration Volume III)
nvram stack-machine-id
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to configure the device ID of stack device.
Global configuration
nvram stack-machine-id <machine id>
<machine id>
The device ID, 1~9
�
This command is only supported by the device which has stack
function.
�
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.
This example describes how to configure the ID of stack device as
4.
ZXR10(config)#nvram stack-machine-id 4
nvram stack-member-priority
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to configure the stack priority of stack device.
Global configuration
nvram stack-member-priority <priority>
<priority>
The priority level of stack device, 0~255
�
This command is only supported by the device which has stack
function.
�
It is required to restart the device after using this command.
This example describes how to configure the stack priority of stack
device as 100.
ZXR10(config)#nvram stack-member-priority 100
ZXR10(config)#
show switch all-neighbors
Purpose
Command Modes
Syntax
48
Use this command to show the neighbor information of all stack
devices.
Privileged EXEC
show switch all-neighbors
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 9 Stack Configuration
Instructions
Example
�
This command is only supported by the device which has stack
function.
�
This command is only effective on stack mode.
�
When there is no neighbor, the result is shown as empty.
This example describes how to show the neighbor information of
all stack devices.
ZXR10(config)#show switch all-neighbours
device_id neighbor-one neighbor-two
-------------------------------------1
2
2
1
show switch all-status
Purpose
Command Modes
Syntax
Instructions
Example
Use this command to show the stack attribute information of all
stack devices.
Privileged EXEC
show switch all-status
�
This command is only supported by the device which has stack
function.
�
This command is only effective on stack mode.
This example describes how to show the stack attribute information of all stack devices.
ZXR10(config)#show switch all-status
num_devices:
2
system_mac:00:00:00:00:00:93
master_id:
1
slave_id :
2
device_id priority part mac
product-type num-stk-ports
-----------------------------------------------------------------------1
8
master 00:00:00:00:00:93 5928F
4
2
31
slave 00:d0:d0:c0:56:03 5928F
4
show switch neighbours
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Use this command to show the neighbor information of a stack
device.
Privileged EXEC
show switch neighbours [stack-member-number <stack-me
mber-id>]
stack-mem
ber-number
<stack-member-id>
�
The ID of stack device. 1~9
This command is only supported by the device which has stack
function.
Confidential and Proprietary Information of ZTE CORPORATION
49
ZXR10 Command Manual (Basic Configuration Volume III)
Example
�
This command is only effective on stack mode.
�
When this command is used without the parameter, the neighbor information of master device will be shown.
This example describes how to show the neighbor information of
member device that ID is 1.
ZXR10(config)#show switch neighbours
stack-member-number 1
stk_port neighbor_device_id neighbor_stk_port
----------------------------------------------4
2
4
show switch stack-ports
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to show the stack port information of stack
device.
Privileged EXEC
show switch stack-ports [stack-member-number <stack-me
mber-id>]
stack-mem
ber-number
<stack-member-id>
The ID of stack device. 1~9
�
This command is only supported by the device which has stack
function.
�
This command is only effective on stack mode.
�
When this command is used without the parameter, the neighbor information of master device will be shown.
This example describes how to show the stack port information of
master device.
ZXR10(config)#show switch stack-ports
stack port 3
link_state:
stp_state :
Input:
Packets
:
Unicasts
:
Broadcasts
:
Oversize
:
Dropped
:
Jabber
:
probe pkts
:
config pkts :
Output:
Packets
:
Unicasts
:
Broadcasts
:
LateCollision:
probe pkts
:
config pkts :
stack port 4
link_state:
stp_state :
50
down
flags:
0x000001
0
0
0
0
0
0
0
0
Bytes
:
Multicasts:
Undersize :
CRC-ERROR :
Fragments :
MacRxErr :
route pkts:
topo pkts :
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bytes
: 0
Multicasts: 0
Collision : 0
route pkts: 0
topo pkts : 0
up
flags:
Confidential and Proprietary Information of ZTE CORPORATION
0x00000e
Chapter 9 Stack Configuration
Input:
Packets
:
Unicasts
:
Broadcasts
:
Oversize
:
Dropped
:
Jabber
:
probe pkts
:
config pkts :
Output:
Packets
:
Unicasts
:
Broadcasts
:
LateCollision:
probe pkts
:
config pkts :
0
0
0
0
0
0
2
1
Bytes
:
Multicasts:
Undersize :
CRC-ERROR :
Fragments :
MacRxErr :
route pkts:
topo pkts :
0
0
0
0
0
0
5
1
0
0
0
0
2
1
Bytes
: 0
Multicasts: 0
Collision : 0
route pkts: 5
topo pkts : 0
show switch status
Purpose
Command Modes
Syntax
Syntax
Description
Instructions
Example
Use this command to show the stack attribute information of a
stack device.
Privileged EXEC
show switch status [stack-member-number <stack-member
-id>]
stack-mem
ber-number
<stack-member-id>]
The ID of stack device. 1~9
�
This command is only supported by the device which has stack
function.
�
This command is only effective on stack mode.
�
When this command is used without the parameter, the neighbor information of master device will be shown.
This example describes how to show the stack attribute information of a member device that ID is 2.
ZXR10(config)#show switch status stack-member-number 1
tx_port : 4 , des device id : 2
Switch Mac:
00:00:00:00:00:93
device id:
1
priority :
8
product type:
5928F
num-stk-ports:
4
stack-state:
ATTACH
flags:
0x111b07 master_id:
1
slave_id:
2
part:
master
master-select-times:
2
dest_deviceId:
2
tx-port:
4
Confidential and Proprietary Information of ZTE CORPORATION
51
ZXR10 Command Manual (Basic Configuration Volume III)
This page is intentionally blank.
52
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
10
DNS Protocol
Configuration
Table of Contents
ip domain flush-cache .......................................................53
ip domain lookup...............................................................53
ip domain name ................................................................53
ip domain server ...............................................................54
show ip domain .................................................................54
ip domain flush-cache
Purpose
Command Modes
Syntax
Related
Commands
Use this command to delete DNS cache.
Global Configuration
ip domain flush-cache
debug ip domain
ip domain lookup
Purpose
Command Modes
Syntax
Use this command to enable DNS client.
Global Configuration
ip domain lookup
no ip domain lookup
Instructions
Related
Commands
By default, DNS is enabled. Disable this function with the no command.
debug ip domain
ip domain name
Purpose
Use this command to set DNS address.
Confidential and Proprietary Information of ZTE CORPORATION
53
ZXR10 Command Manual (Basic Configuration Volume III)
Command Modes
Syntax
Global Configuration
ip domain name <domain>
no ip domain name <domain>
Syntax
Description
Instructions
Related
Commands
<domain>
Default DNS postfix, 1~150 characters.
Only one default domain postfix can be configured.
debug ip domain
ip domain server
Purpose
Command Modes
Syntax
Use this command to set DNS address.
Global Configuration
ip domain server <server-ip>
no ip domain server <server-ip>
Syntax
Description
Related
Commands
<server-ip>
DNS address, in format of IPv4, the maximum
is 10.
debug ip domain
show ip domain
Purpose
Command Modes
Syntax
Example
Related
Commands
54
Use this command to display DNS cache information.
All modes
show ip domain
ZXR10#show ip domain
NO
Record Name
A (Host) Record
TTL
---------------------------------------------------------1
Xuxj145873.nyversion.zte 10.44.52.92
1200
debug ip domain
Confidential and Proprietary Information of ZTE CORPORATION
Chapter
11
Debugging
Table
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
of Contents
all ..........................................................................57
arp ........................................................................58
atm........................................................................58
bfd.........................................................................59
custom-queue .........................................................59
frame-relay lmi........................................................60
frame-relay packet ...................................................60
gre.........................................................................61
group-management access........................................61
group-management all .............................................62
group-management cluster .......................................62
group-management zdp............................................62
group-management ztp ............................................63
hdlc .......................................................................63
ip...........................................................................64
ip bgp all ................................................................64
ip bgp dampening ....................................................64
ip bgp events ..........................................................64
ip bgp in .................................................................65
ip bgp keepalives .....................................................65
ip bgp out ...............................................................65
ip bgp updates.........................................................66
ip destination ..........................................................66
ip dhcp ...................................................................66
ip dhcp client ..........................................................67
ip domain ...............................................................67
ip icmp ...................................................................68
ip icmp detail ..........................................................68
ip igmp...................................................................68
ip igmp-snooping .....................................................68
ip igmp group..........................................................69
ip igmp interface......................................................69
ip interface..............................................................69
ip ippool .................................................................70
ip msdp ..................................................................70
ip multicast .............................................................71
ip nat .....................................................................71
ip ospf adj...............................................................71
ip ospf all................................................................72
ip ospf cspf .............................................................72
ip ospf database-timer..............................................72
ip ospf events..........................................................73
ip ospf flood ............................................................73
ip ospf lsa-generation ...............................................73
ip ospf packet..........................................................74
ip ospf retransmission...............................................74
Confidential and Proprietary Information of ZTE CORPORATION
55
ZXR10 Command Manual (Basic Configuration Volume III)
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
debug
56
ip ospf spf...............................................................74
ip pimdm ................................................................75
ip pimsm ................................................................75
ip pim-snooping .......................................................76
ip protocol ..............................................................76
ip rip ......................................................................77
ip rip all ..................................................................77
ip rip database ........................................................77
ip rip events ............................................................78
ip rip trigger............................................................78
ip rsvp....................................................................78
ip source.................................................................79
ip tcp all .................................................................79
ip tcp driver ............................................................80
ip tcp driver-pak ......................................................80
ip tcp packet ...........................................................81
ip tcp transactions....................................................81
ip udp ....................................................................82
ipv6 icmp................................................................82
ipv6 nd...................................................................83
ipv6 ospf adj ...........................................................85
ipv6 ospf events ......................................................85
ipv6 ospf ifsm..........................................................86
ipv6 ospf lsa............................................................86
ipv6 ospf lsa-generation............................................87
ipv6 ospf nfsm.........................................................87
ipv6 ospf packet ......................................................88
ipv6 ospf route ........................................................89
ipv6 packet .............................................................89
ipv6 rip...................................................................90
ipv6 tcp all ..............................................................91
ipv6 tcp driver .........................................................91
ipv6 tcp packet ........................................................92
ipv6 tcp transactions ................................................92
ipv6 udp .................................................................93
isis.........................................................................94
isis adj-packets........................................................94
isis all.....................................................................94
isis snp-packets .......................................................95
isis spf-events .........................................................95
isis update-packets ..................................................95
lacp all ...................................................................95
lacp fsm .................................................................96
lacp packet .............................................................96
mac-ping ................................................................96
modem...................................................................97
mpls ldp advertisements ...........................................97
mpls ldp all .............................................................98
mpls ldp bindings .....................................................98
mpls ldp l2vpn.........................................................99
mpls ldp messages................................................. 100
mpls ldp session .................................................... 101
mpls ldp transport.................................................. 103
mstp agreement .................................................... 103
mstp all ................................................................ 104
mstp bpdu-rx ........................................................ 104
mstp bpdu-tx ........................................................ 104
mstp errors ........................................................... 105
mstp flush............................................................. 105
mstp info .............................................................. 105
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
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
debug all
Purpose
Command Modes
Syntax
Use this command to open all debug switches. Close all debug
switches with the no command.
Privileged EXEC
debug all
no debug all
Defaults
If this area is configured, it is invalid by default(All the debug commands are disabled by default).
Instructions
When the debug all switch is opened, the system will be busy
in outputting the debug information, which will affect the network
performance. As a result, it is generally not recommended to open
the debug all switch.
Related
Commands
All debug commands
terminal monitor
Confidential and Proprietary Information of ZTE CORPORATION
57
ZXR10 Command Manual (Basic Configuration Volume III)
debug arp
Purpose
Command Modes
Syntax
�
Use this command to enable the packets debug function of ARP,
which displays the debug information of sending and receiving
state processed by the address resolution protocol ARP, and
displays whether the router is sending/receiving the ARP messages. 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 receiving
flow processed by the address resolution protocol ARP, and displays whether sends and receives successfully, and the failure
reason. Disable the arp debug function with the no command.
Privileged EXEC
debug arp {packets |[trace {send | receive}]| all}{interface
<interface-name>| source <ip-addr>|<mac-addr>| destinat
ion <ip-addr>|<mac-addr>}
no debug arp {packets |[trace {send | receive}]| all}{interf
ace <interface-name>| source <ip-addr>|<mac-addr>| destin
ation <ip-addr>|<mac-addr>}
Syntax
Description
Related
Commands
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 IP
address
destination
Prints ARP packets in the specified destination
IP address
<interface-name>
Interface name
<ip-addr>
IP address
<mac-addr>
MAC address
terminal monitor
debug atm
Purpose
Command Modes
58
Use this command to open the debug switch for ATM message
output. Close the switch with the no command.
Privileged EXEC
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Syntax
debug atm {packet | oam}
no debug atm {packet | oam}
Syntax
Description
Related
Commands
oam
Output ATM management cell packets
packet
Output atm messages
terminal monitor
debug bfd
Purpose
Command Modes
Syntax
Use this command to enable BFD debug switch and show the relevant work information of BFD.
Privileged EXEC
debug bfd {bytes | error | events | packet}
no debug bfd {bytes | error | events | packet}
Syntax
Description
Defaults
Related
Commands
bytes
Inputs BFD packet
error
Inputs BFD error information
events
Inputs BFD event information
packet
Inputs BFD packet (the basic information)
If this area is configured, it is invalid by default.
terminal monitor
debug custom-queue
Purpose
Command Modes
Syntax
Use this command to monitor the queue process activities of the
customized queue. Cancel the monitoring with the no command.
Privileged EXEC
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
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug frame-relay lmi
Purpose
Command Modes
Syntax
Use this command to open the debug switch to print the debug
information of the local management interface (LMI). Close the
debug switch with the no command.
Privileged EXEC
debug frame-relay lmi [interface <interface-name>]
no debug frame-relay lmi [interface <interface-name>]
Syntax
Description
Instructions
Example
interface <interfacename>
Name of the interface for printing the LMI
debug information
It is applied to ZXR10 GAR, ZXR10 ZSR.
�
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
Related
Commands
terminal monitor
debug frame-relay packet
Purpose
Command Modes
Syntax
Use this command to open the debug switch to print the frame relay packet information. Close the debug switch with the no command.
Privileged EXEC
debug frame-relay packet [interface <interface-name>[dlci
<dlci>]]
no debug frame-relay packet [interface <interface-name>[d
lci <dlci>]]
Syntax
Description
Instructions
Example
60
interface <interfacename>
Name of the interface for printing the packet
debug information
dlci <dlci>
dlci number of the packet debug information
to be printed, in the range of 16~1007
It is applied to ZXR10 GARZXR10 ZSR.
�
This example describes how to print the packet debug information.
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
ZXR10#debug frame-relay packet
�
This example describes how to print the packet debug information 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 information of the specified interface serial_2/1 with dlci number 101.
ZXR10#debug frame-relay packet interface serial_2/1 dlci 101
Related
Commands
terminal monitor
debug gre
Purpose
Command Modes
Syntax
Use this command to open the GRE debug switch to display the
GRE working information. Close the debug switch with the no
command.
Privileged EXEC
debug gre
no debug gre
Instructions
Related
Commands
ZXR10 5900 series does not support this command.
terminal monitor
debug group-management
access
Purpose
Command Modes
Syntax
Use this command to enable the debug function of ACCESS sub
module.
Privileged EXEC
debug group-management access {all | error | packet |
event}
no debug group-management access {all | error | packet |
event}
Syntax
Description
all
The print control of all access sub module
information
error
Prints error information
event
Prints event information
packet
Prints packet information
Confidential and Proprietary Information of ZTE CORPORATION
61
ZXR10 Command Manual (Basic Configuration Volume III)
debug group-management
all
Purpose
Command Modes
Syntax
Use this command to enable the debug function of group management protocol and show all debug information. Disable the debug
fuction with the no command.
Privileged EXEC
debug group-management all
no debug group-management all
debug group-management
cluster
Purpose
Command Modes
Syntax
Use this command to enable debug function of the cluster management protocol to display debugging information of the cluster
management protocol processing, display whether cluster management messages are sent on the switch, display whether cluster management messages are received, and cluster management
state machine change information. Disable the function with the
no command.
Privileged EXEC
debug group-management cluster {all | error| packet |
event | state}
no debug group-management cluster {all | error| packet |
event | state}
Syntax
Description
all
The print control of all CLUSTER sub module
information
error
Prints error information
event
Prints event information
packet
Prints packet information
state
Prints state information on CLUSTER module
debug group-management
zdp
Purpose
62
Use this command to enable debug function of ZDP management
protocol. Disable the function with the no command.
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Command Modes
Syntax
Privileged EXEC
debug group-management zdp {all | error| packet | event |
state}
no debug group-management zdp {all | error| packet |
event | state}
Syntax
Description
all
The print control of all ZDP sub module
information
error
Prints error information
event
Prints event information
packet
Prints packet information
debug group-management
ztp
Purpose
Command Modes
Syntax
Use this command to enable debug function of ZTP management
protocol. Disable the function with the no command.
Privileged EXEC
debug group-management ztp {all | error| packet | event |
state}
no debug group-management ztp {all | error| packet | event
| state}
Syntax
Description
all
The print control of all ZTP sub module
information
error
Print error information
event
Print event information
packet
Print packet information
debug hdlc
Purpose
Command Modes
Syntax
Use this command to trace the hdlc basic link setup procedure.
Privileged EXEC
debug hdlc
no debug hdlc
Instructions
It is applied to ZXR10 GAR, ZXR10 ZSR.
Confidential and Proprietary Information of ZTE CORPORATION
63
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug ip
Purpose
Command Modes
Syntax
Use this command to enable the IP debug function to display the
debugging information processed by the IP, and display whether
the router is sending/receiving the IP message. Disable the IP
debug function with the no command.
Privileged EXEC
debug ip
no debug ip
Related
Commands
terminal monitor
debug ip bgp all
Purpose
Command Modes
Syntax
Use this command to open all BGP debug switches. Close the tracing with the no command.
Privileged EXEC
debug ip bgp all
no debug ip bgp all
Related
Commands
terminal monitor
debug ip bgp dampening
Purpose
Command Modes
Syntax
Use this command to trace and show the information and processing of BGP route oscillation. Close the tracing with the no
command.
Privileged EXEC
debug ip bgp dampening
no debug ip bgp dampening
Related
Commands
terminal monitor
debug ip bgp events
Purpose
64
Use this command to trace and display the transition of the state
machine connected with the BGP. The cause will also be shown
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
if the transition of the state machine is abnormal (the abnormal
transition mainly refers to the transition of the BGP from the high
state to the low state). Close the tracing with the no command.
Command Modes
Syntax
Privileged EXEC
debug ip bgp events
no debug ip bgp events
Related
Commands
terminal monitor
debug ip bgp in
Purpose
Command Modes
Syntax
Use this command to trace and display the messages received by
the BGP. Close the tracing with the no command.
Privileged EXEC
debug ip bgp in
no debug ip bgp in
Related
Commands
terminal monitor
debug ip bgp keepalives
Purpose
Command Modes
Syntax
Use this command to trace and display the keepalives message
received and sent by the BGP. Close the tracing with the no command.
Privileged EXEC
debug ip bgp keepalives
no debug ip bgp keepalives
Related
Commands
terminal monitor
debug ip bgp out
Purpose
Command Modes
Syntax
Use this command to trace and display the messages sent by the
BGP. Close the tracing with the no command.
Privileged EXEC
debug ip bgp out
no debug ip bgp out
Confidential and Proprietary Information of ZTE CORPORATION
65
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug ip bgp updates
Purpose
Command Modes
Syntax
Use this command to trace and display the updates message
sent/received by the BGP connection and show the route processing conditions in the message. Close the tracing with the no
command.
Privileged EXEC
debug ip bgp [<ip-address>] updates
no debug ip bgp [<ip-address>] updates
Syntax
Description
Related
Commands
<ip-address>
Neighbor IP address. When a neighbor is
specified, only the updates message related
to this neighbor will be traced.
terminal monitor
debug ip destination
Purpose
Command Modes
Syntax
Use this command to enable debug function of the specified destination address IP protocol to display the debugging information
processed by the IP protocol, and display whether the router is
sending/receiving the specified destination address IP message.
Disable the function with the no command.
Privileged EXEC
debug ip destination <ip-address>
no debug ip destination <ip-address>
Syntax
Description
Related
Commands
<ip-address>
Destination IP address in the dotted decimal
notation
terminal monitor
debug ip dhcp
Purpose
Command Modes
66
Use this command to enable the debug function of the DHCP RELAY and DHCP SERVER. Disable the debug function with the no
command.
Privileged EXEC
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Syntax
debug ip dhcp [[interface <inf_name>]|[mac <mac_addr>[v
rf-instance <vrf_name>]]|[vlan <vlan_ID>]|[invlan <invlan_
ID>[exvlan <exvlan_ID>]]|[exvlan <exvlan_ID>]|[pool]|[poli
cy]]
no debug ip dhcp
Syntax
Description
Instructions
Related
Commands
<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
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 module. Use the keyword policy to print the information of DHCP POLICY module.
terminal monitor
debug ip dhcp client
Purpose
Command Modes
Syntax
Use this command to enable DHCP CLIENT debugging. Disable it
with the no command.
All modes
debug ip dhcp client
no debug ip dhcp client
Instructions
Related
Commands
The platform version 4.08.22 support this command. It supports
5900 switches currently.
terminal monitor
debug ip domain
Purpose
Command Modes
Syntax
Use this command to enable or disable DNS debugging.
Privileged EXEC
debug ip domain
no debug ip domain
Confidential and Proprietary Information of ZTE CORPORATION
67
ZXR10 Command Manual (Basic Configuration Volume III)
debug ip icmp
Purpose
Use this command to enable the ICMP debug function to display the
debugging information processed by the ICMP, and display whether
the router is sending/receiving the ICMP message. Disable the
function with the no command.
Command Modes
Privileged EXEC
Syntax
debug ip icmp
no debug ip icmp
Related
Commands
terminal monitor
debug ip icmp detail
Purpose
Command Modes
Syntax
Use this command to enable ICMP debug function to display detailed debugging information processed by the ICMP, and display
detailed information of ICMP packets sent and received by the
router. Disable the function with the no command.
Privileged EXEC
debug ip icmp detail
no debug ip icmp detail
Related
Commands
terminal monitor
debug ip igmp
Purpose
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
Related
Commands
terminal monitor
debug ip igmp-snooping
Purpose
Command Modes
Syntax
68
Use this command to enable the debug switch of IGMP Snooping.
Disable the debug switch of IGMP Snooping with the no command.
Privileged EXEC
debug ip igmp-snooping
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
no debug ip igmp-snooping
Related
Commands
terminal monitor
debug ip igmp group
Purpose
Command Modes
Syntax
Use this command to enable IGMP debug switch of a specified
group. Disable the switch with the no command. Only one group
is supported to configure. When the no command is used, the
group name does not need to specify.
Privileged EXEC
debug ip igmp group <group-address>
no debug ip igmp group
Syntax
Description
Related
Commands
<group-address>
IP address of the specified group, in dotted
decimal notation
terminal monitor
debug ip igmp interface
Purpose
Command Modes
Syntax
Use this command to enable IGMP debug switch on a specified
interface. Disable IGMP debug switch on interface with the no
command. Only one interface is supported to configure. When
the no command is used, the interface name does not need to
specify.
Privileged EXEC
debug ip igmp interface <interface-name>
no debug ip igmp interface
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug ip interface
Purpose
Command Modes
Use this command to enable debug function of IP sent and received on the specified interface to display debugging information
processed by the IP. Disable the function with the no command.
Privileged EXEC
Confidential and Proprietary Information of ZTE CORPORATION
69
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
debug ip interface <interface-name>
no debug ip interface <interface-name>
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug ip ippool
Purpose
Command Modes
Syntax
Use this command to enable the debug function of OP POOL module. Disable this function with the no command.
Privileged EXEC
debug ip ippool [<debug_level>]
no debug ip ippool
Syntax
Description
Instructions
Related
Commands
<debug_level>
The classified level of print. 1~3
When more information is required to print, use the high print
level. The lowest print level is default setting.
terminal monitor
debug ip msdp
Purpose
Command Modes
Syntax
Use this command to open the MSDP debugging switch. Close the
switch with the no command.
Privileged EXEC
debug ip msdp [message-recv| message-send| connect|
warning]
no debug ip msdp [message-recv| message-send| connect|
warning]
Syntax
Description
70
message-recv
Debug information of the MSDP received
messages
message-send
Debug information of the MSDP sent
messages
connect
MSDP debugging information related to peer
connection
warning
MSDP alarm debugging information
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug ip multicast
Purpose
Command Modes
Syntax
Use this command to open the multicast debug switch. Close the
multicast debug switch with the no command.
Privileged EXEC
debug ip multicast [data | mrt | timer]
no debug ip multicast [data | mrt | timer]
Syntax
Description
Related
Commands
data
Multicast packet debugging information
mrt
Multicast routing table debugging information
timer
Multicast timer debugging information
terminal monitor
debug ip nat
Purpose
Command Modes
Syntax
Use this command to enable the NAT protocol debug function. Disable the function with the no command.
Privileged EXEC
debug ip nat
no debug ip nat
Related
Commands
terminal monitor
debug ip ospf adj
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the OSPF adjacent event debugging information. Close the switch with the no
command.
Privileged EXEC
debug ip ospf adj
no debug ip ospf adj
Instructions
Neighbor events include neighbor event and state transition, hello
packet receiving, processing and sending, link state request packet
receiving, processing and sending.
Confidential and Proprietary Information of ZTE CORPORATION
71
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug ip ospf all
Purpose
Command Modes
Syntax
Use this command to open all OSPF debug switches. Close the
switch with the no command.
Privileged EXEC
debug ip ospf all
no debug ip ospf all
Related
Commands
terminal monitor
debug ip ospf cspf
Purpose
Command Modes
Syntax
Use this command to debug the shortest path calculation of limitbased OSPF. Close the debug with the no command.
Privileged EXEC
debug ip ospf cspf
no debug ip ospf cspf
Instructions
Related
Commands
It mainly used to debug traffic engineering path calculation.
terminal monitor
debug ip ospf database-timer
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging
information of OSPF link state database timer events. Close the
switch with the no command.
Privileged EXEC
debug ip ospf database-timer
no debug ip ospf database-timer
72
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug ip ospf events
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging
information of important events of the OSPF. Close the switch with
the no command.
Privileged EXEC
debug ip ospf events
no debug ip ospf events
Instructions
Related
Commands
The important events include: selection of the DR and BDR, receiving, processing and sending of the link status database description
packet, and the transfer of the OSPF interface status.
terminal monitor
debug ip ospf flood
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging
information of the OSPF flood events. Close the switch with the
no command.
Privileged EXEC
debug ip ospf flood
no debug ip ospf flood
Instructions
Related
Commands
Flood events include flood event processing and OSPF response
packet processing, and receiving, processing and sending of the
OSPF update packets.
terminal monitor
debug ip ospf lsa-generation
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging information of the OSPF generating link state announcement
event. Close the switch with the no command.
Privileged EXEC
debug ip ospf lsa-generation
no debug ip ospf lsa-generation
Instructions
The generating link state announcement events include route link
state announcement, network link state announcement, network
summary link state announcement, autonomous boundary router
Confidential and Proprietary Information of ZTE CORPORATION
73
ZXR10 Command Manual (Basic Configuration Volume III)
state announcement generation, link state announcement addition, deletion and refreshment.
Related
Commands
terminal monitor
debug ip ospf packet
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging
information of the OSPF receiving/transmitting packets, to monitor
the transmitting/receiving of all OSPF packets. Close the switch
with the no command.
Privileged EXEC
debug ip ospf packet
no debug ip ospf packet
Related
Commands
terminal monitor
debug ip ospf retransmission
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging information of OSPF retransmission queue events. Close the
switch with the nocommand.
Privileged EXEC
debug ip ospf retransmission
no debug ip ospf retransmission
Related
Commands
terminal monitor
debug ip ospf spf
Purpose
Command Modes
Syntax
Use this command to open the switch for returning the debugging
information of the OSPF route computing events. Close the switch
with the no command.
Privileged EXEC
debug ip ospf spf [external | inter | intra]
no debug ip ospf spf [external | inter | intra]
Syntax
Description
74
external
Key words
inter
Key words
intra
Key words
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Instructions
Related
Commands
The route calculation events include intra-area route computing
with the dijkstra algorithm, the computing and adding of inter-area
routes and the adding of the external routes of AS. If a parameter
is set, the switch for one option in the route computing events
is turned. Otherwise, the switches for the three options are all
turned on.
terminal monitor
debug ip pimdm
Purpose
Command Modes
Syntax
Use this command to open the PIM-DM debug switches. Close the
switch with the no command.
Privileged EXEC
debug ip pimdm [assert | data | mrt | packet-send | packe
t-recv | timer | warning]
no debug ip pimdm [assert | data | mrt | packet-send | pack
et-recv | timer | warning]
Syntax
Description
Related
Commands
assert
Debug information of the Pim-dm about
ASSERT
data
Debug information of the Pim-dm received
messages
packet-recv
Debug information of the Pim-dm received
protocol messages
packet-send
Debug information of the Pim-dm sent
protocol messages
mrt
Debug information of the Pim-dm multicast
routing table
warning
Pim-dm alarm debugging information
timer
Pim-dm debugging information related to
timer
terminal monitor
debug ip pimsm
Purpose
Command Modes
Syntax
Use this command to open the PIM-SM debug switches. Close the
switch with the no command.
Privileged EXEC
debug ip pimsm [message-recv | message-send | packet-r
ecv | packet-send | mrt | bsr-rp | assert | warning | msdp]
Confidential and Proprietary Information of ZTE CORPORATION
75
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]
Syntax
Description
Related
Commands
message-recv
Debug information of the Pim-sm received
messages
message-send
Debug information of the Pim-sm sent
messages
packet-recv
Debug information of the Pim-sm received
protocol messages
packet-send
Debug information of the Pim-sm sent
protocol messages
mrt
Debug information of the Pim-sm multicast
routing table
bsr-rp
Pim-sm debugging information related with
BSR and RP
assert
Pim-sm debugging information related with
ASSERRT
warning
Pim-sm alarm debugging information
msdp
Pim-sm debugging information related to
MSDP
terminal monitor
debug ip pim-snooping
Purpose
Command Modes
Syntax
Use this command to enable the debug switch of PIM Snooping.
Disable this switch with the no command.
Privileged EXEC
debug ip igmp-snooping
no debug ip igmp-snooping
Related
Commands
terminal monitor
debug ip protocol
Purpose
Command Modes
Syntax
76
Use this command to open debug function of the IP protocol with
the specified upper layer protocol number to display debugging
information processed by the IP. Disable the function with the no
command.
Privileged EXEC
debug ip protocol <protocol-number>
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
no debug ip protocol <protocol-number>
Syntax
Description
Related
Commands
<protocol-number>
Protocol number
terminal monitor
debug ip rip
Purpose
Command Modes
Syntax
Use this command to trace basic packet receiving and sending of
RIP. Cancel the tracing with the no command.
Privileged EXEC
debug ip rip
no debug ip rip
Related
Commands
terminal monitor
debug ip rip all
Purpose
Command Modes
Syntax
Use this command to open all RIP debug switches. Close the switch
with the no command.
Privileged EXEC
debug ip rip all
no debug ip rip all
Related
Commands
terminal monitor
debug ip rip database
Purpose
Command Modes
Syntax
Use this command to trace RIP routing table changes. Cancel the
tracing with the no command.
Privileged EXEC
debug ip rip database
no debug ip rip database
Confidential and Proprietary Information of ZTE CORPORATION
77
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug ip rip events
Purpose
Command Modes
Syntax
Use this command to trace the RIP related events, such as the
interface status. Cancel the tracing with the no command.
Privileged EXEC
debug ip rip events
no debug ip rip events
Related
Commands
terminal monitor
debug ip rip trigger
Purpose
Command Modes
Syntax
Use this command to trace the RIP trigger events, such as timer
timeout. Cancel the tracing with the no command.
Privileged EXEC
debug ip rip trigger
no debug ip rip trigger
Related
Commands
terminal monitor
debug ip rsvp
Purpose
Command Modes
Syntax
Use this command to enable or disable the RSVP debugging message.
Privileged EXEC
debug ip rsvp {all | hello | message | path | pathErr | pathT
ear | 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 }
Syntax
Description
78
all
All debugging information of Rsvp
hello
Debugging information of Rsvp hello event
message
Debugging information of the Rsvp
receiving/sending messages
path
Debugging information of Rsvp path message
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Defaults
Related
Commands
pathErr
Debugging information of Rsvp pathErr
message
pathTear
Debugging information of Rsvp pathTear
message
resv
Debugging information of Rsvp resv message
resvErr
Debugging information of Rsvp resvErr
message
resvTear
Debugging information of Rsvp resvTear
message
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
If this area is configured, it is not opened by default.
show debug
no debug all
debug ip source
Purpose
Command Modes
Syntax
Use this command to enable debug function of the specified
source address IP protocol to display the debugging information
processed by the IP protocol, and display whether the router
is sending/receiving the specified source address IP message.
Disable the function with the no command.
Privileged EXEC
debug ip source <ip-address>
no debug ip source <ip-address>
Syntax
Description
Related
Commands
<ip-address>
Source IP address in the dotted decimal
notation
terminal monitor
debug ip tcp all
Purpose
Use this command to open all TCP debug switches.
switch with the no command.
Close the
Confidential and Proprietary Information of ZTE CORPORATION
79
ZXR10 Command Manual (Basic Configuration Volume III)
Command Modes
Syntax
Privileged EXEC
debug ip tcp all
no debug ip tcp all
Related
Commands
terminal monitor
debug ip tcp driver
Purpose
Command Modes
Syntax
Use this command to set the debug switches for establishing and
closing the TCP connections. When the switches are opened, the
related information will be output, including TCP proactive opening, passive opening, TCP link establishment timer, TCP normal
closing and abnormal closing information. When the no command
is used to close the switches, no information will be output. When
user logins ZXR10 series, TCP events of BGP and FTP (not including telnet) will be shown.
Privileged EXEC
debug ip tcp packet
no debug ip tcp packet
Related
Commands
terminal monitor
debug ip tcp driver-pak
Purpose
Command Modes
Syntax
Use this command to set the debug switches for TCP buffer management information. No information is output once the switch is
closed with the no command.
Privileged EXEC
debug ip tcp driver-pak
no debug ip tcp driver-pak
Instructions
80
�
Output the following information once the switch is opened:
output packet to a queue, the size of the sent or received
packet, the information of a packet being deleted due to the
number of packets received out of sequence exceeding the
max. Number allowed (25 by default) will be output.
�
The information will be displayed when the user logs into
ZXR10. The information includes TCP supplementary information of BGP, and TCP supplementary information of FTP (not
include telnet).
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug ip tcp packet
Purpose
Command Modes
Syntax
Use this command to set the debug switches for the source and
destination information of the TCP sent/received packets. No information is output once the switch is closed with the no command.
Privileged EXEC
debug ip tcp packet
no debug ip tcp packet
Instructions
Related
Commands
�
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, the
size of receiving window and control bit information etc. will
be output.
�
The information will be displayed when the user logs into
ZXR10. The information includes TCP sending/receiving of
BGP, and TCP sending/receiving of FTP (not include TELNET).
terminal monitor
debug ip tcp transactions
Purpose
Command Modes
Syntax
Use this command to set the debug switches for TCP state transition information. No information is output once the switch is closed
with the no command.
Privileged EXEC
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 MSS
advertisement of TCP connection established, the time resetting of retransmission timer, retransmission timeout, limited
state-machine transition and releasing of TCP control block information will be output.
�
The information will be displayed when the user logs into
ZXR10. The information includes TCP special information of
BGP, and TCP special information of FTP (not include telnet).
Confidential and Proprietary Information of ZTE CORPORATION
81
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug ip udp
Purpose
Command Modes
Syntax
Use this command to set the debug switches for the source and
destination information of the UDP sent/received packets. No information is output once the switch is closed with the no command.
Privileged EXEC
debug ip udp
no debug ip udp
Instructions
Related
Commands
�
After a switch is opened, and when the UDP receives and
sends a packet, source/destination addresses and port and
UDP packet length information are displayed.
�
The information will be displayed when the user logs into
ZXR10.
terminal monitor
debug ipv6 icmp
Purpose
Command Modes
Syntax
Use this command to display debugging information of the IPv6
Internet Control Message Protocol (ICMP) message (exclusive of
ICMP neighbor discovery protocol message). Disable the function
with the no command.
Privileged EXEC
debug ipv6 icmp
no debug ipv6 icmp
Defaults
Instructions
Example
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
The debug ipv6 icmp command is similar to the debug ip
icmp command, while it is only for the IPv6 protocol. This
command is used to determine whether IPv6 ICMP message is
received or sent.
When use debug ipv6 icmp, the following output is shown.
ZXR10#debug ipv6 icmp
IPv6 ICMP6 debugging is on
00:59:06 ICMPv6: Received ICMP6 Packet from 5ffe::1,
type 135
00: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
Chapter 11 Debugging
00:59:06
The time when the ICMP event occurs.
ICMPv6:
This debug content is ICMP information of
IPv6
Received ICMP6
Packet from 5ffe::1
Received IPv6 ICMP message address
Type 135
Values of the type field in IPv6 ICMP header
are as follows:
1: Destination is unreachable. The router
cannot forward the received packet
2: Packet is too large. The length of packet to
be sent by the router exceeds the Maximum
Transmission Unit (MTU) of the link between
the router and destination address.
3: timeout. Hop limit is reached during
transmission or fragment & reassembly times
out.
4: Parameter error. The router attempts to
send a packet with illegal parameter.
128: response request
129: answer
133: router request. The host sends the
message to request the router on a link to
send a route announcement message
134: route announcement
135: neighbor request message. The node
sends this message to obtain the link layer
address of other nodes on the same link.
136: neighbor announcement message. The
node sends the message, including its own
link layer address as the response of neighbor
request message
137: redistribution message
debug ipv6 nd
Purpose
Command Modes
Syntax
Use this command to display the neighbor discovery protocol
packet contents of the IPv6 ICMP packet. Disable the function
with the no command.
Privileged EXEC
debug ipv6 nd[interface <interface-name>]
no debug ipv nd
Syntax
Description
Defaults
Instructions
<interface-name>
The name of the interface.
If this area is configured, it is disable by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
Confidential and Proprietary Information of ZTE CORPORATION
83
ZXR10 Command Manual (Basic Configuration Volume III)
�
Example
This command helps the user understand interactive condition
of the IPv6 ICMP neighbor discovery packet.
This example describes how to display the output of debug ipv6
nd.
02:09:31 ICMPv6-ND: STALE -> DELAY: 5ffe::1
02:09:36 ICMPv6-ND: Received NS on fei_3/1 for 5ffe::3
02:09:36 ICMPv6-ND: Sending NA on fei_3/1 for 5ffe::3
02:09:36 ICMPv6-ND: DELAY -> PROB: 5ffe::1
02:09:36 ICMPv6-ND: Sending NS on fei_3/1 for 5ffe::1
02:09:36 ICMPv6-ND: Received NA on fei_3/1 for 5ffe::1
02:09:36 ICMPv6-ND: PROB -> REACH: 5ffe::1
02:09:50 ICMPv6-ND: REACH -> STALE: 5ffe::1
02:10:52 IPV6: fei_3/1: starting DAD for 5ffe::0001
02:10:52 ICMPv6-ND: Sending NS on fei_3/1 for 5ffe::1
02:10:52 ICMPv6-ND: Received NA on fei_3/1 for 5ffe::1
02:10:52 ICMPv6-ND: DAD:5ffe::1 is duplica
02:10:52 IPV6: fei_3/1: DAD complete for 5ffe::0001 duplicate found
02:10:52 IPV6: fei_3/1: manual intervention required(remove
duplicate 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=1000
02:12:20 ICMPv6-ND: MTU = 1500
02:12:20 ICMPv6-ND: prefix = 5ffe::/64 onlink autoconfig
02: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 discovery
protocol incurs
ICMPV6-ND
The event is IPV6 ICMP neighbor discovery
protocol
STALE-> DELAY
State change of neighbor cache item,
including DELAY -> PROB, PROB -> REACH
and REACH -> STALE
Received NS on XXX
for X::X
Neighbor request message of an address
received on an interface
Sending NA on XXX
for X::X
Neighbor request announcement of an
address sent from an interface
starting DAD for
5ffe::0001
Start DAD for an address
DAD:5ffe::1 is
duplicate
Find that the local interface address is a
duplicate one, and one node on the local link
has adopted this address
DAD complete for
5ffe::0001 - duplicate
found
84
Manual intervention
required(remove
duplicate address)
It is required that the administrator deletes
the duplicate address manually
Sending RA on fei_3/1
Send a router announcement message on an
interface
M={0|1}
M tag value in the router announcement
Confidential and Proprietary Information of ZTE CORPORATION
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 router
announcement
MTU = 1500
Interface MTU value in the router
announcement
prefix = 5ffe::/64
onlink autoconfig
Prefix and its length
2592000/604800
(valid/preferred)
Online tag: 1 represents onlink, 0 represents
offlink indicating whether the address is
configured automatically: 1 represents
autoconfig and 0 not autoconfig
Valid/Recommended life time of the prefix
Related
Commands
debug ipv6 icmp
show nd6 cache
debug ipv6 ospf adj
Purpose
Command Modes
Syntax
Use this command to trace adjacency of the OSPFv3 protocol. Disable the debugging information with the no command.
Privileged EXEC
debug ipv6 ospf adj
no debug ipv6 ospf adj
Defaults
Instructions
Example
If this area is configured, it is invalid by default.
Trace adjacency with this command to facilitate troubleshooting.
This example describes how to open the adjacency switch.
ZXR10#debug ipv6 ospf adj
Related
Commands
terminal monitor
debug ipv6 ospf events
Purpose
Command Modes
Syntax
Use this command to trace event run over the OSPFv3 protocol.
Disable the debugging information with the no command.
Privileged EXEC
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
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Defaults
Instructions
Example
[abr | asbr | os |
router | vlink]
Detailed content of the traced event, which
may be border router, area border router and
virtual link
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
Trace event with this command to facilitate troubleshooting.
This example describes how to open all event switches.
ZXR10#debug ipv6 ospf events
Related
Commands
terminal monitor
debug ipv6 ospf ifsm
Purpose
Command Modes
Syntax
Use this command to trace interface run over the OSPFv3 protocol.
Disable the debugging information with the no command.
Privileged EXEC
debug ipv6 ospf ifsm [events | status | timers]
no debug ipv6 ospf ifsm [events | status | timers]
Syntax
Description
Defaults
Instructions
Example
[events | status |
timers]
Specific condition of the traced interface,
corresponding to interface event, interface
state and interface timer
If this area is configured, it is invalid by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
You can implement interface trace with this command to facilitate troubleshooting.
This example describes how to open all interface switches.
ZXR10#debug ipv6 ospf ifsm
Related
Commands
terminal monitor
debug ipv6 ospf lsa
Purpose
Command Modes
Syntax
86
Use this command to trace LSA run over the OSPFv3 protocol.
Disable the debugging information with the no command.
Privileged EXEC
debug ipv6 ospf lsa [generate | flooding | install | maxage
| refresh]
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
no debug ipv6 ospf lsa [generate | flooding | install |
maxage | refresh]
Syntax
Description
Defaults
Instructions
Example
[generate | flooding
| install | maxage |
refresh]
Specific condition of the traced LSA,
corresponding to generation, flood,
installation information and refreshment of
LSA
If this area is configured, it is invalid by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
Trace LSA condition with this command to facilitate troubleshooting.
This example describes how to open all LSA switches.
ZXR10#debug ipv6 ospf lsa
Related
Commands
terminal monitor
debug ipv6 ospf
lsa-generation
Purpose
Command Modes
Syntax
Use this command to Trace LSA generation over the OSPFv3 protocol. Disable the debugging information with the no command.
Privileged EXEC
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 to
facilitate troubleshooting.
Example
This example describes how to open the switch of LSA generation.
ZXR10#debug ipv6 ospf lsa-generation
Related
Commands
terminal monitor
debug ipv6 ospf nfsm
Purpose
Command Modes
Syntax
Use this command to trace adjacency run over the OSPFv3 protocol. Disable the debugging information with no.
Privileged
debug ipv6 ospf nfsm [events | status | timers]
no debug ipv6 ospf nfsm [events | status | timers]
Confidential and Proprietary Information of ZTE CORPORATION
87
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Defaults
Instructions
Example
[events | status |
timers]
Specific condition of traced adjacency
corresponding to adjacency event, state and
timer
If this area is configured, it is invalid by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
Trace adjacency with this command to facilitate troubleshooting.
This example describes how to open all adjacency switches.
ZXR10#debug ipv6 ospf nfsm
Related
Commands
terminal monitor
debug ipv6 ospf packet
Purpose
Command Modes
Syntax
Use this command to trace packet receiving/sending run over the
OSPFv3 protocol. Disable the debugging information with the no
command.
Privileged EXEC
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]
Syntax
Description
Defaults
Instructions
Example
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. The
detail parameter is used work with the
opened specific packet to display detailed
content of the packet.
If this area is configured, it is invalid by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
You canimplement packet receiving/sending condition trace
with this command to facilitate troubleshooting.
This example describes how to open all packet receiving/sending
switches.
ZXR10#debug ipv6 ospf packet
88
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug ipv6 ospf route
Purpose
Command Modes
Syntax
Use this command to trace route run over the OSPFv3 protocol.
Disable the debugging information with the no command.
Privileged EXEC
debug ipv6 ospf route [ase | ia | install | spf]
no debug ipv6 ospf route [ase | ia | install | spf]
Syntax
Description
Defaults
Instructions
Example
ase | ia | install | spf
Specific condition of the traced route,
corresponding to route load, calculation, route
outside a region, and router inside a region
If this area is configured, it is invalid by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
You can implement route condition trace with this command to
facilitate troubleshooting.
This example describes how to open all route switches.
ZXR10#debug ipv6 ospf route
Related
Commands
terminal monitor
debug ipv6 packet
Purpose
Command Modes
Syntax
Use this command to display the information of IPV6 packet received and sent by the system. Disable the function with the no
command.
Privileged EXEC
debug ipv6 packet [interface<interface-name>][protocol<pr
otocol>][detail]
no debug ipv6 packet
Syntax
Description
Defaults
detail
Displays packet information as detailed as
possible
<interface-name>
The name of the interface
<protocol>
The name of the protocol
If this area is configured, it is disabled by default.
Confidential and Proprietary Information of ZTE CORPORATION
89
ZXR10 Command Manual (Basic Configuration Volume III)
Instructions
Example
�
The platform version 4.6.02 and upgrade versions support this
command.
�
When the parameter detail and <protocol> are used together,
the protocol type has to be ICMP protocol.
This example describes how to display the output of debug ipv6
packet.
Zxros#debug ipv6 packet detail
00:33:19 IPv6:rcvd on:fei_3/1
00:33:19
source: 5ffe::1
00:33:19
dest: 5ffe::3
00:33:19
flow label:0,payload lenth:32,hops:255,
nexhead:58
00:33:19
NextHead is ICMPv6 head:
00:33:19
type:135 ,code:0 ,chksum:31377
00:33:19 IPv6:sent on:fei_3/1
00:33:19
source: 5ffe::3
00:33:19
dest: 5ffe::1
00:33:19
flow label:0,payload lenth:24,hops:255,
nexhead:58
00:33:19
NextHead is ICMPv6 head:
00:33:19
type:136 ,code:0 ,chksum:38826
The displayed field descriptions are shown below.
Related
Commands
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 ,payload
lenth:32 ,hops:255
,nexhead:58
Traffic label, payload length, hop limit and
next header field value in the IPV6 header
NextHead is ICMPv6
head:
In detail mode, it is possible to further analyze
next head, for example, next header in this
example is ICMP header.
type:135 ,code:0
,chksum:31377
Information in next header, corresponding to
different next header, whose content may be
different. For the ICMP header, ICMP header
type, code and checksum field are displayed
debug ipv6 icmp
debug ipv6 nd
debug ipv6 rip
Purpose
90
Use this command to trace and view running condition of theRIPng
protocol. Disable the debugging information with the no command.
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Command Modes
Syntax
Privileged EXEC
debug ipv6 rip events | packet (recv | send | detail)
no debug ipv6 rip events| packet (recv | send | detail)
Syntax
Description
Defaults
Instructions
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 works
with recv and send
If this area is configured, it is invalid by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
You can implement running condition trace of the RIPng protocol with this command.
debug ipv6 tcp all
Purpose
Command Modes
Syntax
Use this command to open all TCP6 debugging switches. Close the
switch with the no command.
Privileged EXEC
debug ipv6 tcp all
no debug ipv6 tcp all
Defaults
Instructions
Related
Commands
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
The command debug ipv6 tcp all is similar to the command
debug ip tcp all, while it is only for the IPv6 protocol. This
command helps the user determine TCP6 packet receiving and
state change information. Open the DEBUG command switch
to display DEBUG information of all TCPs.
debug ipv6 tcp packet
debug ipv6 tcp driver
debug ipv6 tcp transactions
debug ipv6 tcp driver
Purpose
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
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 will
be output. Close the switch with the no command.
Command Modes
Syntax
Privileged EXEC
debug ipv6 tcp driver
no debug ipv6 tcp driver
Defaults
Instructions
Related
Commands
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
The debug ipv6 tcp driver command is similar to the debug
ip tcp driver command, while it is only for the IPv6 protocol.
This command helps the user determine IPv6 TCP connection
active-open/passive-open, normal close and abnormal close.
debug ipv6 tcp all
debug ipv6 tcp packet
Purpose
Command Modes
Syntax
Use this command to display the information of TCP6 packet received and sent by the system. In the privileged mode, view
packet information received and sent by the system with this command. No information is output once the switch is closed with the
no command.
Privileged EXEC
debug ipv6 tcp packet
no debug ipv6 tcp packet
Defaults
Instructions
Related
Commands
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
This command helps the user understand the TCP packet receiving and sending interactive condition.
debug ipv6 tcp all
debug ipv6 tcp transactions
Purpose
Command Modes
Syntax
92
Use this command to set the debugging switches for TCP6 state
transition information. When the switches are opened, the TCP
special event information will be output, including TCP connection
destination address, port, reconfigured resend timer time, resend
upon timeout, finite state machine transition, and released TCP
control block. When the no command is used to close the switches,
no information will be output.
Privileged
debug ipv6 tcp transactions
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
no debug ipv6 tcp transactions
Defaults
Instructions
Related
Commands
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
The debug ipv6 tcp transactions command is similar to the
debug ip tcp transactions command, while it is only for the
IPv6 protocol. This command helps the user determine TCP6
state change information.
debug ipv6 tcp all
debug ipv6 udp
Purpose
Command Modes
Syntax
Use this command to open the IPv6 UDP debugging switch. Close
the switch with the no command.
Privileged EXEC
debug ipv6 udp
no debug ipv6 udp
Defaults
Instructions
Example
If this area is configured, it is disabled by default.
�
The platform version 4.6.02 and upgrade versions support this
command.
�
The debug ipv6 udp command is similar to the debug ip udp
command, while it is only for the IPV6 protocol. The command
helps the user view condition of IPV6 UDP packet received and
sent by the system.
This example describes how to display output with the debug ipv6
udp command.
ZXR10#debug ipv6 udp
IPV6 UDP packet debugging is on
13:33:39 IPV6 UDP: sending src=3ffe::1(4915),
dst=3ffe::2(39810), len=208
13: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
sending
src=3ffe::1(4915)
dst=3ffe::2(39810),
len=208
Sends a UDP packet with the source address
of 3ffe::1, source port of 4915, destination
address of 3ffe::2 and destination port of
39810
rcv
src=3ffe::2(39810),
dst=3ffe::1 (4915),
len=208
Receives a UDP packet with the source
address of 3ffe::2, source port of 39810,
destination address of 3ffe::1 and destination
port of 4915
Confidential and Proprietary Information of ZTE CORPORATION
93
ZXR10 Command Manual (Basic Configuration Volume III)
debug isis
Purpose
Command Modes
Syntax
Syntax
Description
Use this command to trace and display IS-IS running state.
Privileged EXEC
debug isis {adj-packets | snp-packets | spf-events | updat
e-packets| all}
adj-packets
Tracks and shows the received and
transmitted IS-IS Hello packets
snp-packets
Tracks and shows the received and
transmitted IS-IS SNP packets and relevant
processing events
spf-events
Tracks and shows the debugging information
of the IS-IS route calculation event
update-packets
Tracks and shows the debugging information
of the IS-IS LSP processing event
all
Tracks and shows all the information of IS-IS
debug isis adj-packets
Purpose
Command Modes
Syntax
Use this command to trace and show the IS-IS received/sent Hello
messages. Close the tracing with the no command.
Privileged EXEC
debug isis adj-packets
no debug isis adj-packets
Related
Commands
terminal monitor
debug isis all
Purpose
Command Modes
Syntax
Use this command to open all IS-IS related debug switches. Close
the tracing with the no command.
Privileged EXEC
debug isis all
no debug isis all
94
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug isis snp-packets
Purpose
Command Modes
Syntax
Use this command to trace and show the IS-IS received/sent SNP
messages and related handling events. Close the tracing with the
no command.
Privileged EXEC
debug isis snp-packets
no debug isis snp-packets
Related
Commands
terminal monitor
debug isis spf-events
Purpose
Command Modes
Syntax
Use this command to trace and show the IS-IS route computing
event debug information. Close the tracing with the no command.
Privileged EXEC
debug isis spf-events
no debug isis spf-events
Related
Commands
terminal monitor
debug isis update-packets
Purpose
Command Modes
Syntax
Use this command to trace and show the IS-IS LSP packet handling
event debug information. Close the tracing with the no command.
Privileged EXEC
debug isis update-packets
no debug isis update-packets
Related
Commands
terminal monitor
debug lacp all
Purpose
Command Modes
Use this command to open all LACP debugging switches. Close all
LACP debugging switches with the no command.
Privileged EXEC
Confidential and Proprietary Information of ZTE CORPORATION
95
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
debug lacp all
no debug lacp all
Related
Commands
terminal monitor
debug lacp fsm
Purpose
Command Modes
Syntax
Use this command to open the switch of LACP state machine debugging. Close the debugging switch with the no command.
Privileged EXEC
debug lacp all fsm [interface <port-number>]
no debug lacp all fsm [interface <port-number>]
Syntax
Description
Related
Commands
<port-number>
Port number
terminal monitor
debug lacp packet
Purpose
Command Modes
Syntax
Use this command to open the LACP receiving/sending packet debugging switch. Close the debugging switch with the no command.
Privileged EXEC
debug lacp packet [interface <port-number>]
no debug lacp packet [interface <port-number>]
Syntax
Description
Related
Commands
<port-number>
Port number
terminal monitor
debug mac-ping
Purpose
Command Modes
Syntax
Use this command to enable MAC PING debugging and display MAC
ping information. Disable it with the no command.
Privileged EXEC
debug mac-ping { bytes | error | packet }
no debug mac-ping { bytes | error | packet }
96
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Syntax
Description
Related
Commands
bytes
Outputs MAC PING packet(by hexadecimal)
error
Outputs MAC PING error packet
packet
Outputs MAC PING packet
terminal monitor
debug modem
Purpose
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
Related
Commands
It is applied to ZXR10 GAR, ZXR10 ZSR at present.
terminal monitor
debug mpls ldp
advertisements
Purpose
Command Modes
Syntax
Use this command to monitor the addresses and labels advertised
to the LDP neighbors. Cancel the monitoring with the no command.
Privileged EXEC
debug mpls ldp advertisements
no debug mpls ldp advertisements
Example
This example describes how to monitor the addresses and labels
advertised to the LDP neighbors.
ZXR10#debug mpls ldp advertisements
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
tagcon: peer 144.0.0.44:0: advertise
……
130.77.0.33
133.0.0.33
34.0.0.33
103.0.0.33
35.0.0.33
38.0.0.33
34.0.0.0/8, label 3
203.0.7.7/32, label 24
35.0.0.0/8, label 3
The displayed field descriptions are shown below.
Confidential and Proprietary Information of ZTE CORPORATION
97
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
Field
Description
tagcon
Indicates the debugging information is from
the label control subsystem
Peer a.b.c.d:e
Opposite LDP ID
advertise
Announced label and address
terminal monitor
debug mpls ldp all
Purpose
Command Modes
Syntax
Use this command to open all LDP related debug switches. Close
the switch with the no command.
Privileged EXEC
debug mpls ldp all
no debug mpls ldp all
Related
Commands
terminal monitor
debug mpls ldp bindings
Purpose
Command Modes
Syntax
Use this command to monitor the addresses and labels advertised
to the LDP neighbors. Cancel the monitoring with the no command.
Privileged EXEC
debug mpls ldp bindings
no debug mpls ldp bindings
Example
This example describes how to monitor the addresses and labels
advertised to the LDP neighbors.
ZXR10#debug mpls ldp bindings
tagcon:tibent(34.0.0.0/8):created; find route tags request
tagcon:tibent(34.0.0.0/8):label 3 assigned
tagcon:tibent(203.0.7.7/32):created; find route tags request
tagcon:tibent(203.0.7.7/32):label 24 assigned
tagcon:tibent(144.0.0.44/32):created; find route tags request
tagcon:tibent(144.0.0.44/32):label 33 assigned
tagcon:Assign peer id; 144.0.0.44:0:id 0
tagcon:144.0.0.44:0:144.0.0.44 added to addr<->ldp ident map
tagcon:144.0.0.44:0:34.0.0.44 added to addr<->ldp ident map
tagcon:144.0.0.44:0:45.0.0.44 added to addr<->ldp ident map
tagcon:tibent(144.0.0.44/32):rem label 3 from 144.0.0.44:0
added
tagcon:tibent(34.0.0.0/8):label 3 from 144.0.0.44:0 added
tagcon:tibent(45.0.0.0/8):label 3 from 144.0.0.44:0 added
tagcon:tibent(107.0.0.0/8):created; remote label learned
tagcon: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
Chapter 11 Debugging
Related
Commands
Field
Description
tagcon
Indicates the debugging information is from
the 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
terminal monitor
debug mpls ldp l2vpn
Purpose
Command Modes
Syntax
Use this command to monitor L2VPN activities. Cancel the monitoring with the no command.
Privileged EXEC
debug mpls ldp l2vpn {event | fsm}
no debug mpls ldp l2vpn {event | fsm}
Syntax
Description
Instructions
Example
event
Monitors the details of the messages
received/sent in the L2VPN
fsm
Monitors the internal/external events received
by the L2VPN state machine
�
The platform version 4.6.02 and upgrade versions support this
command.
�
Debugging information of the L2VPN, including VPWS and
VPLS, which both have the debug command.
�
This example shows the message when vpws is established.
ZXR10# debug mpls ldp vpwsent
l2vpn: Sending label mapping msg
vc 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 vpwsent
l2vpn: Sending label Withdraw msg
vc type 4, vc id 888, group id 0, vc label 418,
state 0x8000000
l2vpn: Received label Release msg vc id 888, group id 0,
vc label 418
l2vpn: receive release msg cann’t find xcon
�
This example shows state machine event when vpws is established.
ZXR10# debug mpls ldp vpwsfsm
l2vpn vpws: L2VPN_Negotiate is OK!
�
This example shows state machine event when vpws is deleted.
Confidential and Proprietary Information of ZTE CORPORATION
99
ZXR10 Command Manual (Basic Configuration Volume III)
ZXR10# debug mpls ldp vpwsfsm
ldp: release label is 16
l2vpn: L2VpwsSentToforwardwith !Local_label:16,
Remote_label:16,
Vpnid:1,vcid:201,tunnelid:0
debug mpls ldp messages
Purpose
Command Modes
Syntax
Use this command to monitor the messages sent to or received
from the LDP neighbors. Cancel the monitoring with the no command.
Privileged EXEC
debug mpls ldp messages {received | sent}
no debug mpls ldp advertisement {received | sent}
Syntax
Description
Example
received
Monitors the messages received from the LDP
neighbors.
sent
Monitors the messages sent to the LDP
neighbors.
This example describes how to monitor the messages sent to or
received from the LDP neighbors, including the periodic Keep Alive
messages.
ZXR10#debug mpls ldp messages received
ZXR10#debug mpls ldp messages sent
ldp: Rcvd init msg from 144.0.0.44
ldp: Sent init msg to 144.0.0.44:0
ldp: Sent keepalive msg to 144.0.0.44:0
ldp: Rcvd keepalive msg from 144.0.0.44:0
ldp: Sent address msg to 144.0.0.44:0
ldp: Sent label mapping msg to 144.0.0.44:0
ldp: Rcvd address msg from 144.0.0.44:0
ldp: Rcvd label mapping msg from 144.0.0.44:0
ldp: Rcvd label mapping msg from 144.0.0.44:0
ldp: Rcvd label mapping msg from 144.0.0.44:0
……
The displayed field descriptions are shown below.
100
Field
Description
Ldp
Indicates the debugging information is from
the LDP module
Rcvd xxx msg Sent
xxx msg
Message type
from a.b.c.d
Messages received from a router, used in
the initial phase of the session establishment
when the LDP ID is unknown
From a.b.c.d:e to
a.b.c.d:e
Specifies the destination/source LDP ID
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug mpls ldp session
Purpose
Command Modes
Syntax
Use this command to monitor the LDP session activities. Cancel
the monitoring with the no command.
Privileged EXEC
debug mpls ldp session {io | state-machine}
no debug mpls ldp session {io | state-machine}
Syntax
Description
Example
io
Monitors the details of the messages
sent/received in the session
state-machine
Monitors the internal/external events received
by the state machine
�
This example describes how to monitor the details of the messages sent/received in the session.
ZXR10#debug mpls ldp session io
ldp: Sent init msg to 204.1.1.200:0
baseMsg : uBit = 0; msgType = 200; msgLength = 0; msgId = 0
CSP: uBit = 0; fBit = 0; type = 500; length = 14
Ver = 1; time = 60; PduLen = 4096; Lsrid = cc0101c8; LblSp = 0
lad = 0, ld = 0, pvl = 0, res = 0
ldp: Rcvd init msg from 177.1.1.1
baseMsg : uBit = 0; msgType = 200; msgLength = 22; msgId = 2
CSP: uBit = 0; fBit = 0; type = 500; length = 14
Ver = 1; time = 60; PduLen = 4096; Lsrid = cc010164; LblSp = 0
lad = 0, ld = 0, pvl = 0, res = 0
……
�
This example describes how to monitor the internal/external
events received by the state machine.
ZXR10#debug mpls ldp session
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
ldp: ptcl_adj:204.1.1.200:0:
……
state-machine
state 1, event:
state from 1 to
state 6, event:
state from 6 to
state 4, event:
state from 4 to
state 3, event:
state from 3 to
0xe
6, event:
0xafd
4, event:
0x200
3, event:
0x201
5, event:
0xe
0xafd
0x200
0x201
The displayed field descriptions are shown below.
Field
Description
Ldp
Indicates the debugging information is from
the 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 state
table)
Confidential and Proprietary Information of ZTE CORPORATION
101
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 TCP
connection
Session state machine event table is show below.
102
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 message
received
0x0200
External event, initialization message
received
0x0201
External event, keepAlive message received
0x0300
External event, address message received
0x0301
External event, address canceling message
received
0x0400
External event, label mapping message
received
0x0401
External event, label request message
received
0x0402
External event, label canceling message
received
0x0403
External event, label release message
received
0x0404
External event, label request termination
message received
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug mpls ldp transport
Purpose
Command Modes
Syntax
Use this command to monitor the messages found by LDP. Cancel
the monitoring with the no command.
Privileged EXEC
debug mpls ldp transport {connections|events}
no debug mpls ldp transport {connections|events}
Syntax
Description
Example
connections
Monitors and creates TCP-related events
events
Creates and finds mechanism-related events,
including hello messages receiving/sending
�
This example describes how to create and find mechanismrelated events.
ZXR10#debug mpls ldp transport events
ldp: Send ldp hello; fei_1/1, scr/dst 204.1.1.100(0.0.0.0)/
224.0.0.2, intf_id 33
ldp: Send ldp hello; fei_1/2, scr/dst 196.1.1.100(0.0.0.0)/
224.0.0.2, intf_id 65
ldp: Rcvd ldp hello; fei_1/1, from 177.1.1.1(204.1.1.200:0),
intf_id 33
ldp: New adj 0 from 177.1.1.1(204.1.1.200:0), 177.1.1.1
ldp: Opening ldp conn; 204.1.1.100<-->177.1.1.1
ldp: ldp conn is up; 204.1.1.100:1027<-->177.1.1.1:646
ldp: Send ldp hello; fei_1/1, scr/dst 204.1.1.100(0.0.0.0)/
224.0.0.2, intf_id 33
ldp: Send ldp hello; fei_1/2, scr/dst 196.1.1.100(0.0.0.0)/
224.0.0.2, intf_id 65
ldp: 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-related
events.
ZXR10#debug mpls ldp transport connections
ldp: Opening ldp conn; 204.1.1.100<-->177.1.1.1
ldp: ldp conn is up; 204.1.1.100:1028<-->177.1.1.1:646
……
Related
Commands
terminal monitor
debug mstp agreement
Purpose
Command Modes
Use this command to open the MSTP debugging switch for fast
handing off negotiation information. Disable the switch with the
no command.
Privileged EXEC
Confidential and Proprietary Information of ZTE CORPORATION
103
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
debug mstp agreement[interface <interface-name> instance
<instance_number>]
no debug mstp agreement
Syntax
Description
Related
Commands
<interface-name>
Interface name
<instance_number>
Number of instances, in the range of 1~63
terminal monitor
debug mstp all
Purpose
Command Modes
Syntax
Use this command to open all MSTP debugging switches. Close
the switch with the no command.
Privileged EXEC
debug mstp all
no debug mstp all
Related
Commands
terminal monitor
debug mstp bpdu-rx
Purpose
Command Modes
Syntax
Use this command to open the MSTP debugging switch for receiving packet information. Disable the switch with the no command.
Privileged EXEC
debug mstp bpdu-rx [interface <interface-name>]
no debug mstp bpdu-rx
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug mstp bpdu-tx
Purpose
Command Modes
Syntax
Use this command to open the MSTP debugging switch for sending
packet information. Disable the switch with the no command.
Privileged EXEC
debug mstp bpdu-tx [interface <interface-name>]
no debug mstp bpdu-tx
104
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug mstp errors
Purpose
Command Modes
Syntax
Use this command to open MSTP error information debugging
switch. Disable the switch with the no command.
Privileged EXEC
debug mstp errors
no debug mstp errors
Related
Commands
terminal monitor
debug mstp flush
Purpose
Command Modes
Syntax
Use this command to open the MSTP debugging switch for deleting MAC address information. Disable the switch with the no command.
Privileged EXEC
debug mstp flush [interface <interface-name> instance <ins
tance_number>]
no debug mstp flush
Syntax
Description
Related
Commands
<interface-name>
Interface name
<instance_number>
Number of instances, in the range of 1~63
terminal monitor
debug mstp info
Purpose
Command Modes
Syntax
Use this command to open the MSTP info state machine information debugging switch. Disable the switch with the no command.
Privileged EXEC
debug mstp info [interface <interface-name> instance <insta
nce_number>]
no debug mstp info
Confidential and Proprietary Information of ZTE CORPORATION
105
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Related
Commands
<interface-name>
Interface name
<instance_number>
Number of instances, in the range of 1~63
terminal monitor
debug mstp migration
Purpose
Command Modes
Syntax
Use this command to open the MSTP protocol transition state machine information debugging switch. Disable the switch with the
no command.
Privileged EXEC
debug mstp migration [interface <interface-name>]
no debug mstp migration
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug mstp proposals
Purpose
Command Modes
Syntax
Use this command to open the MSTP debugging switch for fast
handing off negotiation request information. Disable the switch
with the no command.
Privileged EXEC
debug mstp proposals [interface <interface-name> instance
<instance_number>]
no debug mstp proposals
Syntax
Description
106
<interface-name>
Interface name
<instance_number>
Number of instances, in the range of 1~63
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug mstp roles
Purpose
Command Modes
Syntax
Use this command to open the MSTP instance calculation state
machine information debugging switch. Disable the switch with
the no command.
Privileged EXEC
debug mstp roles [instance <instance_number>]
no debug mstp roles
Syntax
Description
Related
Commands
<instance_number>
Number of instances, in the range of 1~63
terminal monitor
debug mstp state
Purpose
Command Modes
Syntax
Use this command to open the MSTP port state synchronization information debugging switch. Disable the switch with the no command.
Privileged EXEC
debug mstp state [interface <interface-name>]
no debug mstp state
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug mstp tc
Purpose
Command Modes
Syntax
Use this command to open the MSTP typology change state machine information debugging switch. Disable the switch with the
no command.
Privileged EXEC
debug mstp tc [interface <interface-name> instance <instan
ce_number>]
no debug mstp tc
Confidential and Proprietary Information of ZTE CORPORATION
107
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Related
Commands
<interface-name>
Interface name
<instance_number>
Number of instances, in the range of 0~16
terminal monitor
debug mstp timers
Purpose
Command Modes
Syntax
Use this command to open MSTP timer information debugging
switch. Disable the switch with the no command.
Privileged EXEC
debug mstp timers
no debug mstp timers
Related
Commands
terminal monitor
debug ntp packet
Purpose
Command Modes
Syntax
Use this command to open NTP debug switch and show the information of NTP sending and receiving packet. Close this switch with
the no command.
Privileged EXEC
debug ntp packet
no debug ntp packet
Instructions
Related
Commands
The platform version V4.8.01 and the upgrade version support this
command.
terminal monitor
debug ppp all
Purpose
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
Chapter 11 Debugging
Related
Commands
terminal monitor
debug ppp authentication
Purpose
Command Modes
Syntax
Use this command to open PPP authentication information debugging switch. Disable the switch with the no command.
Privileged EXEC
debug ppp authentication [interface <interface-name>]
no debug ppp authentication [interface <interface-name>]
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug ppp data
Purpose
Command Modes
Syntax
Use this command to open the debug switch for PPP data message
output. Close the switch with the no command.
Privileged EXEC
debug ppp data [interface <interface-name>]
no debug ppp data [interface <interface-name>]
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug ppp error
Purpose
Command Modes
Syntax
Use this command to open the PPP error information debugging
switch. Close the switch with the no command.
Privileged EXEC
debug ppp error [interface <interface-name>]
no debug ppp error [interface <interface-name>]
Syntax
Description
<interface-name>
Interface name
Confidential and Proprietary Information of ZTE CORPORATION
109
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug ppp events
Purpose
Command Modes
Syntax
Use this command to open the PPP event debugging switch. Close
the switch with no.
Privileged
debug ppp events [interface <interface-name>]
no debug ppp events [interface <interface-name>]
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug ppp lcp
Purpose
Command Modes
Syntax
Use this command to open the debugging switch for PPP LCP message resolution output. Close the switch with the no command.
Privileged EXEC
debug ppp lcp [interface <interface-num>]
no debug ppp lcp [interface <interface-num>]
Syntax
Description
Related
Commands
<interface-num>
Interface number
terminal monitor
debug ppp multilink
Purpose
Command Modes
Syntax
Use this command to open the multilink PPP output debugging
switch. Close the switch with the no command.
Privileged EXEC
debug ppp multilink {events | fragments}[interface <interf
ace-name>]
no debug ppp multilink {events | fragments}[interface <int
erface-name>]
110
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Syntax
Description
Instructions
Related
Commands
events
Important event incurred in multilink
negotiation
fragments
Whether packets through multilink are sent
in fragments
<interface-name>
Interface name
It is applied to ZXR10 GAR, ZXR10 ZSR.
terminal monitor
debug ppp ncp
Purpose
Command Modes
Syntax
Use this command to open the debug switch for PPP NCP message
resolution output. Close the switch with the no command.
Privileged EXEC
debug ppp ncp [interface <interface-name>]
no debug ppp ncp [interface <interface-name>]
Syntax
Description
Related
Commands
<interface-name>
Interface name
terminal monitor
debug ppp packet
Purpose
Command Modes
Syntax
Use this command to open the debugging switch for PPP control
message output. Close the switch with the no command.
Privileged EXEC
debug ppp packet [interface <interface-name>]
no debug ppp packet [interface <interface-name>]
Syntax
Description
<interface-name>
Interface name
Confidential and Proprietary Information of ZTE CORPORATION
111
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug priority
Purpose
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
Related
Commands
It is applied to ZXR10 GAR, ZXR10 ZSR at present.
terminal monitor
debug radius all
Purpose
Command Modes
Syntax
Open the RADIUS debugging switch.
switch with the no command.
Close the Radius debug
Privileged EXEC
debug radius all
no debug radius all
Related
Commands
terminal monitor
debug radius user
Purpose
Command Modes
Syntax
Use this command to open the RADIUS user debugging switch.
Close the Radius user debug switch with the no command.
Privileged EXEC
debug radius user <subscriber name><domain name>
no debug radius user
Syntax
Description
112
<subscriber name>
subscriber name
<domain name>
domain name
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
terminal monitor
debug radius exception
Purpose
Command Modes
Syntax
Use this command to open the RADIUS exception debugging
switch. Close the Radius exception debug switch with the no
command.
Privileged EXEC
debug radius exception
no debug radius exception
Related
Commands
terminal monitor
debug radius authentication
data
Purpose
Command Modes
Syntax
Use this command to open the RADIUS authentication data debugging switch. Close the Radius authentication data debug switch
with the no command.
Privileged EXEC
debug radius authentication data
no debug radius authentication data
Related
Commands
terminal monitor
debug radius authentication
error
Purpose
Command Modes
Syntax
Use this command to open the RADIUS authentication error debugging switch. Close the Radius authentication error debug switch
with the no command.
Privileged EXEC
debug radius authentication error
no debug radius authentication error
Confidential and Proprietary Information of ZTE CORPORATION
113
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
terminal monitor
debug radius authentication
event
Purpose
Command Modes
Syntax
Use this command to open the RADIUS authentication event
debugging switch. Close the Radius authentication event debug
switch with the no command.
Privileged EXEC
debug radius authentication event
no debug radius authentication event
Related
Commands
terminal monitor
debug radius authentication
packet
Purpose
Command Modes
Syntax
Use this command to open the RADIUS authentication packet debugging switch. Close the Radius authentication packet debug
switch with the no command.
Privileged EXEC
debug radius authentication packet {<group_num>| all}
no debug radius authentication packet
Syntax
Description
Related
Commands
<group_num>
Authentication server group number
all
All Authentication server group
terminal monitor
debug radius accounting
data
Purpose
Command Modes
Syntax
114
Use this command to open the RADIUS accounting data debugging
switch. Close the Radius accounting data debug switch with the
no command.
Privileged EXEC
debug radius accounting data
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
no debug radius accounting data
Related
Commands
terminal monitor
debug radius accounting
error
Purpose
Command Modes
Syntax
Use this command to open the RADIUS accounting error debugging
switch. Close the Radius accounting error debug switch with the
no command.
Privileged EXEC
debug radius accounting error
no debug radius accounting error
Related
Commands
terminal monitor
debug radius accounting
event
Purpose
Command Modes
Syntax
Use this command to open the Radius accounting event debugging
switch. Close the RADIUS accounting event debug switch with the
no command.
Privileged EXEC
debug radius accounting event
no debug radius accounting event
Related
Commands
terminal monitor
debug radius accounting
packet
Purpose
Command Modes
Syntax
Use this command to open the RADIUS accounting packet debugging switch. Close the radius accounting packet debug switch with
the no command.
Privileged EXEC
debug radius accounting packet {<group_num>| all}
no debug radius accounting packet
Confidential and Proprietary Information of ZTE CORPORATION
115
ZXR10 Command Manual (Basic Configuration Volume III)
Syntax
Description
Related
Commands
<group_num>
Authentication server group number
all
All Authentication server group
terminal monitor
debug tunnel packet
Purpose
Command Modes
Syntax
Use this command to show the information of packets received and
sent on a channel. Disable the function with the no command.
Privileged EXEC
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 this
command.
Example
This example describes how to display the output of the debug
ipv6 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.
116
Field
Description
1d0h
Time for receiving or sending packet
Ipv6/Ip
Indicates the channel type is ipv6 over ip
channel
packet to be
encapsulate
Indicates the packet is to be encapsulated
packet encapsulated
Indicates the packet is encapsulated
packet to be
decapsulate
Indicates the packet is to be decapsulated
packet decapsulated
Indicates the packet is decapsulated
10::1-->10::2 or
7.7.7.7-->7.7.7.6
Indicates the source address and destination
address of the packet
len=64
Indicates packet length
ttl=64
Indicates packet ttl
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 11 Debugging
Related
Commands
debug ipv6 packet
debug vbas
Purpose
Command Modes
Syntax
Use this command to open the switch for displaying VBAS debugging information. Close the switch with the no command.
Privileged EXEC
debug vbas
no debug vbas
Related
Commands
terminal monitor
debug voip pstn
Purpose
Command Modes
Syntax
Use this command to display the PSTN call debugging information
in VoIP. Cancel the displaying with the no command.
Privileged EXEC
debug voip pstn
no debug voip pstn
Instructions
Related
Commands
It is applied to ZXR10 GAR and ZXR10 ZSR at present.
terminal monitor
debug vrrp
Purpose
Command Modes
Syntax
Use this command to open the switch for displaying VRRP debugging information. Close the switch with the no command.
Privileged EXEC
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}
Syntax
Description
state
Shows the VRRP state change debugging
information
packet
Shows the protocol packet information
received/sent by the VRRP
Confidential and Proprietary Information of ZTE CORPORATION
117
ZXR10 Command Manual (Basic Configuration Volume III)
Related
Commands
event
Shows the information triggering VRRP state
change
group_no
Shows this group all VRRP debug information
error
Shows the error packet information received
by VRRP
all
Shows all the VRRP-related debugging
information
terminal monitor
show debug
show debugging
Purpose
Command Modes
Syntax
Related
Commands
Use this command to view the opened debugging switches.
Privileged EXEC
show debugging
All debug commands
terminal monitor
Purpose
Command Modes
Syntax
Use this command to output the debug information to the current
terminal. Stop the debugging information output to the current
terminal with the no command.
Privileged EXEC
terminal monitor
no terminal monitor
Related
Commands
118
All debug commands
Confidential and Proprietary Information of ZTE CORPORATION
Download