H3C S5500-HI Switch Series Command Reference Manual

Category
Software
Type
Command Reference Manual
H3C S5500-HI Switch Series
Network Management and Monitoring
Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 5101
Document version: 6W100-20111031
Copyright © 2011, Hangzhou H3C Technologies Co., Ltd. and its licensors
All rights reserved
No part of this manual may be reproduced or transmitted in any form or by any means without prior
written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C,
, Aolynk, , H
3
Care,
, TOP G, , IRF, NetPilot, Neocean, NeoVTL,
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V
2
G, V
n
G, PSPT,
XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co.,
Ltd.
All other trademarks that may be mentioned in this manual are the property of their respective owners
Notice
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Preface
The H3C S5500-HI documentation set includes 11 command references, which describe the commands
and command syntax options available for the H3C S5500-HI Switch Series Release 5101.
The Network Management and Monitoring Command Reference describes network management and
monitoring configuration commands. It covers the commands for viewing system information, collecting
traffic statistics, assessing the network performance, synchronizing time for all devices with clocks in your
network, and checking and debugging the current network connectivity with the ping, tracert, and
debug commands.
This preface includes:
Audience
Conventions
About the S5500-HI documentation set
Obtaining documentation
Technical support
Documentation feedback
Audience
This documentation is intended for:
Network planners
Field technical support and servicing engineers
Network administrators working with the S5500-HI Switch Series
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention Description
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[ ] Square brackets enclose syntax choices (keywords or arguments) that are optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars, from which
you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical bars, from
which you select one or none.
{ x | y | ... } *
Asterisk marked braces enclose a set of required syntax choices separated by vertical
bars, from which you select at least one.
Convention Description
[ x | y | ... ] *
Asterisk marked square brackets enclose optional syntax choices separated by vertical
bars, from which you select one choice, multiple choices, or none.
&<1-n>
The argument or keyword and argument combination before the ampersand (&) sign can
be entered 1 to n times.
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Description
Boldface
Window names, button names, field names, and menu items are in Boldface. For
example, the New User window appears; click OK.
> Multi-level menus are separated by angle brackets. For example, File > Create > Folder.
Symbols
Convention Description
WARNING
An alert that calls attention to important information that if not understood or followed can
result in personal injury.
CAUTION
An alert that calls attention to important information that if not understood or followed can
result in data loss, data corruption, or damage to hardware or software.
IMPORTANT
An alert that calls attention to essential information.
NOTE
An alert that contains additional or supplementary information.
TIP
An alert that provides helpful information.
Network topology icons
Represents a generic network device, such as a router, switch, or firewall.
Represents a routing-capable device, such as a router or Layer 3 switch.
Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports
Layer 2 forwarding and other Layer 2 features.
Port numbering in examples
The port numbers in this document are for illustration only and might be unavailable on your device.
About the S5500-HI documentation set
The H3C S5500-HI documentation set includes:
Documents Purposes
Product description and specifications
Marketing brochure Describe product specifications and benefits.
Documents Purposes
Technology white papers
Provide an in-depth description of software features and
technologies.
Hardware specifications and installation
Compliance and safety manual
CE DOCs
Provide regulatory information and the safety instructions that must be
followed during installation.
Installation quick start
Guides you through initial installation and setup procedures to help
you quickly set up your device.
Installation guide Provides a complete guide to switch installation and specifications.
PSR150-A [ PSR150-D ] Power
Modules User Manual
Describe the specifications, installation, and replacement of hot
swappable 150W power modules.
RPS Ordering Information for H3C
Low-End Ethernet Switches
Helps you order RPSs for switches that can work with an RPS.
User manuals for RPSs Describe the specifications, installation, and replacement of RPSs.
User manuals for interface cards
Describe the specifications, installation, and replacement of
expansion interface cards.
H3C Low End Series Ethernet Switches
Pluggable Modules Manual
Describes the specifications of pluggable transceiver modules.
Pluggable SFP[SFP+][XFP] Transceiver
Modules Installation Guide
Describe the installation, and replacement of SFP/SFP+/XFP
transceiver modules.
Software configuration
Configuration guides Describe software features and configuration procedures.
Command references Provide a quick reference to all available commands.
Operations and maintenance
H3C Series Ethernet Switches Login
Password Recovery Manual
Helps you deal with switch login password loss.
Release notes
Provide information about the product release, including the version
history, hardware and software compatibility matrix, version
upgrade information, technical support information, and software
upgrading.
Obtaining documentation
You can access the most up-to-date H3C product documentation on the World Wide Web at
http://www.h3c.com
.
Click the links on the top navigation bar to obtain different categories of product documentation:
[Technical Support & Documents > Technical Documents]
– Provides hardware installation, software
upgrading, and software feature configuration and maintenance documentation.
[Products & Solutions]
Provides information about products and technologies, as well as solutions.
[Technical Support & Documents > Software Download]
– Provides the documentation released with the
software version.
Technical support
http://www.h3c.com
Documentation feedback
You can e-mail your comments about product documentation to info@h3c.com.
We appreciate your comments.
i
Contents
System maintenance and debugging commands······································································································ 1
System maintenance commands······································································································································1
ping············································································································································································1
ping ipv6···································································································································································5
ping lsp······································································································································································7
tracert·········································································································································································8
tracert ipv6····························································································································································· 10
tracert lsp································································································································································ 11
System debugging commands······································································································································ 12
debugging······························································································································································ 12
display debugging ················································································································································ 13
NTP configuration commands···································································································································14
display ntp-service sessions ·································································································································· 14
display ntp-service status ······································································································································ 18
display ntp-service trace ······································································································································· 20
ntp-service access ·················································································································································· 21
ntp-service authentication enable ························································································································ 22
ntp-service authentication-keyid ··························································································································· 22
ntp-service broadcast-client ·································································································································· 23
ntp-service broadcast-server ································································································································· 24
ntp-service in-interface disable····························································································································· 24
ntp-service max-dynamic-sessions ························································································································ 25
ntp-service multicast-client····································································································································· 26
ntp-service multicast-server···································································································································· 26
ntp-service reliable authentication-keyid ············································································································· 27
ntp-service source-interface··································································································································· 28
ntp-service unicast-peer········································································································································· 28
ntp-service unicast-server ······································································································································ 29
Information center configuration commands············································································································31
display channel ····················································································································································· 31
display info-center ················································································································································· 32
display logbuffer···················································································································································· 34
display logbuffer summary ··································································································································· 36
display logfile buffer ············································································································································· 37
display logfile summary········································································································································ 38
display security-logfile buffer································································································································ 39
display security-logfile summary ·························································································································· 39
display trapbuffer ·················································································································································· 40
enable log updown··············································································································································· 42
info-center channel name ····································································································································· 42
info-center console channel ·································································································································· 43
info-center enable·················································································································································· 44
info-center format unicom ····································································································································· 44
info-center logbuffer ·············································································································································· 45
info-center logfile enable ······································································································································ 45
info-center logfile frequency ································································································································· 46
info-center logfile size-quota································································································································· 47
info-center logfile switch-directory ······················································································································· 47
ii
info-center loghost ················································································································································· 48
info-center loghost source ····································································································································· 49
info-center monitor channel ·································································································································· 50
info-center security-logfile alarm-threshold ·········································································································· 51
info-center security-logfile enable························································································································· 52
info-center security-logfile frequency ··················································································································· 52
info-center security-logfile size-quota··················································································································· 53
info-center security-logfile switch-directory·········································································································· 53
info-center snmp channel······································································································································ 54
info-center source ·················································································································································· 55
info-center synchronous ········································································································································ 57
info-center syslog channel ···································································································································· 58
info-center timestamp ············································································································································ 59
info-center timestamp loghost······························································································································· 60
info-center trapbuffer············································································································································· 61
logfile save····························································································································································· 61
reset logbuffer························································································································································ 62
reset trapbuffer······················································································································································· 62
security-logfile save ··············································································································································· 63
terminal debugging··············································································································································· 64
terminal logging ···················································································································································· 64
terminal monitor····················································································································································· 65
terminal trapping ··················································································································································· 66
SNMP configuration commands ·······························································································································67
display snmp-agent community···························································································································· 67
display snmp-agent group ···································································································································· 68
display snmp-agent local-engineid ······················································································································ 69
display snmp-agent mib-view ······························································································································· 70
display snmp-agent statistics ································································································································ 72
display snmp-agent sys-info·································································································································· 73
display snmp-agent trap queue···························································································································· 74
display snmp-agent trap-list ·································································································································· 75
display snmp-agent usm-user································································································································ 76
enable snmp trap updown ··································································································································· 77
snmp-agent····························································································································································· 78
snmp-agent calculate-password ··························································································································· 79
snmp-agent community ········································································································································· 80
snmp-agent group·················································································································································· 81
snmp-agent local-engineid···································································································································· 83
snmp-agent log ······················································································································································ 84
snmp-agent ifmib long-ifindex enable ················································································································· 84
snmp-agent mib-view············································································································································· 85
snmp-agent packet max-size ································································································································ 86
snmp-agent sys-info ··············································································································································· 87
snmp-agent target-host ·········································································································································· 88
snmp-agent trap enable ········································································································································ 89
snmp-agent trap if-mib link extended ·················································································································· 91
snmp-agent trap life··············································································································································· 92
snmp-agent trap queue-size·································································································································· 93
snmp-agent trap source········································································································································· 94
snmp-agent usm-user { v1 | v2c }························································································································ 94
snmp-agent usm-user v3········································································································································ 96
iii
MIB configuration commands ···································································································································99
display mib-style ···················································································································································· 99
mib-style·································································································································································· 99
RMON configuration commands··························································································································· 101
display rmon alarm ·············································································································································101
display rmon event ··············································································································································102
display rmon eventlog·········································································································································103
display rmon history············································································································································105
display rmon prialarm ········································································································································107
display rmon statistics ·········································································································································109
rmon alarm···························································································································································111
rmon event····························································································································································113
rmon history ·························································································································································114
rmon prialarm ······················································································································································115
rmon statistics·······················································································································································117
Port mirroring configuration commands················································································································ 119
display mirroring-group ······································································································································119
mirroring-group····················································································································································120
mirroring-group mirroring-cpu····························································································································121
mirroring-group mirroring-port ···························································································································122
mirroring-group monitor-egress··························································································································123
mirroring-group monitor-port ······························································································································124
mirroring-group reflector-port ·····························································································································125
mirroring-group remote-probe vlan····················································································································126
mirroring-port ·······················································································································································127
monitor-port··························································································································································128
Traffic mirroring configuration commands ············································································································ 129
mirror-to ································································································································································129
NQA configuration commands······························································································································ 130
NQA client configuration commands ························································································································130
advantage-factor ·················································································································································130
codec-type····························································································································································130
data-fill··································································································································································131
data-size ·······························································································································································132
description (any NQA test type view)···············································································································133
destination ip ·······················································································································································133
destination port····················································································································································134
display nqa history··············································································································································134
display nqa reaction counters····························································································································136
display nqa result ················································································································································138
display nqa statistics ···········································································································································142
filename································································································································································148
frequency······························································································································································149
history-record enable ··········································································································································149
history-record keep-time······································································································································150
history-record number ·········································································································································151
http-version ···························································································································································151
mode·····································································································································································152
next-hop································································································································································152
nqa········································································································································································153
nqa agent enable ················································································································································154
nqa agent max-concurrent··································································································································154
iv
nqa schedule························································································································································155
operation (FTP test type view) ····························································································································156
operation (HTTP test type view)··························································································································156
operation interface ··············································································································································157
password (FTP test type view) ····························································································································157
probe count··························································································································································158
probe packet-interval ··········································································································································159
probe packet-number ··········································································································································160
probe packet-timeout···········································································································································160
probe timeout·······················································································································································161
reaction checked-element icpif···························································································································161
reaction checked-element { jitter-ds | jitter-sd } ································································································162
reaction checked-element mos ···························································································································164
reaction checked-element { owd-ds | owd-sd }································································································165
reaction checked-element packet-loss················································································································166
reaction checked-element probe-duration·········································································································167
reaction checked-element probe-fail (for trap)··································································································168
reaction checked-element probe-fail (for trigger) ·····························································································169
reaction checked-element rtt·······························································································································170
reaction trap·························································································································································172
resolve-target························································································································································172
route-option bypass-route····································································································································173
source interface ···················································································································································174
source ip·······························································································································································174
source port ···························································································································································175
statistics hold-time················································································································································176
statistics max-group ·············································································································································176
statistics interval···················································································································································177
tos··········································································································································································178
ttl············································································································································································178
type ·······································································································································································179
url ··········································································································································································180
username (FTP test type view) ····························································································································180
vpn-instance (ICMP echo test type view)···········································································································181
NQA server configuration commands·······················································································································181
display nqa server status ····································································································································181
nqa server enable ···············································································································································182
nqa server tcp-connect ········································································································································183
nqa server udp-echo ···········································································································································184
sFlow configuration commands······························································································································ 185
display sflow ························································································································································185
sflow agent···························································································································································187
sflow collector ······················································································································································187
sflow counter interval ··········································································································································188
sflow counter collector ········································································································································189
sflow flow collector··············································································································································189
sflow flow max-header········································································································································190
sflow sampling-mode ··········································································································································190
sflow sampling-rate ·············································································································································191
sflow source ·························································································································································192
NetStream configuration commands ····················································································································· 193
display ip netstream cache·································································································································193
display ip netstream export································································································································195
v
display ip netstream template ····························································································································197
enable···································································································································································198
ip netstream··························································································································································199
ip netstream aggregation ···································································································································199
ip netstream aggregation advanced·················································································································200
ip netstream export host ·····································································································································201
ip netstream export rate······································································································································202
ip netstream export source ·································································································································203
ip netstream export v9-template refresh-rate packet ························································································203
ip netstream export v9-template refresh-rate time ····························································································204
ip netstream export version ································································································································205
ip netstream filter·················································································································································206
ip netstream sampler···········································································································································207
ip netstream timeout active·································································································································207
ip netstream timeout inactive······························································································································208
netstream filter······················································································································································209
reset ip netstream statistics ·································································································································209
IPv6 NetStream configuration commands············································································································· 211
display ipv6 netstream cache ····························································································································211
display ipv6 netstream export····························································································································213
display ipv6 netstream template························································································································214
enable···································································································································································217
ipv6 netstream ·····················································································································································217
ipv6 netstream aggregation·······························································································································218
ipv6 netstream aggregation advanced·············································································································218
ipv6 netstream export host ·································································································································219
ipv6 netstream export rate ·································································································································220
ipv6 netstream export source·····························································································································221
ipv6 netstream export v9-template refresh-rate packet····················································································221
ipv6 netstream export v9-template refresh-rate time························································································222
ipv6 netstream export version 9 ························································································································223
reset ipv6 netstream statistics ·····························································································································224
Sampler configuration commands ························································································································· 225
display sampler ···················································································································································225
sampler·································································································································································226
IPC configuration commands ································································································································· 227
display ipc channel ·············································································································································227
display ipc link·····················································································································································228
display ipc multicast-group·································································································································229
display ipc node··················································································································································230
display ipc packet ···············································································································································230
display ipc performance·····································································································································232
display ipc queue ················································································································································233
ipc performance enable ·····································································································································234
reset ipc performance ·········································································································································235
Cluster management configuration commands····································································································· 236
NDP configuration commands····································································································································236
display ndp ··························································································································································236
ndp enable···························································································································································238
ndp timer aging···················································································································································239
ndp timer hello·····················································································································································240
reset ndp statistics················································································································································240
vi
NTDP configuration commands··································································································································241
display ntdp ·························································································································································241
display ntdp device-list········································································································································242
display ntdp single-device ··································································································································244
ntdp enable··························································································································································246
ntdp explore·························································································································································246
ntdp hop·······························································································································································247
ntdp timer ·····························································································································································247
ntdp timer hop-delay ···········································································································································248
ntdp timer port-delay···········································································································································249
Cluster configuration commands ································································································································249
add-member·························································································································································249
administrator-address··········································································································································250
auto-build······························································································································································251
black-list add-mac················································································································································253
black-list delete-mac ············································································································································254
build······································································································································································254
cluster····································································································································································256
cluster enable·······················································································································································256
cluster switch-to····················································································································································257
cluster-local-user···················································································································································258
cluster-mac····························································································································································259
cluster-mac syn-interval········································································································································259
cluster-snmp-agent community····························································································································260
cluster-snmp-agent group v3·······························································································································261
cluster-snmp-agent mib-view ·······························································································································262
cluster-snmp-agent usm-user v3 ··························································································································263
delete-member ·····················································································································································264
display cluster ······················································································································································264
display cluster base-topology·····························································································································266
display cluster black-list ······································································································································267
display cluster candidates ··································································································································268
display cluster current-topology ·························································································································269
display cluster members······································································································································271
ftp-server ·······························································································································································274
holdtime································································································································································275
ip-pool···································································································································································275
logging-host··························································································································································276
management-vlan ················································································································································277
management-vlan synchronization enable ·······································································································278
nm-interface vlan-interface··································································································································278
reboot member ····················································································································································279
snmp-host······························································································································································279
tftp-server ······························································································································································280
timer······································································································································································281
topology accept···················································································································································281
topology restore-from ··········································································································································282
topology save-to ··················································································································································283
CWMP configuration commands··························································································································· 284
cwmp ····································································································································································284
cwmp acs password ···········································································································································284
cwmp acs url························································································································································285
cwmp acs username············································································································································285
cwmp cpe connect retry······································································································································286
vii
cwmp cpe connect interface ······························································································································287
cwmp cpe inform interval ···································································································································287
cwmp cpe inform interval enable ······················································································································288
cwmp cpe inform time ········································································································································288
cwmp cpe password ···········································································································································289
cwmp cpe username ···········································································································································289
cwmp cpe wait timeout·······································································································································290
cwmp enable ·······················································································································································291
display cwmp configuration·······························································································································291
display cwmp status ············································································································································292
Index ········································································································································································ 295
1
System maintenance and debugging
commands
System maintenance commands
ping
Syntax
ping [ ip ] [ -a source-ip | -c count | -f | -h ttl | -i interface-type interface-number | -m interval | -n | -p
pad | -q | -r | -s packet-size | -t timeout | -tos tos | -v | -vpn-instance vpn-instance-name ] * host
View
Any view
Default level
0: Visit level
Parameters
ip: Specifies supports of the IPv4 protocol. If this keyword is not provided, IPv4 is also supported.
-a source-ip: Specifies the source IP address of an ICMP echo request (ECHO-REQUEST). It must be an
IP address configured on the device. If this parameter is not provided, the source IP address of an ICMP
echo request is the primary IP address of the outbound interface of the request.
-c count: Specifies the number of times that an ICMP echo request is sent, which is in the range of 1 to
4294967295 and defaults to 5.
-f: Discards packets larger than the MTU of a given interface, which means the ICMP echo request is not
allowed to be fragmented.
-h ttl: Specifies the TTL value for an ICMP echo request, which is in the range of 1 to 255 and defaults to
255.
-i interface-type interface-number: Specifies the ICMP echo request sending interface by its type and
number. If this option is not provided, the ICMP echo request sending interface is determined by
searching the routing table or forwarding table according to the destination IP address.
-m interval: Specifies the interval (in milliseconds) to send an ICMP echo request, which is in the range
of 1 to 65535 and defaults to 200.
If a response from the destination is received within the timeout time, the interval to send the next
echo request equals the actual response period plus the value of interval.
If no response from the destination is received within the timeout time, the interval to send the next
echo request equals the timeout value plus the value of interval.
-n: Disables domain name resolution for the host argument. When this keyword is not provided, if the
host argument represents the host name of the destination, the device translates host into an address.
-p pad: Specifies the value of the pad field in an ICMP echo request, in hexadecimal format, 1 to 8 bits,
in the range of 0 to ffffffff. If the specified value is less than 8 bits, 0s are added in front of the value to
2
extend it to 8 bits. For example, if pad is configured as 0x2f, then the packets are padded with
0x0000002f repeatedly to make the total length of the packet meet the requirements of the device. By
default, the padded value starts from 0x01 up to 0xff, where another round starts again if necessary, like
0x010203…feff01….
-q: Specifies that only statistics are displayed. Absence of this keyword indicates that all information is
displayed.
-r: Specifies the recording routing information. If this keyword is not provided, routes are not recorded.
-s packet-size: Specifies the length (in bytes) of an ICMP echo request, which is in the range of 20 to 8100
and defaults to 56.
-t timeout: Specifies the timeout value (in milliseconds) of an ICMP echo reply (ECHO-REPLY). If the
source does not receive an ICMP echo reply within the timeout, it considers the ICMP echo reply timed
out. The value is in the range of 0 to 65535 and defaults to 2000.
-tos tos: Specifies the type of service (ToS) of an echo request, which is in the range of 0 to 255 and
defaults to 0.
-v: Displays the non-ICMP echo reply received. If this keyword is not provided, the system does not
display non ICMP echo reply.
-vpn-instance vpn-instance-name: Specifies the MPLS L3VPN to which the destination belongs, where
vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the destination is on the public
network, do not specify this option.
host: Specifies the IP address or host name (a string of 1 to 255 characters) for the destination.
Description
Use the ping command to verify whether the destination in an IP network is reachable, and to display the
related statistics.
With the ping command executed, the source sends an ICMP echo request to the destination:
If the destination name is unrecognizable, the system outputs “Error: Ping: Unknown host
host-name”.
If the source receives an ICMP echo reply from the destination within the timeout, the system outputs
the related information of the reply.
If the source does not receive an ICMP echo reply from the destination within the timeout, the system
outputs “Request time out”.
To use the name of the destination host to perform the ping operation, you must configure the
Domain Name System (DNS) on the device first. Otherwise, the ping operation fails. In addition,
you must use the command in the form of ping ip ip instead of ping ip if the destination name is a
key word, such as ip.
To abort the ping operation during the execution of the command, press Ctrl+C.
Examples
# Check whether the device with an IP address of 1.1.2.2 is reachable.
<Sysname> ping 1.1.2.2
PING 1.1.2.2: 56 data bytes, press CTRL_C to break
Reply from 1.1.2.2: bytes=56 Sequence=1 ttl=254 time=205 ms
Reply from 1.1.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms
3
--- 1.1.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/41/205 ms
The output shows the following:
The destination was reachable.
All ICMP echo requests sent by the source got responses.
The minimum time, average time, and maximum time for the packet’s roundtrip time are 1 ms, 41
ms, and 205 ms respectively.
# Check whether the device with an IP address of 1.1.2.2 in VPN 1 is reachable.
<Sysname> ping -vpn-instance vpn1 1.1.2.2
PING 1.1.2.2: 56 data bytes, press CTRL_C to break
Reply from 1.1.2.2: bytes=56 Sequence=1 ttl=254 time=205 ms
Reply from 1.1.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms
--- 1.1.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/41/205 ms
The output shows the following:
The destination in VPN 1 was reachable.
All ICMP echo requests sent by the source got responses.
The minimum time, average time, and maximum time for the packet’s roundtrip time are 1 ms, 41
ms, and 205 ms respectively.
# Check whether the device with an IP address of 1.1.2.2 is reachable. Only the check results are
displayed.
<Sysname> ping -q 1.1.2.2
PING 1.1.2.2: 56 data bytes, press CTRL_C to break
--- 1.1.2.2 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 1/12/29 ms
# Check whether the device with an IP address of 1.1.2.2 is reachable. The route information is
displayed.
<Sysname> ping -r 1.1.2.2
PING 1.1.2.2: 56 data bytes, press CTRL_C to break
Reply from 1.1.2.2: bytes=56 Sequence=1 ttl=254 time=53 ms
Record Route:
4
1.1.2.1
1.1.2.2
1.1.1.2
1.1.1.1
Reply from 1.1.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Record Route:
1.1.2.1
1.1.2.2
1.1.1.2
1.1.1.1
Reply from 1.1.2.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Record Route:
1.1.2.1
1.1.2.2
1.1.1.2
1.1.1.1
Reply from 1.1.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Record Route:
1.1.2.1
1.1.2.2
1.1.1.2
1.1.1.1
Reply from 1.1.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms
Record Route:
1.1.2.1
1.1.2.2
1.1.1.2
1.1.1.1
--- 1.1.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/11/53 ms
The output shows the following information:
The destination was reachable.
T h e r o u t e i s 1.1.1.1 < - > { 1.1.1. 2; 1.1. 2.1 } < - > 1.1. 2. 2.
Table 1 Output description
Field Description
PING 1.1.2.2 Check whether the device with IP address 1.1.2.2 is reachable
56 data bytes Number of data bytes in each ICMP echo request
press CTRL_C to break
During the execution of the command, you can press Ctrl+C to abort the
ping operation.
5
Field Description
Reply from 1.1.2.2 : bytes=56
Sequence=1 ttl=255 time=1 ms
Received the ICMP reply from the device whose IP address is 1.1.2.2. If
no reply is received during the timeout period, “Request time out” will be
displayed.
bytes—Indicates the number of data bytes in the ICMP reply.
Sequence—Indicates the packet sequence, used to determine
whether a segment is lost, disordered or repeated.
ttl—Indicates the TTL value in the ICMP reply.
time—Indicates the response time.
Record Route:
The routers through which the ICMP echo request passed. They are
displayed in inversed order, that is, the router with a smaller distance to
the destination is displayed first.
--- 1.1.2.2 ping statistics --- Statistics on data received and sent in the ping operation
5 packet(s) transmitted Number of ICMP echo requests sent
5 packet(s) received Number of ICMP echo requests received
0.00% packet loss Percentage of packets not responded to the total packets sent
round-trip min/avg/max = 0/4/20
ms
Minimum/average/maximum response time, in ms. The field is not
available for failed ping attempts in an IPv4 network. In an IPv6 network,
however, the field is available and set to 0/0/0 ms.
ping ipv6
Syntax
ping ipv6 [ -a source-ipv6 | -c count | -m interval | -s packet-size | -t timeout | -vpn-instance
vpn-instance-name ] * host [ -i interface-type interface-number ]
View
Any view
Default level
0: Visit level
Parameters
-a source-ipv6: Specifies the source IPv6 address of an ICMP echo request. It must be a legal IPv6
address configured on the device. If this parameter is not provided, the source IPv6 address of an ICMP
echo request is the primary IPv6 address of the outbound interface of the request.
-c count: Specifies the number of times that an ICMPv6 echo request is sent, which is in the range of 1
to 4294967295 and defaults to 5.
-m interval: Specifies the interval (in milliseconds) to send an ICMPv6 echo reply, which is in the range
of 1 to 65535 and defaults to 200.
If a response from the destination is received within the timeout time, the interval to send the next
echo request equals the actual response period plus the value of interval.
If no response from the destination is received within the timeout time, the interval to send the next
echo request equals the timeout value plus the value of interval.
-s packet-size: Specifies the length (in bytes) of an ICMPv6 echo request, which is in the range of 20 to
8100 and defaults to 56.
6
-t timeout: Specifies the timeout value (in milliseconds) of an ICMPv6 echo reply, which is in the range of
0 to 65535 and defaults to 2000.
host: Specifies the IPv6 address or host name of the destination, a string of 1 to 46 characters.
-i interface-type interface-number: Specifies an outbound interface by its type and number. This
parameter can be used only when the destination address is the link local address and the specified
outbound interface must have a link local address. For more information about the configuration of a link
local address, see Layer 3—IP Services Configuration Guide. If this parameter is not provided, the ICMP
echo request sending interface is determined by searching the routing table or forwarding table
according to the destination IP address.
-vpn-instance vpn-instance-name: Specifies the MPLS L3VPN to which the destination belongs, where
vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the destination is on the public
network, do not specify this option.
Description
Use the ping ipv6 command to verify whether an IPv6 address is reachable, and display the
corresponding statistics.
To use the name of the destination host to perform the ping operation, you must configure DNS on the
device first. Otherwise, the ping operation fails. For more information about DNS, see Layer 3—IP
Services Configuration Guide. You must use the command in the form of ping ipv6 ipv6 instead of ping
ipv6 if the destination name is an ipv6 name.
To abort the ping ipv6 operation during the execution of the command, press Ctrl+C.
Examples
# Verify whether the IPv6 address 2001::1 is reachable.
<Sysname> ping ipv6 2001::1
PING 2001::2 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 62 ms
Reply from 2001::1
bytes=56 Sequence=2 hop limit=64 time = 26 ms
Reply from 2001::1
bytes=56 Sequence=3 hop limit=64 time = 20 ms
Reply from 2001::1
bytes=56 Sequence=4 hop limit=64 time = 4 ms
Reply from 2001::1
bytes=56 Sequence=5 hop limit=64 time = 16 ms
--- 2001::2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/25/62 ms
# Verify whether the IPv6 address 2001::1 in VPN 1 is reachable.
<Sysname> ping ipv6 –vpn-instance vpn1 2001::1
PING 2001::1 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 62 ms
Reply from 2001::1
7
bytes=56 Sequence=2 hop limit=64 time = 26 ms
Reply from 2001::1
bytes=56 Sequence=3 hop limit=64 time = 20 ms
Reply from 2001::1
bytes=56 Sequence=4 hop limit=64 time = 4 ms
Reply from 2001::1
bytes=56 Sequence=5 hop limit=64 time = 16 ms
--- 2001::2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/25/62 ms
The “hop limit” field in this prompt information has the same meaning as the “ttl” field in the prompt
information displayed by the IPv4 ping command, indicating the TTL value in the ICMPv6 echo request.
For a description of other fields, see Table 1.
ping lsp
Syntax
ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -s
packet-size | -t time-out | -v ] * ipv4 dest-addr mask-length [ destination-ip-addr-header ]
View
Any view
Default level
0: Visit level
Parameters
-a source-ip: Specifies the source address for the echo request messages to be sent.
-c count: Specifies the number of echo request messages to be sent. The count argument is in the range
of 1 to 4294967295 and defaults to 5.
-exp exp-value: Specifies the EXP value for the echo request messages. The exp-value argument is in the
range of 0 to 7 and defaults to 0.
-h ttl-value: Specifies the TTL value for the echo request messages. The ttl-value argument is in the range
of 1 to 255 and defaults to 255.
-m wait-time: Specifies the interval for sending echo request messages. The wait-time argument is in the
range of 1 to 10000 milliseconds and defaults to 200 milliseconds.
-r reply-mode: Specifies the reply mode of the receiver in response to the echo request messages. The
reply-mode argument can be 1 or 2, where 1 means “Do not respond” and 2 means “Respond using a
UDP packet”. The default is 2.
-s packet-size: Specifies the payload length of the echo request messages. The packet-size argument is in
the range of 65 to 8100 bytes and defaults to 100 bytes.
-t time-out: Specifies the timeout interval for the response to an echo request message. The time-out
argument is in the range of 0 to 65535 milliseconds and defaults to 2000 milliseconds.
-v: Displays detailed response information.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311

H3C S5500-HI Switch Series Command Reference Manual

Category
Software
Type
Command Reference Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI