- Table of Contents
-
- H3C S3600 Command Manual-Release 1602(V1.02)
- 00-1Cover
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-IP Address and Performance Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Port Basic Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-Auto Detect Command
- 15-MSTP Command
- 16-Routing Protocol Command
- 17-Multicast Command
- 18-802.1x and System Guard Command
- 19-AAA Command
- 20-Web Authentication Command
- 21-MAC Address Authentication Command
- 22-VRRP Command
- 23-ARP Command
- 24-DHCP Command
- 25-ACL Command
- 26-QoS-QoS Profile Command
- 27-Web Cache Redirection Command
- 28-Mirroring Command
- 29-IRF Fabric Command
- 30-Cluster Command
- 31-PoE-PoE Profile Command
- 32-UDP Helper Command
- 33-SNMP-RMON Command
- 34-NTP Command
- 35-SSH Command
- 36-File System Management Command
- 37-FTP-SFTP-TFTP Command
- 38-Information Center Command
- 39-System Maintenance and Debugging Command
- 40-VLAN-VPN Command
- 41-HWPing Command
- 42-IPv6 Management Command
- 43-DNS Command
- 44-Smart Link-Monitor Link Command
- 45-Access Management Command
- 46-Appendix
Title | Size | Download |
---|---|---|
42-IPv6 Management Command | 159.6 KB |
Table of Contents
Basic IPv6 Configuration Commands
ipv6 neighbors max-learning-num
2 IPv6 Application Configuration Commands
IPv6 Application Configuration Commands
Basic IPv6 Configuration Commands
display dns ipv6 dynamic-host
Syntax
display dns ipv6 dynamic-host
View
Any view
Parameters
None
Description
Use the display dns ipv6 dynamic-host command to display IPv6 dynamic domain name information in the cache, including the domain name, IPv6 address, and TTL of the DNS entries.
You can use the reset dns ipv6 dynamic-host command to clear all IPv6 dynamic domain name information from the cache.
Examples
# Display IPv6 dynamic domain name information in the cache.
<Sysname> display dns ipv6 dynamic-host
No. Domain-name IPv6 Address TTL
1 aaa 2001::2 6
Table 1-1 Description on the fields of the display dns ipv6 dynamic-host command
Field |
Description |
No. |
Sequence number |
Domain-name |
Domain name |
IPv6 Address |
IPv6 address of the corresponding domain name |
TTL |
Time-to-live of the domain name in the cache in seconds |
When you use the display dns ipv6 dynamic-host command to check the IPv6 dynamic domain names in the cache, the system will display the first 21 characters of the domain names if they contain more than 21 characters. This is because the domain name displayed in the Domain-name field can be up to 21 characters in length.
display ipv6 fib
Syntax
display ipv6 fib
View
Any view
Parameters
None
Description
Use the display ipv6 fib command to display all the IPv6 FIB entries.
The switch looks up a matching IPv6 FIB entry for forwarding an IPv6 packet.
Examples
# Display all the IPv6 FIB entries.
FIB Table:
Total number of Routes : 5
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
Destination: ::1 PrefixLength : 128
NextHop : ::1 Flag : HU
TimeStamp : Date- 5/7/2006, Time- 14:35:32
Interface : InLoopBack0
Destination: FE80:: PrefixLength : 10
NextHop : :: Flag : BU
TimeStamp : Date- 5/7/2006, Time- 14:35:32
Interface : NULL0
Destination: 2008:: PrefixLength : 64
NextHop : 2008::5600 Flag : U
TimeStamp : Date- 5/7/2006, Time- 14:35:32
Interface : Vlan-interface1
Destination: 2008::5600 PrefixLength : 128
NextHop : ::1 Flag : HU
TimeStamp : Date- 5/7/2006, Time- 14:35:32
Interface : InLoopBack0
Destination: 2001:: PrefixLength : 64
NextHop : 2008::3610 Flag : GSU
TimeStamp : Date- 5/7/2006, Time- 14:35:32
Interface : Vlan-interface1
Table 1-2 Description on the fields of the display ipv6 fib command
Field |
Description |
Total number of Routes |
Total number of routes in the FIB |
Destination |
Destination address to which a packet is forwarded |
PrefixLength |
Prefix length of the destination address |
NextHop |
Next hop address when a packet is forwarded to the destination |
Flag |
Route flag: “U” — Usable route “G” — Gateway route “H” — Host route “B” — Blackhole route “D” — Dynamic route “S” — Static route |
TimeStamp |
Generation time of an FIB entry |
Interface |
Interface from which a packet is forwarded |
display ipv6 host
Syntax
display ipv6 host
View
Any view
Parameters
None
Description
Use the display ipv6 host command to display the mapping between host name and IPv6 address.
Related commands: ipv6 host.
Examples
# Display the mapping between host name and IPv6 address.
<Sysname> display ipv6 host
Host Age Flags IPv6Address (es)
SWB 0 static 2002::1
Table 1-3 Description on the fields of the display ipv6 host command
Field |
Description |
Host |
Host name |
Age |
Time for the entry to live, displayed as 0 in the case of static configuration. |
Flags |
Flag indicating whether the entry is configured statically or acquired dynamically |
IPv6Address (es) |
IPv6 address corresponding to a host name |
display ipv6 interface
Syntax
display ipv6 interface [ interface-type interface-number | brief ]
View
Any view
Parameters
interface-type: Interface type.
interface-number: Interface number.
brief: Displays the brief IPv6 information of an interface.
Description
Use the display ipv6 interface command to display the IPv6 information of a specified interface.
If no interface is specified, the IPv6 information of all interfaces for which IPv6 addresses can be configured is displayed; if only interface-type is specified, the IPv6 information of the interfaces of the specified type for which IPv6 addresses can be configured is displayed; if interface-type interface-number is specified, the IPv6 information of the specified interface is displayed.
If the brief keyword is specified, the brief IPv6 information of the interface is displayed.
Examples
# Display the IPv6 information of a VLAN interface.
<Sysname> display ipv6 interface Vlan-interface 1
Vlan-interface1 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE00:C
Global unicast address(es):
2008::5600, subnet is 2008::/64
Joined group address(es):
FF02::1:FF00:5600
FF02::1:FF00:C
FF02::1
MTU is 1500 bytes
ND DAD is enabled, number of DAD attempts: 5
ND reachable time is 30000 milliseconds
ND retransmit interval is 1000 milliseconds
Hosts use stateless autoconfig for addresses
Table 1-4 Description on the fields of the display ipv6 interface command
Field |
Description |
Vlan-interface1 current state |
VLAN interface link state: l Administratively DOWN: Indicates the VLAN interface is administratively down; that is, the interface is shut down using the shutdown command. l DOWN: Indicates the VLAN interface is administratively up but its physical state is down; that is, no ports in the VLAN are up, which may be caused by a link failure. l UP: Indicates the administrative and physical states of the VLAN interface are both up. |
Line protocol current state |
Link layer protocol state of an interface: l DOWN: Indicates the link layer protocol state of the VLAN interface is down, generally because no IP address is configured. l UP: Indicates the link layer protocol state of the VLAN interface is up. |
IPv6 is enabled |
IPv6 forwarding state of an interface (after an IPv6 address is configured for an interface, IPv6 is automatically enabled on it; IPv6 is enabled in the example) |
link-local address |
Link-local address configured on an interface |
Global unicast address(es) |
Aggregatable global unicast address configured on an interface |
Joined group address(es) |
Address of the multicast group that an interface joins |
MTU |
Maximum transmission unit of an interface |
ND DAD is enabled, number of DAD attempts |
Number of duplicate address detection (DAD) attempts, with DAD enabled l If DAD is enabled, the number of neighbor request messages is also displayed (configured by using the ipv6 nd dad attempts command) l If DAD is disabled, “ND DAD is disabled” is displayed. (You can set the number of neighbor request messages for DAD to 0 to disable this function.) |
ND reachable time |
Neighbor reachable time (which can be configured by using the ipv6 nd nud reachable-time command) |
ND retransmit interval |
Interval for retransmitting a neighbor solicitation (NS) message (which can be configured by using the ipv6 nd ns retrans-timer command) |
Hosts use stateless autoconfig for addresses |
Hosts use stateless auto-configuration mode to acquire IPv6 addresses |
#: View the brief IPv6 information of all interfaces.
<Sysname> display ipv6 interface brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IPv6 Address
Vlan-interface1 up up 2008::5600
Table 1-5 Description on the fields of the display ipv6 interface brief command
Field |
Description |
*down: administratively down |
The interface is down, that is, the interface is disabled by using the shutdown command. |
(s) : spoofing |
Spoofing attribute of the interface, that is, the link protocol state of the interface is up, but the link does not exist, or the link is established on demand, instead of being permanent. |
Interface |
Name of the interface |
Physical |
Interface link state: l *down: Indicates the VLAN interface is administratively down; that is, the interface is shut down using the shutdown command. l down: Indicates the VLAN interface is administratively up but its physical state is down; that is, no port in the VLAN is up, which may be caused by a link failure. l up: Indicates the administrative and physical states of the VLAN interface are both up. |
Protocol |
Link protocol state of an interface l down: Indicates the link layer protocol state of the VLAN interface is down, generally because no IP address is configured. l up: Indicates the link layer protocol state of the VLAN interface is up. |
IPv6 Address |
IPv6 address of the interface (If no address is configured for the interface, “Unassigned” will be displayed.) |
display ipv6 neighbors
Syntax
display ipv6 neighbors { ipv6-address | all | dynamic | static | interface interface-type interface-number | vlan vlan-id } [ | { begin | exclude | include } regular-expression ]
View
Any view
Parameters
ipv6-address: IPv6 address whose neighbor information is to be displayed.
all: Displays information of all neighbors, including neighbors acquired dynamically and configured statically.
dynamic: Displays information of all neighbors acquired dynamically.
static: Displays information of all neighbors configured statically.
interface interface-type interface-number: Displays information of the neighbors of a specified interface.
vlan vlan-id: Displays information of the neighbors of a specified VLAN, in the range of 1 to 4094.
|: Uses a regular expression to match neighbor entries.
regular-expression: A case-sensitive string for matching.
l begin: Displays the first matching neighbor entry and all the neighbor entries following it.
l exclude: Displays the neighbor entries not matching the specified regular expression.
l include: Displays the neighbor entries matching the specified regular expression.
The regular expression supports various special characters. For details, refer to the display current-configuration command in Configuration File Management Command.
Description
Use the display ipv6 neighbors command to display neighbor information.
You can use the reset ipv6 neighbors command to clear specific IPv6 neighbor information.
Related commands: ipv6 neighbor, reset ipv6 neighbors.
Examples
# View all neighbor information.
<Sysname> display ipv6 neighbors all
Type: S-Static D-Dynamic
IPv6 Address Link-layer VID Interface State T Age
2008::110 0015-e9ac-69b6 1 GE1/1/2 REACH S -
FE80::215:E9FF:FEAC:69B6 0015-e9ac-69b6 1 GE1/1/2 STALE D 22
FE80::20F:E2FF:FE00:2201 000f-e200-2201 1 GE1/1/2 STALE D 28
2008::3610 000f-e200-2201 1 GE1/1/2 STALE D 28
Table 1-6 Description on the fields of the display ipv6 neighbors command
Field |
Description |
IPv6 Address |
IPv6 address of a neighbor |
Link-layer |
Link layer address (MAC address of a neighbor) |
VID |
ID of the VLAN to which the interface connected to a neighbor belongs |
Interface |
Interface connected to a neighbor |
State |
State of a neighbor, which can be: l INCMP: Address resolution is in progress, so the link layer address of the neighbor is unknown yet. l REACH: The neighbor is reachable. l STALE: The reachability to the neighbor is unknown. The device does not verify the reachability to the neighbor unless it sends a packet to the neighbor. l DELAY: The reachability to the neighbor is unknown. The device will send a neighbor request message after a delay time. l PROBE: The reachability to the neighbor is unknown. The device sent a neighbor request message to verify the reachability. |
T |
Type of neighbor information, including S (static configuration) and D (dynamic acquisition). |
Age |
l For a static entry, “-“ is displayed. l For a dynamic entry, the time (in seconds) since it is reachable last time is displayed, and if it is never reachable, “#” is displayed (for a dynamic neighbor only). |
display ipv6 neighbors count
Syntax
display ipv6 neighbors { all | dynamic | static | interface interface-type interface-number | vlan vlan-id } count
View
Any view
Parameters
all: Displays the total number of all neighbor entries, including neighbor entries acquired dynamically and configured statically.
dynamic: Displays the total number of all neighbor entries acquired dynamically.
static: Displays the total number of all neighbor entries configured statically.
interface interface-type interface-number: Displays the total number of neighbor entries of a specified interface.
vlan vlan-id: Displays the total number of neighbor entries of a specified VLAN, in the range of 1 to 4,094.
count: Number of neighbor entries.
Description
Use the display ipv6 neighbors count command to display the total number of neighbor entries satisfying the specified condition.
Examples
# Display the total number of neighbor entries acquired dynamically.
<Sysname> display ipv6 neighbors dynamic count
Total dynamic entry(ies): 3
display ipv6 route-table
Syntax
display ipv6 route-table [ verbose ]
View
Any view
Parameters
verbose: Displays detailed information about the IPv6 routing table.
Description
Use the display ipv6 route-table command to display brief information about the routing table, including the destination IP address, prefix length, type of protocol, next hop, egress interface, and so on. In this case, only the valid route entries are displayed,
Use the display ipv6 route-table verbose command to display detailed information about the routing table. In this case, both valid routes and invalid routes are displayed.
Examples
# Display summary information about the routing table.
<Sysname> display ipv6 route-table
Routing Table:
Destinations : 4 Routes : 4
Destination: ::1/128 Protocol: Direct
NextHop : ::1
Interface : InLoopBack0
Destination: 2008::/64 Protocol: Direct
NextHop : 2008::32
Interface : Vlan-interface1
Destination: 2008::32/128 Protocol: Direct
NextHop : ::1
Interface : InLoopBack0
Destination: FE80::/10 Protocol: Direct
NextHop : ::
Interface : NULL0
Table 1-7 Description on the fields of the display ipv6 route-table command
Field |
Description |
Destinations |
Number of reachable destination networks/hosts |
Routes |
Number of routing entries |
Destination |
Destination network/host IPv6 address. The part following “/” indicates the prefix length. |
Protocol |
Routing protocol discovering the route |
NextHop |
Next hop address |
Interface |
Egress interface, through which a packet is sent. |
# Display detailed information about the routing table.
<Sysname> display ipv6 route-table verbose
Routing Table:
Destinations : 2 Routes : 2
Destination: :: PrefixLength: 0
NextHop : 1:1:4::1 Protocol : Static
Interface : Vlan-interface1 State : Active
Destination: ::1 PrefixLength: 128
NextHop : ::1 Protocol : Direct
Interface : InLoopBack0 State : Active
Table 1-8 Description on the fields of the display ipv6 route-table verbose command
Field |
Description |
Destinations |
Number of reachable destination networks/hosts |
Routes |
Number of routing entries |
Destination |
Destination network/host IPv6 address. |
PrefixLength |
Prefix length of the destination IPv6 address |
NextHop |
Next hop address |
Protocol |
Routing protocol discovering the route |
Interface |
Egress interface |
State |
Routing entry state: Active (valid route) or Inactive (invalid route). |
display ipv6 socket
Syntax
display ipv6 socket [ socktype socket-type ] [ task-id socket-id ]
View
Any view
Parameters
socket-type: Type of a socket, in the range of 1 to 3. The value “1” represents a TCP socket, “2” a UDP socket, and “3” a raw IP socket.
task-id: ID of a task, in the range of 1 to 100.
socket-id: ID of a socket, in the range of 0 to 3072.
Description
Use the display ipv6 socket command to display information related to a specified socket.
With no argument specified, this command displays the information about all the sockets; with only the socket type specified, the command displays the information about sockets of the specified type; with the socket type, task ID and socket ID specified, the command displays the information about the specified socket.
Examples
# Display information related to a specified socket.
SOCK_STREAM:
Task = VTYD(43), socketid = 1, Proto = 6,
LA = ::->23, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEADDR SO_KEEPALIVE SO_REUSEPORT SO_SETKEEPALIVE,
socket state = SS_PRIV SS_ASYNC
SOCK_DGRAM:
SOCK_RAW:
Table 1-9 Description on the fields of the display ipv6 socket command
Field |
Description |
SOCK_STREAM |
Socket type, which can be: l SOCK_STREAM: Refers to TCP. l SOCK_DGRAM: Refers to UDP. l SOCK_RAW: Refers to raw IP. |
Task |
Task name and ID of the created socket |
socketid |
ID assigned by the kernel to the created socket |
Proto |
Protocol ID |
LA |
Local address and local port number |
FA |
Remote address and remote port number |
sndbuf |
Size of the sending buffer |
rcvbuf |
Size of the receiving buffer |
sb_cc |
Number of bytes sent by the sending buffer |
rb_cc |
Number of bytes received by the receiving buffer |
socket option |
Socket option set by the application |
socket state |
State of the socket |
SOCK_DGRAM |
UDP socket |
SOCK_RAW |
Raw IP socket |
display ipv6 statistics
Syntax
display ipv6 statistics
View
Any view
Parameters
None
Description
Use the display ipv6 statistics command to display statistics of IPv6 packets and ICMPv6 packets.
You can use the reset ipv6 statistics command to clear all IPv6 and ICMPv6 packet statistics.
Examples
# View the statistics of IPv6 packets and IPv6 ICMP packets.
<Sysname> display ipv6 statistics
IPv6 Protocol:
Sent packets:
Total: 580
Local sent out: 550 forwarded: 0
raw packets: 30 discarded: 0
routing failed: 0 fragments: 0
fragments failed: 0
Received packets:
Total: 572
local host: 572 hopcount exceeded: 0
format error: 0 option error: 0
protocol error: 0 fragments: 0
reassembled: 0 reassembly failed: 0
reassembly timeout: 0
ICMPv6 protocol:
Sent packets:
Total: 132
unreached: 0 too big: 0
hopcount exceeded: 0 reassembly timeout: 0
parameter problem: 0
echo request: 30 echo replied: 17
neighbor solicit: 43 neighbor advert: 42
router solicit: 0 router advert: 0
redirected: 0
Send failed:
ratelimited: 0 other errors: 0
Received packets:
Total: 126
checksum error: 0 too short: 0
bad code: 0
unreached: 10 too big: 0
hopcount exceeded: 0 reassembly timeout: 0
parameter problem: 0 unknown error type: 0
echoed: 17 echo replied: 30
neighbor solicit: 34 neighbor advert: 35
router solicit: 0 router advert: 0
redirected: 0 router renumbering: 0
unknown info type: 0
Deliver failed:
bad length: 0 ratelimited: 0
Table 1-10 Description on the fields of the display ipv6 statistics command
Field |
Description |
IPv6 Protocol: |
Statistics of IPv6 packets |
Sent packets: Total: 580 Local sent out: 550 forwarded: 0 raw packets: 0 discarded: 0 routing failed: 0 fragments: 0 fragments failed: 0 |
Statistics of sent IPv6 packets, including: l Total number of sent packets l Number of packets sent locally l Number of forwarded packets l Number of packets sent via raw socket l Number of discarded packets l Number of packets with routing failure l Number of sent fragment packets l Number of fragment sending failures |
Received packets: Total: 572 local host: 572 hopcount exceeded: 0 format error: 0 option error: 0 protocol error: 0 fragments: 0 reassembled: 0 reassembly failed: 0 reassembly timeout: 0 |
Statistics of received IPv6 packets, including: l Total number of received packets l Number of packets received locally l Number of packets exceeding the hops l Number of packets in an incorrect format l Number of packets with incorrect options l Number of packets with incorrect protocol l Number of received fragment packets l Number of reassembled packets l Number of packets whose reassembly fails l Number of packets whose reassembly times out |
ICMPv6 protocol: |
Statistics of ICMPv6 packets |
Sent packets: Total: 132 unreached: 0 too big: 0 hopcount exceeded: 0 reassembly timeout: 0 parameter problem: 0 echo request: 30 echo replied: 17 neighbor solicit: 43 neighbor advert: 42 router solicit: 0 router advert: 0 redirected: 0 Send failed: ratelimited: 0 other errors: 0 |
Statistics of sent ICMPv6 packets, including: l Total number of sent packets l Number of packets whose destination is unreachable l Number of too large packets l Number of packets exceeding the hop limit l Number of packets whose fragmentation and reassembly time out l Number of packets with parameter errors l Number of request packets l Number of response packets l Number of neighbor solicitation packets l Number of neighbor advertisement packets l Number of router solicit packets l Number of router advertisement packets l Number of redirected packets l Number of packets failing to be sent because of rate limitation l Number of packets with other errors |
Received packets: Total: 126 checksum error: 0 too short: 0 bad code: 0 unreached: 10 too big: 0 hopcount exceeded: 0 reassembly timeout: 0 parameter problem: 0 unknown error type: 0 echoed: 17 echo replied: 30 neighbor solicit: 34 neighbor advert: 35 router solicit: 0 router advert: 0 redirected: 0 router renumbering: 0 unknown info type: 0 Deliver failed: bad length: 0 ratelimited: 0 |
Statistics of received ICMPv6 packets, including: l Total number of received packets l Number of packets with checksum errors l Number of too small packets l Number of packets with error codes l Number of packets whose destination is unreachable l Number of too large packets l Number of packets exceeding the hop limit l Number of packets whose fragmentation and reassembly time out l Number of packets with parameter errors l Number of packets with unknown errors l Number of request packets l Number of response packets l Number of neighbor solicitation messages l Number of neighbor advertisement packets l Number of router solicitation packets l Number of router advertisement packets l Number of redirected packets l Number of packets recounted by the router l Number of unknown information type of packets l Number of packets with a incorrect size l Number of packets failing to be received because of rate limitation |
display tcp ipv6 statistics
Syntax
display tcp ipv6 statistics
View
Any view
Parameters
None
Description
Use the display tcp ipv6 statistics command to display statistics of IPv6 TCP packets.
You can use the reset tcp ipv6 statistics command to clear statistics of all IPv6 TCP packets.
Examples
# View the statistics of received and sent IPv6 TCP packets.
<Sysname> display tcp ipv6 statistics
Received packets:
Total: 436
packets in sequence: 182 (327 bytes)
window probe packets: 0, window update packets: 0
checksum error: 0, offset error: 0, short error: 0
duplicate packets: 0 (0 bytes), partially duplicate packets: 0 (0 bytes)
out-of-order packets: 3 (0 bytes)
packets with data after window: 0 (0 bytes)
packets after close: 0
ACK packets: 239 (6141 bytes)
duplicate ACK packets: 69, too much ACK packets: 0
Sent packets:
Total: 331
urgent packets: 0
control packets: 5 (including 0 RST)
window probe packets: 0, window update packets: 0
data packets: 306 (6135 bytes) data packets retransmitted: 0 (0 bytes)
ACK only packets: 20 (14 delayed)
Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0
Keepalive timeout: 66, keepalive probe: 66, Keepalive timeout, so connections disconnected : 0
Initiated connections: 2, accepted connections: 3, established connections: 3
Closed connections: 5 (dropped: 0, initiated dropped: 2)
Table 1-11 Description on the fields of the display tcp ipv6 statistics command
Field |
Description |
Received packets: Total: 436 packets in sequence: 182 (327 bytes) window probe packets: 0, window update packets: 0 checksum error: 0, offset error: 0, short error: 0 duplicate packets: 0 (0 bytes), partially duplicate packets: 0 (0 bytes) out-of-order packets: 3 (0 bytes) packets with data after window: 0 (0 bytes) packets after close: 0 ACK packets: 239 (6141 bytes) duplicate ACK packets: 69, too much ACK packets: 0 |
Statistics of received packets, including: l Total number of received packets l Number of packets received in sequence l Number of window probe packets l Number of window size update packets l Number of packets with checksum errors l Number of packets with offset errors l Number of packets whose total length is less than that specified by the packet header l Number of duplicate packets l Number of partially duplicate packets l Number of out-of-order packets l Number of packets exceeding the receiving window size l Number of packets after the connection is closed l Number of ACK packets l Number of duplicate ACK packets l Number of excessive ACK packets |
Sent packets: Total: 331 urgent packets: 0 control packets: 5 (including 0 RST) window probe packets: 0, window update packets: 0 data packets: 306 (6135 bytes) data packets retransmitted: 0 (0 bytes) ACK only packets: 20 (14 delayed) |
Statistics of sent packets, including: l Total number of packets l Number of packets containing an urgent indicator l Number of control packets l Number of window probe packets l Number of window update packets l Number of data packets l Number of retransmitted packets l Number of ACK only packets |
Retransmitted timeout |
Number of packets whose retransmission times out |
connections dropped in retransmitted timeout |
Number of connections dropped because of retransmission timeout |
Keepalive timeout |
Number of keepalive timeouts |
Keepalive probe |
Number of keepalive probes |
Keepalive timeout, so connections disconnected |
Number of connections dropped because of keepalive response timeout |
Initiated connections |
Number of initiated connections |
accepted connections |
Number of accepted connections |
established connections |
Number of established connections |
Closed connections |
Number of closed connections |
dropped |
Number of dropped connections (after receiving SYN from the peer) |
initiated dropped |
Number of connection failures (before receiving SYN from the peer) |
display tcp ipv6 status
Syntax
display tcp ipv6 status
View
Any view
Parameters
None
Description
Examples
# View the IPv6 TCP connection status.
<Sysname> display tcp ipv6 status
TCP6CB Local Address Foreign Address State
83a9fba4 ::->23 ::->0 Listening
Table 1-12 Description on the fields of the display tcp ipv6 status command
Field |
Description |
TCP6CB |
IPv6 address of the TCP control block (hexadecimal) |
Local Address |
Local IPv6 address |
Foreign Address |
Remote IPv6 address |
State |
TCP connection status, including: Closed, Listening, Syn_Sent, Syn_Rcvd, Established, Close_Wait, Fin_Wait1, Closing, Last_Ack, Fin_Wait2, Time_Wait |
display udp ipv6 statistics
Syntax
display udp ipv6 statistics
View
Any view
Parameters
None
Description
Use the display udp ipv6 statistics command to display statistics of IPv6 UDP packets.
You can use the reset udp ipv6 statistics command to clear statistics of all IPv6 UDP packets.
Examples
# View statistics of IPv6 UDP packets.
<Sysname> display udp ipv6 statistics
Received packets:
Total: 10
checksum error: 0
shorter than header: 0, data length larger than packet: 0
unicast(no socket on port): 0
broadcast/multicast(no socket on port): 0
not delivered, input socket full: 0
input packets missing pcb cache: 0
Sent packets:
Total: 21
Table 1-13 Description on the fields of the display udp ipv6 statistics command
Field |
Description |
Total |
Total number of received/sent packets |
checksum error |
Total number of packets with an invalid checksum |
shorter than header |
Total number of IPv6 UDP packets whose total length is less than that specified by the packet header |
data length larger than packet |
Total number of packets whose data length exceeds that specified by the packet header |
unicast(no socket on port) |
Total number of received unicast packets without any socket on a port |
broadcast/multicast(no socket on port) |
Total number of received broadcast/multicast packets without any socket on a port |
not delivered, input socket full |
Number of packets not handled because of the receiving buffer being full |
input packet missing pcb cache |
Number of packets that do not match any entry in the PCB cache |
dns server ipv6
Syntax
dns server ipv6 ipv6-address [ interface-type interface-number ]
undo dns server ipv6 ipv6-address [ interface-type interface-number ]
View
VLAN interface view
Parameters
ipv6-address: IPv6 address of a DNS server.
interface-type interface-number: Interface type and interface number. It is required when the IPv6 address of the specified DNS server is a link-local address.
Description
Use the dns server ipv6 command to configure an IPv6 address for a DNS server.
Use the undo dns server ipv6 command to remove the configured DNS server.
By default, no DNS server is configured.
Examples
# Configure the IPv6 address 2002::1 for a DNS server.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dns server ipv6 2002::1
ipv6 address
Syntax
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]
View
Interface view
Parameters
prefix-length: Prefix length of an IPv6 address, in the range of 1 to 128.
Description
Use the ipv6 address command to configure a site-local address or global unicast address manually for an interface.
Use the undo ipv6 address command to remove the manually configured interface address.
By default, no site-local address or global unicast address is configured for an interface.
Note that:
l An H3C S3600 Ethernet switch can have IPv6 unicast addresses configured on only one VLAN interface. The total number of IPv6 global unicast addresses and site-local addresses configured on an interface can be up to four.
l You will remove all IPv6 addresses except the automatically configured link-local address if you carry out the undo ipv6 address command without any parameter specified.
Examples
# Set the aggregatable global IPv6 unicast address of VLAN-interface 1 to 2001::1 with prefix length 64.
Method I:
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address 2001::1/64
Method II:
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address 2001::1 64
ipv6 address auto link-local
Syntax
ipv6 address auto link-local
undo ipv6 address auto link-local
View
VLAN interface view
Parameters
None
Description
Use the undo ipv6 address auto link-local command to remove the automatically generated link-local address for an interface.
By default, a link-local address is generated automatically after a site-local IPv6 address or global unicast address is configured for an interface.
Note that:
l After an IPv6 site-local address or aggregatable global unicast address is configured for an interface, a link-local address is generated automatically. The automatically generated link-local address is the same as the one generated by using the ipv6 address auto link-local command.
l The undo ipv6 address auto link-local command can be used only after the ipv6 address auto link-local command is executed. However, if an IPv6 site-local address or aggregatable global unicast address is already configured for an interface, the interface still has a link-local address because the system automatically generates one for the interface. If no IPv6 site-local address or aggregatable global unicast address is configured, the interface has no link-local address.
l Manual assignment takes precedence over automatic generation. That is, if you first adopt automatic generation and then manual assignment, the manually assigned link-local address will overwrite the automatically generated one. If you first adopt manual assignment and then automatic generation, the automatically generated link-local address will not take effect and the link-local address of an interface is still the manually assigned one. If you delete the manually assigned address, the automatically generated link-local address is validated. For manually assignment of an IPv6 link-local address, refer to the ipv6 address link-local command.
Examples
# Configure the VLAN-interface 1 to automatically generate a link-local address.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address auto link-local
ipv6 address eui-64
Syntax
ipv6 address ipv6-address/prefix-length eui-64
undo ipv6 address ipv6-address/prefix-length eui-64
View
VLAN interface view
Parameters
ipv6-address/prefix-length: IPv6 address and IPv6 prefix. The ipv6-address and prefix-length arguments jointly specify the prefix of an IPv6 address in the EUI-64 format. The prefix length of an EUI-64 address cannot be greater than 64.
Description
Use the ipv6 address eui-64 command to configure a site-local address or global unicast address in the EUI-64 format for an interface.
Use the undo ipv6 address eui-64 command to remove the configured site-local address or global unicast address in the EUI-64 format for an interface.
By default, no site-local address or global unicast address in the EUI-64 format is configured on the interface.
An IPv6 address in the EUI-64 format consists of a specific prefix and the MAC address of the local device, which can be displayed using the display ipv6 interface command.
Note that:
The prefix length should not be more than 64 bits when a aggregatable global unicast address(es) or site-local address(es) in the EUI-64 format is configured.
Examples
# Configure an IPv6 address in the EUI-64 format for the VLAN-interface 1. The prefix of the address is 2001::1/64, and the interface ID is generated based on the MAC address of the device.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address 2001::1/64 eui-64
# Display the generated IPv6 address in the EUI-64 format.
[Sysname-Vlan-interface1] display ipv6 interface Vlan-interface 1
Vlan-interface1 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE00:3100
Global unicast address(es):
2001::2E0:FCFF:FE00:3100, subnet is 2001::/64
Joined group address(es):
FF02::1:FF00:3100
FF02::1
MTU is 1500 bytes
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND retransmit interval is 1000 milliseconds
Hosts use stateless autoconfig for addresses
# Configure VLAN-interface 1 to generate an IPv6 address in the EUI-64 format based on the prefix 3001::/64.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address 3001::/64 eui-64
ipv6 address link-local
Syntax
ipv6 address ipv6-address link-local
undo ipv6 address ipv6-address link-local
View
VLAN interface view
Parameters
ipv6-address: IPv6 link-local address. The first ten bits of an address must be 1111111010 (binary), that is, the first group of hexadecimals in the address must be FE80 to FEBF.
Description
Use the ipv6 address link-local command to configure a link-local address manually for a specified interface.
Use the undo ipv6 address link-local command to remove the configured link-local address for an interface.
Note that:
Manual assignment takes precedence over automatic generation. That is, if you first adopt automatic generation and then manual assignment, the manually assigned link-local address will overwrite the automatically generated one. If you first adopt manual assignment and then automatic generation, the automatically generated link-local address will not take effect and the link-local address of an interface is still the manually assigned one. If you delete the manually assigned address, the automatically generated link-local address is validated. For automatic generation of an IPv6 link-local address, refer to the ipv6 address auto link-local command.
Examples
# Configure a link-local address for the VLAN-interface 1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address fe80::1 link-local
ipv6 host
Syntax
ipv6 host hostname ipv6-address
undo ipv6 host hostname [ ipv6-address ]
View
System view
Parameters
hostname: Host name, a string of up to 20 characters. The character string can contain letters, numerals, “_”, “-“, or “.” and must contain at least one letter.
ipv6-address: IPv6 address.
Description
Use the ipv6 host command to configure the mapping between host name and IPv6 address.
Use the undo ipv6 host command to remove the mapping between host name and IPv6 address.
Each host name can correspond to only one IPv6 address. A newly configured IPv6 address will overwrite the previous one.
Related commands: display ipv6 host.
Examples
# Configure the mapping between host name and IPv6 address.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ipv6 host aaa 2001::1
ipv6 icmp-error
Syntax
ipv6 icmp-error { bucket bucket-size | ratelimit interval }*
undo ipv6 icmp-error
View
System view
Parameters
bucket-size: Number of tokens in a token bucket, in the range of 1 to 200. The default value is 10.
interval: Update period of the token bucket in milliseconds, in the range of 0 to 2,147,483,647.
Description
Use the ipv6 icmp-error command to configure the maximum number of IPv6 ICMP error packets sent within a specified time.
Use the undo ipv6 icmp-error command to restore the update period and the capacity of the token bucket to the defaults.
By default, the size is 10 and the update period is 100 milliseconds. That is, at most 10 IPv6 ICMP error packets can be sent within 100 milliseconds.
Examples
# Set the capacity of the token bucket to 50 and the update period to 100 milliseconds. That is, at most 50 IPv6 ICMP error packets can be sent within 100 milliseconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ipv6 icmp-error bucket 50 ratelimit 100
ipv6 nd dad attempts
Syntax
ipv6 nd dad attempts value
undo ipv6 nd dad attempts
View
VLAN interface view
Parameters
value: Number of attempts to send a neighbor solicitation message for duplicate address detection, in the range of 0 to 600. The default value is “1”. When it is set to 0, the duplicate address detection is disabled.
Description
Use the ipv6 nd dad attempts command to configure the attempts to send a neighbor solicitation message for duplicate address detection.
Use the undo ipv6 nd dad attempts command to restore the attempts to send a neighbor solicitation message for duplicate address detection to the default.
By default, the number of attempts to send a neighbor solicitation message for duplicate address detection is 1.
Related commands: display ipv6 interface.
Examples
# Set the attempts to send a neighbor solicitation message for duplicate address detection to 20.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 nd dad attempts 20
ipv6 nd hop-limit
Syntax
ipv6 nd hop-limit value
undo ipv6 nd hop-limit
View
System view
Parameters
value: Number of hops, in the range of 0 to 255.
Description
Use the ipv6 nd hop-limit command to configure the hop limit of ICMPv6 reply packets.
Use the undo ipv6 nd hop-limit command to restore the default.
By default, the hop limit of ICMPv6 reply packets is 64.
Examples
# Set the hop limit of ICMPv6 reply packets to 100.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ipv6 nd hop-limit 100
ipv6 nd ns retrans-timer
Syntax
ipv6 nd ns retrans-timer value
undo ipv6 nd ns retrans-timer
View
VLAN interface view
Parameters
value: Interval for retransmitting an NS message in milliseconds, in the range of 1,000 to 3,600,000.
Description
Use the ipv6 nd ns retrans-timer command to set the interval for retransmitting an NS message.
Use the undo ipv6 nd ns retrans-timer command to restore the interval for retransmitting an NS message to the default.
By default, the local interface sends NS messages at intervals of 1,000 milliseconds
Related commands: display ipv6 interface.
Examples
# Specify the VLAN-interface 1 to send an NS message at intervals of 10,000 milliseconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 nd ns retrans-timer 10000
ipv6 nd nud reachable-time
Syntax
ipv6 nd nud reachable-time value
undo ipv6 nd nud reachable-time
View
VLAN interface view
Parameters
value: Neighbor reachable time in milliseconds, in the range of 1 to 3,600,000.
Description
Use the ipv6 nd nud reachable-time command to configure the neighbor reachable time on an interface.
Use the undo ipv6 nd nud reachable-time command to restore the default.
By default, the neighbor reachable time on the local interface is 30,000 milliseconds.
Related commands: display ipv6 interface.
Examples
# Set the neighbor reachable time on the VLAN-interface 1 to 10,000 milliseconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 nd nud reachable-time 10000
ipv6 neighbor
Syntax
ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number | interface interface-type interface-number }
undo ipv6 neighbor ipv6-address interface-type interface-number
View
System view
Parameters
ipv6-address: IPv6 address in a static neighbor entry.
mac-address: Link layer address in a static neighbor entry (48 bits long, in the format of H-H-H).
vlan-id: VLAN ID corresponding to a static neighbor entry, in the range of 1 to 4094.
port-type port-number: Ethernet port type and port number corresponding to a static neighbor entry.
interface-type interface-number: VLAN interface type and interface number corresponding to a static neighbor entry.
Description
Use the ipv6 neighbor command to configure a static neighbor entry.
Use the undo ipv6 neighbor command to remove a static neighbor entry.
Note that:
You can configure a static neighbor entry in two ways:
l Mapping a VLAN interface to an IPv6 address and a link-layer address. The entry state is INCMP. After the switch get the layer 2 port information of the VLAN, the neighbor entry enters the REACH state.
l Mapping a Layer 2 port in a VLAN to an IPv6 address and a link-layer address. The Layer 2 port specified by the port-type port-number argument must belong to the VLAN specified by the vlan-id argument, and the corresponding VLAN interface must exist. After you carry out the command, the device relates the VLAN interface to the IPv6 address to uniquely identify a static neighbor entry which is in REACH state.
You only need to specify the corresponding VLAN interface when removing a static neighbor entry related to that VLAN interface.
Related commands: display ipv6 neighbors.
Examples
# Configure a static neighbor entry for Ethernet 1/0/1 of VLAN 1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ipv6 neighbor 2000::1 fe-e0-89 1 Ethernet 1/0/1
ipv6 neighbors max-learning-num
Syntax
ipv6 neighbors max-learning-num number
undo ipv6 neighbors max-learning-num
View
VLAN interface view
Parameters
number: Maximum number of neighbors that can be dynamically learned by an interface, in the range of 1 to 2048.
Description
Use the ipv6 neighbors max-learning-num command to configure the maximum number of neighbors that can be dynamically learned on a specified interface.
Use the undo ipv6 neighbors max-learning-num command to restore the configuration to the default.
By default, the maximum number is 1024.
Examples
# Set the maximum number of neighbors that can be dynamically learned on the interface VLAN-interface 1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ipv6 neighbors max-learning-num 10
ipv6 route-static
Syntax
ipv6 route-static ipv6-address prefix-length [ interface-type interface-number] nexthop-address
undo ipv6 route-static ipv6-address prefix-length
View
System view
Parameters
ipv6-address prefix-length: Destination IPv6 address and prefix length.
interface-type interface-number: Type of egress interface and interface number.
nexthop-address: IPv6 address of the next hop.
Description
Use the Ipv6 route-static command to configure a static IPv6 route.
Use the undo ipv6 route-static command to remove a static IPv6 route.
By default, no IPv6 static route is configured.
If you specify the destination IP address of an IPv6 static route as ::/0, the route configured becomes a default IPv6 route. If the destination IP address of a packet does not match any entry in the routing table, the device will use a default IPv6 route to forward the IPv6 packet.
Related commands: display ipv6 route-table.
Examples
# Configure a static IPv6 route, with the destination address of 1:1:2::/48 and the next hop address of 1:1:3::1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ipv6 route-static 1:1:2:: 48 1:1:3::1
# Configure a static IPv6 route, with the next hop address of 1:1:4::1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ipv6 route-static :: 0 1:1:4::1
reset dns ipv6 dynamic-host
Syntax
reset dns ipv6 dynamic-host
View
User view
Parameters
None
Description
Use the reset dns ipv6 dynamic-host command to clear IPv6 dynamic domain name cache information.
You can use the display dns ipv6 dynamic-host command to display the current IPv6 dynamic domain name cache information.
Examples
# Clear IPv6 dynamic domain name cache information.
<Sysname> reset dns ipv6 dynamic-host
reset ipv6 neighbors
Syntax
reset ipv6 neighbors [ all | dynamic | interface interface-type interface-number | static ]
View
User view
Parameters
all: Clears the static and dynamic neighbor information on all interfaces.
dynamic: Clears the dynamic neighbor information on all interfaces.
interface interface-type interface-number: Clears all neighbor information of a specified interface.
static: Clears the static neighbor information on all interfaces.
Description
Use the reset ipv6 neighbors command to clear IPv6 neighbor information.
You can use the display ipv6 neighbors command to display the current IPv6 neighbor information.
Examples
# Clear all neighbor information on all interfaces.
<Sysname> reset ipv6 neighbors all
# Clear dynamic neighbor information on all interfaces.
<Sysname> reset ipv6 neighbors dynamic
# Clear all neighbor information on VLAN-interface 1.
<Sysname> reset ipv6 neighbors interface Vlan-interface 1
reset ipv6 statistics
Syntax
reset ipv6 statistics
View
User view
Parameters
None
Description
Use the reset ipv6 statistics command to clear the statistics of IPv6 and ICMPv6 packets.
You can use the display ipv6 statistics command to display the statistics of IPv6 and ICMPv6 packets.
Examples
# Clear the statistics of IPv6 packets.
<Sysname> reset ipv6 statistics
reset tcp ipv6 statistics
Syntax
reset tcp ipv6 statistics
View
User view
Parameters
None
Description
Use the reset tcp ipv6 statistics command to clear the statistics of all IPv6 TCP packets.
You can use the display tcp ipv6 statistics command to display the statistics of IPv6 TCP packets.
Examples
# Clear the statistics of all IPv6 TCP packets.
<Sysname> reset tcp ipv6 statistics
reset udp ipv6 statistics
Syntax
reset udp ipv6 statistics
View
User view
Parameters
None
Description
Use the reset udp ipv6 statistics command to clear the statistics of all IPv6 UDP packets.
You can use the display udp ipv6 statistics command to display the statistics of IPv6 UDP packets.
Examples
# Clear the statistics of all IPv6 UDP packets.
<Sysname> reset udp ipv6 statistics
tcp ipv6 timer fin-timeout
Syntax
tcp ipv6 timer fin-timeout wait-time
undo tcp ipv6 timer fin-timeout
View
System view
Parameters
wait-time: Length of the finwait timer of IPv6 TCP packets in seconds, in the range of 76 to 3,600.
Description
Use the tcp ipv6 timer fin-timeout command to set the finwait timer of IPv6 TCP packets
Use the undo tcp ipv6 timer fin-timeout command to restore the finwait timer length to the default.
By default, the length of the finwait timer is 675 seconds.
Examples
# Set the finwait timer length of IPv6 TCP packets to 800 seconds.
<Sysname> system-view
[Sysname] tcp ipv6 timer fin-timeout 800
tcp ipv6 timer syn-timeout
Syntax
tcp ipv6 timer syn-timeout wait-time
undo tcp ipv6 timer syn-timeout
View
System view
Parameters
wait-time: Length of the synwait timer of IPv6 TCP packets in seconds, in the range of 2 to 600.
Description
Use the tcp ipv6 timer syn-timeout command to set the synwait timer of IPv6 TCP packets
Use the undo tcp ipv6 timer syn-timeout command to restore the synwait timer length to the default.
By default, the length of the synwait timer of IPv6 TCP packets is 75 seconds.
Examples
# Set the synwait timer length of IPv6 TCP packets to 800 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] tcp ipv6 timer syn-timeout 800
tcp ipv6 window
Syntax
tcp ipv6 window size
undo tcp ipv6 window
View
System view
Parameters
size: size of IPv6 TCP receiving/sending buffer in KB (kilobyte), in the range of 1 to 32.
Description
Use the tcp ipv6 window command to set the size of IPv6 TCP receiving/sending buffer.
Use the undo tcp ipv6 window command to restore the size of IPv6 TCP receiving/sending buffer to the default.
By default, the size of the IPv6 TCP packet buffer is 8 KB.
Examples
# Set the size of IPv6 TCP receiving/sending buffer to 4 KB.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] tcp ipv6 window 4
IPv6 Application Configuration Commands
ping ipv6
Syntax
ping ipv6 [ -a source-ipv6-address | -c count | -m interval | -s packet-size | -t timeout ]* remote-system [ -i interface-type interface-number ]
View
Any view
Parameters
-a source-ipv6-address: Specifies source IPv6 address.
-c count: Specifies the number of packets sent for requesting ICMPv6 echo, ranging from 1 to 4294967295, with the default of 5.
-m interval: Specifies the time intervals in milliseconds to send packets for ICMPv6 echo, ranging from 1 to 65,535, with the default of 200 milliseconds.
l If a response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the actual response period plus the value of interval.
l If no response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the timeout value plus the value of interval.
-s packet-size: Specifies the size in bytes of packets sent for requesting ICMPv6 echo, ranging from 20 to 8,100, with the default of 56 bytes.
-t timeout: Specifies the timeout in milliseconds of receiving ICMPv6 echoes, ranging from 0 to 65,535, with the default of 2,000 milliseconds.
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
-i interface-type interface-number: Specifies the type and number of an outgoing interface. This argument takes effect only when the destination address is a link-local address and the specified outgoing interface has a link-local address.
Description
Use the ping ipv6 command to test whether the destination is accessible.
The following information will be output:
l A reply to each ICMPv6 echo request. If no ICMPv6 reply is received within the timeout time, “Request time out” is displayed; otherwise, the number of data bytes of each reply, packet sequence number, TTL, and round-trip response time are displayed.
l Statistics, including the numbers of sent packets, received packets, packet loss percentage, and the minimum/average/maximum response time.
After you execute the ping ipv6 command, you can press Ctrl+C to terminate the ping operation.
Examples
# Test whether destination 2001::1 is accessible.
PING 2001::1 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 20 ms
Reply from 2001::1
bytes=56 Sequence=2 hop limit=64 time = 0 ms
Reply from 2001::1
bytes=56 Sequence=3 hop limit=64 time = 0 ms
Reply from 2001::1
bytes=56 Sequence=4 hop limit=64 time = 0 ms
Reply from 2001::1
bytes=56 Sequence=5 hop limit=64 time = 0 ms
--- 2001::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 0/4/20 ms
Table 2-1 Description on the fields of the ping ipv6 command
Field |
Description |
PING 2001::1 |
Verify whether the device at 2001::1 is reachable |
56 data bytes |
Number of bytes in the ICMPv6 echo request |
press CTRL_C to break |
Press Ctrl + C to terminate the ping operation after the ping ipv6 command is executed. |
Reply from 2001::1 |
An ICMPv6 reply message is received from the device at 2001::1. If no ICMPv6 reply is received within the timeout time, “Request time out” is displayed. |
bytes= |
Number of data bytes in the ICMPv6 reply message |
Sequence= |
Packet sequence number |
hop limit= |
TTL in the ICMP reply message, similar to the TTL in the output information of IPv4 ping operations. |
time = |
Round-trip response time |
--- 2001::1 ping statistics --- |
Statistics obtained by pinging the IPv6 address 2001::1 |
5 packet(s) transmitted |
Number of sent packets |
5 packet(s) received |
Number of received packets |
0.00% packet loss |
Packet loss percentage |
round-trip min/avg/max = 0/4/20 ms |
Minimum/average/maximum response time, in milliseconds. |
telnet ipv6
telnet ipv6 remote-system [ -i interface-type interface-number ] [ port-number ]
View
User view
Parameters
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
-i interface-type interface-number: Specifies the type and number of an outgoing interface. This argument takes effect only when the destination address is a link-local address and the specified outgoing interface has a link-local address.
port-number: Specifies the port number linked with a Telnet server, ranging from 0 to 65535, with the default of 23.
Description
Use the telnet ipv6 command to log onto another device for remote management from the local device. You can break Telnet logging-in by entering <Ctrl+K>.
Examples
# Connect to a remote Telnet server with IPv6 address of 3001::1.
Trying 3001::1 ...
Press CTRL+K to abort
Connected to 3001::1 ...
**************************************************************************
* Copyright(c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
**************************************************************************
<Sysname>
# Telnet to a remote Telnet server with IPv6 address of 2003::5. If the connection fails, “Can't connect to the remote host!” is displayed.
<Sysname> telnet ipv6 2003::5
Trying 2003::5 ...
Press CTRL+K to abort
Can't connect to the remote host!
tftp ipv6
Syntax
tftp ipv6 remote-system [ -i interface-type interface-number ] { get | put } source-filename [ destination-filename ]
View
User view
Parameters
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
-i interface-type interface-number: Specifies the type and number of an interface. This argument takes effect only when the address of the TFTP server is a link-local address and the specified outgoing interface has a link-local address.
get: Specifies to download a file.
put: Specifies to upload a file.
source-filename: Specifies the name of a source file with a string of 1 to 64 letters.
destination-filename: Specifies the name of a destination file with a string of 1 to 64 letters. If no such parameters are specified, then the destination file’s name will be the same as the source file’s.
Description
Use the tftp ipv6 command to perform the following operations:
l Download a file: Download a specified source file from TFTP server to local.
l Upload a file: Upload a specified source file from local to TFTP server.
Examples
# Download a file from TFTP server.
<Sysname> tftp ipv6 fe80::250:daff:fe91:e058 -i Vlan-interface 300 get filetoget
.
File will be transferred in binary mode
Downloading file from remote tftp server, please wait..... received: 4469 bytes in 1.243 seconds.
tracert ipv6
Syntax
tracert ipv6 [ -f first-ttl | -m max-ttl | -p port | -q packet-num | -w timeout ]* remote-system
View
Any view
Parameters
-f first-ttl: Specifies the first TTL, that is, the allowed number of hops for the first packet. Ranges from 1 to 255, defaults to 1, and must be less than the maximum TTL.
-m max-ttl: Specifies the maximum TTL, that is, the maximum allowed number of hops for a packet. The value ranges from 1 to 255, defaults to 30. It must be greater than the first TTL.
-p port: Specifies the port number of the destination UDP, ranging from 1 to 65535, with the default of 33434.
-q packet-num: Specifies the maximum number of packets sent to a hop, ranging from 1 to 65535, with the default of 3.
-w timeout: Specifies the timeout in milliseconds of waiting ICMPv6 echoes, ranging from 1 to 65,535, with the default of 5,000 milliseconds.
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
Description
Use the tracert ipv6 command to trace the route of the IPv6 packets from source to destination.
After using the ping command to detect a network problem, you can use the tracert command to locate the failed network node.
Executing the tracert command displays the IP addresses of all the Layer 3 forwarding devices which forward the packets to the destination on the path; if a device times out, “* * *” is displayed.
You can press Ctrl + C to terminate the tracert operation after the tracert ipv6 command is executed.
Examples
# Trace the route of the IPv6 packets from source to destination 3002::1.
<Sysname> tracert ipv6 3002::1
traceroute to 3002::1 30 hops max,60 bytes packet
1 3003::1 30 ms 0 ms 0 ms
2 3002::1 10 ms 10 ms 0 ms
3 * * *
Table 2-2 Description on the fields of the tracert ipv6 command
Field |
Description |
traceroute to 3002::1 |
Traceroute the device at 3002::1 to view the passed route |
30 hops max |
Maximum hops, which can be configured using the -m argument. |
60 bytes packet |
Number of bytes in a probe packet |
press CTRL_C to break |
Press Ctrl + C to terminate the tracert operation after the tracert ipv6 command is executed. |
1 3003::1 30 ms 0 ms 0 ms |
Probe result for sending packets with TTL 1, including IPv6 address of the device and round-trip response times of three probe packets. The number of probe packets sent each time can be configured using the -q argument. |
3 * * * |
The device three hops away has no response. |