- Table of Contents
-
- H3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)
- 00-1Cover
- 01-Login Command
- 02-Basic System Configuration and Maintenance Command
- 03-File System Management Command
- 04-VLAN Command
- 05-QinQ-BPDU TUNNEL Command
- 06-Port Correlation Configuration Command
- 07-MAC Address Table Management Command
- 08-MSTP Commands
- 09-IP Address and Performance Command
- 10-IPv6 Configuration Command
- 11-Routing Overview Command
- 12-IPv4 Routing Command
- 13-IPv6 Routing Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-Multicast Protocol Command
- 17-ARP Command
- 18-DHCP Command
- 19-ACL Command
- 20-QoS Command
- 21-Port Mirroring Command
- 22-Cluster Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-Information Center Command
- 27-NQA Command
- 28-SSH Terminal Service Command
- 29-UDP Helper Command
- 30-SSL-HTTPS Command
- 31-PKI Command
- 32-PoE-PoE Profile Command
- 33-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
10-IPv6 Configuration Command | 261 KB |
Table of Contents
Chapter 1 IPv6 Configuration Commands
1.1 Basic IPv6 Configuration Commands
1.1.1 display dns ipv6 dynamic-host
1.1.6 display ipv6 neighbors count
1.1.10 display tcp ipv6 statistics
1.1.11 display tcp ipv6 status
1.1.12 display udp ipv6 statistics
1.1.16 ipv6 address auto link-local
1.1.18 ipv6 address link-local
1.1.21 ipv6 nd autoconfig managed-address-flag
1.1.22 ipv6 nd autoconfig other-flag
1.1.25 ipv6 nd ns retrans-timer
1.1.26 ipv6 nd nud reachable-time
1.1.30 ipv6 nd ra router-lifetime
1.1.32 ipv6 neighbors max-learning-num
1.1.35 reset dns ipv6 dynamic-host
1.1.39 reset tcp ipv6 statistics
1.1.40 reset udp ipv6 statistics
1.1.41 tcp ipv6 timer fin-timeout
1.1.42 tcp ipv6 timer syn-timeout
Chapter 2 IPv6 Application Configuration Commands
2.1 IPv6 Application Configuration Commands
Chapter 1 IPv6 Configuration Commands
1.1 Basic IPv6 Configuration Commands
1.1.1 display dns ipv6 dynamic-host
Syntax
display dns ipv6 dynamic-host
View
Any view
Parameter
None
Description
Use the display dns ipv6 dynamic-host command to display IPv6 dynamic domain name cache information.
Example
# Display IPv6 dynamic domain name cache information.
<H3C> display dns ipv6 dynamic-host
No. Domain-name Ipv6 Address TTL
1 aaa 2001::2 6
Table 1-1 Description on fields of the display dns ipv6 dynamic-host command
Field |
Description |
No. |
Sequence number |
Domain-name |
Domain name |
Ipv6 Address |
IPv6 address corresponding to the domain name |
TTL |
Lifetime of a domain name cache information entry in seconds |
1.1.2 display ipv6 fib
Syntax
display ipv6 fib [ ipv6-address ]
View
Any view
Parameter
ipv6-address: IPv6 address. An FIB entry whose destination address is this address will be displayed.
Description
Use the display ipv6 fib command to display FIB entries. If no argument is specified, all FIB entries will be displayed.
Example
# Display all FIB entries.
<H3C> display ipv6 fib
FIB Table:
Total number of Routes : 1
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
Destination: ::1 PrefixLength : 128
NextHop : ::1 Flag : HU
Label : NULL Tunnel ID : 0
TimeStamp : Date- 12:5:2004, Time- 9:15:18
Interface : InLoopBack0
Table 1-2 Description on 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 |
Label |
Label |
Tunnel ID |
ID of a tunnel |
TimeStamp |
Generation time of an FIB entry |
Interface |
Interface from which a packet is forwarded |
1.1.3 display ipv6 host
Syntax
display ipv6 host
View
Any view
Parameter
None
Description
Use the display ipv6 host command to display the mapping between host name and IPv6 address.
Example
# Display the mapping between host name and IPv6 address.
<H3C> display ipv6 host
Host Age Flags IPv6Address (es)
aaa 0 static 2002::1
Table 1-3 Description on 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 |
1.1.4 display ipv6 interface
Syntax
display ipv6 interface [ interface-type interface-number | brief ]
View
Any view
Parameter
interface-type interface-number: Interface type and 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.
When interface-type interface-number is not specified, the IPv6 information of all interfaces for which IPv6 addresses can be configured is displayed.
Example
# Display the IPv6 information of a VLAN interface.
<H3C> 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:5503
Global unicast address(es):
3000::1, subnet is 3000::/64
Joined group address(es):
FF02::1:FF00:1
FF02::1:FF00:5503
FF02::2
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
Table 1-4 Description on fields of the display ipv6 interface command
Field |
Description |
Vlan-interface1 current state |
Physical state of an interface |
Line protocol current state |
Link layer state of an interface |
IPv6 is enabled |
IPv6 forwarding state of an interface (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 |
ND reachable time |
Neighbor reachable time |
ND retransmit interval |
Interval for retransmitting a neighbor solicitation (NS) message |
Hosts use stateless autoconfig for addresses |
Hosts use stateless auto-configuration mode to acquire IPv6 addresses |
#: View the brief IPv6 information of all interfaces.
<H3C> display ipv6 interface brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IPv6 Address
LoopBack0 up up(s) Unassigned
Vlan-interface1 up up 2008::1
Table 1-5 Description on fields of the display ipv6 interface brief command
Field |
Description |
*down |
The interface is down, that is, the interface is disabled by using the shutdown command. |
(s) |
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 |
Physical state of the interface |
Protocol |
Link protocol state of an interface |
IPv6 Address |
IPv6 address of the interface (If no address is configured for the interface, “Unassigned” will be displayed.) |
1.1.5 display ipv6 neighbors
Syntax
display ipv6 neighbors { ipv6-address | all | dynamic | static | interface interface-type interface-number | vlan vlan-id } [ | { begin | exclude | include } text ]
View
Any view
Parameter
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.
begin: Displays the neighbor entries beginning with the specified character string.
include: Displays the neighbor entries containing the specified character string.
exclude: Displays the neighbor entries without the specified character string.
text: Character string.
Description
Use the display ipv6 neighbors command to display neighbor information.
Example
# View all neighbor information.
<H3C> display ipv6 neighbors all
Type: S-Static D-Dynamic
IPv6 Address Link-layer VID Interface State T Age
FE80::200:5EFF:FE32:B800 0000-5e32-b800 N/A GE1/0/1 REACH S -
Table 1-6 Description on fields of the display ipv6 neighbors command
Field |
Description |
IPv6 Address |
IPv6 address |
Link-layer |
Link layer address (MAC address of a neighbor) |
VID |
VLAN ID |
Interface |
Interface connected with a neighbor |
State |
State of a neighbor |
T |
Type of neighbor information, including static configuration and dynamic acquisition. |
Age |
For a static entry, “-“ is displayed. 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). |
1.1.6 display ipv6 neighbors count
Syntax
display ipv6 neighbors { all | dynamic | static | interface interface-type interface-number | vlan vlan-id } count
View
Any view
Parameter
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.
interface interface-type interface-number: Displays the total number of neighbor entries of a specified interface.
static: Displays the total number of all neighbor entries configured statically.
vlan vlan-id: Displays the total number of neighbor entries of a specified VLAN.
count: The number of neighbor entries.
Description
Use the display ipv6 neighbors count command to display the total number of neighbor entries satisfying the specified condition.
Example
# Display the total number of neighbor entries acquired dynamically.
<H3C> display ipv6 neighbors dynamic count
Total dynamic entry(ies): 2
1.1.7 display ipv6 pathmtu
Syntax
display ipv6 pathmtu { ipv6-address | all | dynamic | static }
View
Any view
Parameter
ipv6-address: IPv6 address whose PMTU information is to be displayed.
all: Displays all PMTU information.
dynamic: Displays all dynamic PMTU information.
static: Displays all static PMTU information.
Description
Use the display ipv6 pathmtu command to display the PMTU information of IPv6 addresses.
Example
# Display all PMTU information.
<H3C> display ipv6 pathmtu all
Ipv6 Destination Address ZoneID PathMTU Age Type
fe80::12 0 1300 40 Dynamic
2222::3 0 1280 -- Static
Table 1-7 Description on fields of the display ipv6 pathmtu command
Field |
Description |
Ipv6 Destination Address |
Destination IPv6 address |
ZoneID |
Address zone, currently invalid |
PathMTU |
PMTU of an IPv6 address |
Age |
Lifetime of a PMTU. For a static PMTU, “--“ is displayed. |
Type |
Indicates the PMTU is dynamically negotiated or statically configured. |
1.1.8 display ipv6 socket
Syntax
display ipv6 socket [ socktype socket-type ] [ task-id socket-id ]
View
Any view
Parameter
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. If no argument is specified, all information related to socket will be displayed.
Example
# View information related to a specified socket.
<H3C> display ipv6 socket socktype 1
SOCK_STREAM:
Task = VTYD(14), socketid = 4, Proto = 6,
LA = ::->22, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID,
socket state = SS_PRIV SS_ASYNC
Task = VTYD(14), socketid = 3, Proto = 6,
LA = ::->23, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID,
socket state = SS_PRIV SS_ASYNC
Table 1-8 Description on fields of the display ipv6 socket command
Field |
Description |
SOCK_STREAM |
Socket type of TCP |
Task |
Task ID of the created socket |
socket id |
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 |
1.1.9 display ipv6 statistics
Syntax
display ipv6 statistics
View
Any view
Parameter
None
Description
Use the display ipv6 statistics command to display statistics of IPv6 packets and ICMPv6 packets.
Example
# View the statistics of IPv6 packets and IPv6 ICMP packets.
<H3C> display ipv6 statistics
IPv6 Protocol:
Sent packets:
Total: 0
Local sent out: 0 forwarded: 0
raw packets: 0 discarded: 0
routing failed: 0 fragments: 0
fragments failed: 0
Received packets:
Total: 0
local host: 0 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: 0
unreached: 0 too big: 0
hopcount exceeded: 0 reassembly timeout: 0
parameter problem: 0
echo request: 0 echo replied: 0
neighbor solicit: 0 neighbor advert: 0
router solicit: 0 router advert: 0
redirected: 0
Send failed:
ratelimited: 0 other errors: 0
Received packets:
Total: 0
checksum error: 0 too short: 0
bad code: 0
unreached: 0 too big: 0
hopcount exceeded: 0 reassembly timeout: 0
parameter problem: 0 unknown error type: 0
echoed: 0 echo replied: 0
neighbor solicit: 0 neighbor advert: 0
router solicit: 0 router advert: 0
redirected: 0 router renumbering: 0
unknown info type: 0
Deliver failed:
bad length: 0 ratelimited: 0
Table 1-9 Description on fields of the display ipv6 statistics command
Field |
Description |
IPv6 Protocol: |
Statistics of IPv6 packets |
Sent packets: Total: 0 Local sent out: 0 forwarded: 0 raw packets: 0 discarded: 0 routing failed: 0 fragments: 0 fragments failed: 0
|
Statistics of sent IPv6 packets, including: Total number of sent packets Number of packets sent locally Number of forwarded packets Number of packets sent via raw socket Number of discarded packets Number of packets with routing failure Number of sent fragment packets Number of fragment sending failures |
Received packets: Total: 0 local host: 0 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 Total number of received packets Number of packets received locally Number of packets exceeding the hops Number of packets in an incorrect format Number of packets with incorrect options Number of packets with incorrect protocol Number of received fragment packets Number of reassembled packets Number of packets whose reassembly fails Number of packets whose reassembly times out |
ICMPv6 protocol: |
Statistics of ICMPv6 packets |
Sent packets: Total: 0 unreached: 0 too big: 0 hopcount exceeded: 0 reassembly timeout: 0 parameter problem: 0 echo request: 0 echo replied: 0 neighbor solicit: 0 neighbor advert: 0 router solicit: 0 router advert 0 redirected: 0 Send failed: ratelimited: 0 other errors: 0 |
Statistics of sent ICMPv6 packets, including Total number of sent packets Number of packets whose destination is unreachable Number of too large packets Number of packets exceeding the hop limit Number of packets whose fragmentation and reassembly time out Number of packets with parameter errors Number of request packets Number of response packets Number of neighbor solicitation packets Number of neighbor advertisement packets Number of router solicit packets Number of router advertisement packets Number of redirected packets Number of packets failing to be sent because of rate limitation Number of packets with other errors |
Received packets: Total: 0 checksum error: 0 too short: 0 bad code: 0 unreached: 0 too big: 0 hopcount exceeded: 0 reassembly timeout: 0 parameter problem: 0 unknown error type: 0 echoed: 0 echo replied: 0 neighbor solicit: 0 neighbor advert: 0 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 Total number of received packets Number of packets with checksum errors Number of too small packets Number of packets with error codes Number of packets whose destination is unreachable Number of too large packets Number of packets exceeding the hop limit Number of packets whose fragmentation and reassembly time out Number of packets with parameter errors Number of packets with unknown errors Number of request packets Number of response packets Number of neighbor solicitation messages Number of neighbor advertisement packets Number of router solicitation packets Number of router advertisement packets Number of redirected packets Number of packets recounted by the router Number of unknown information type of packets Number of packets with a incorrect size Number of packets failing to be received because of rate limitation |
1.1.10 display tcp ipv6 statistics
Syntax
display tcp ipv6 statistics
View
Any view
Parameter
None
Description
Use the display tcp ipv6 statistics command to display IPv6 TCP connection statistics.
Example
# View the statistics of received and sent IPv6 TCP packets.
<H3C> display tcp ipv6 statistics
Received packets:
Total: 0
packets in sequence: 0 (0 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: 0 (0 bytes)
packets with data after window: 0 (0 bytes)
packets after close: 0
ACK packets: 0 (0 bytes)
duplicate ACK packets: 0, too much ACK packets: 0
Sent packets:
Total: 0
urgent packets: 0
control packets: 0 (including 0 RST)
window probe packets: 0, window update packets: 0
data packets: 0 (0 bytes) data packets retransmitted: 0 (0 bytes)
ACK only packets: 0 (0 delayed)
Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0
Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections disconnected : 0
Initiated connections: 0, accepted connections: 0, established connections: 0
Closed connections: 0 (dropped: 0, initiated dropped: 0)
Table 1-10 Description on fields of the display tcp ipv6 statistics command
Field |
Description |
Received packets: Total: 0 packets in sequence: 0 (0 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: 0 (0 bytes) packets with data after window: 0 (0 bytes) packets after close: 0
ACK packets: 0 (0 bytes) duplicate ACK packets: 0, too much ACK packets: 0 |
Statistics of received packets, including Total number of received packets Number of packets received in sequence Number of window probe packets Number of window size update packets Number of packets with checksum errors Number of packets with offset errors Number of packets whose total length is less than that specified by the packet header Number of duplicate packets Number of partially duplicate packets Number of out-of-order packets Number of packets exceeding the receiving window size Number of packets after the connection is closed Number of ACK packets Number of duplicate ACK packets/excessive ACK packets |
Sent packets: Total: 0 urgent packets: 0 control packets: 0 (including 0 RST) window probe packets: 0, window update packets: 0
data packets: 0 (0 bytes) data packets retransmitted: 0 (0 bytes) ACK only packets: 0 (0 delayed) |
Statistics of sent packets, including Total number of packets Number of packets containing an urgent indicator Number of control packets Number of window probe packets Number of window update packets Number of data packets Number of retransmitted packets 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 SYN is received from the peer) |
initiated dropped |
Number of initiated but dropped connections(before SYN is received from the peer) |
1.1.11 display tcp ipv6 status
Syntax
display tcp ipv6 status
View
Any view
Parameter
None
Description
Use the display tcp ipv6 command to display the IPv6 TCP connection status.
Example
# View the IPv6 TCP connection status.
<H3C> display tcp ipv6 status
TCP6CB Local Address Foreign Address State
045d8074 ::->21 ::->0 Listening
Table 1-11 Description on 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 |
1.1.12 display udp ipv6 statistics
Syntax
display udp ipv6 statistics
View
Any view
Parameter
None
Description
Use the display udp ipv6 statistics command to display statistics of IPv6 UDP packets.
Example
# View statistics of IPv6 UDP packets.
<H3C> display udp ipv6 statistics
Received packets:
Total: 0
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: 0
Table 1-12 Description on 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 failing to match the PCB cache |
1.1.13 dns server ipv6
Syntax
dns server ipv6 ipv6-address [ interface-type interface-number ]
undo dns server ipv6 ipv6-address [ interface-type interface-number ]
View
System view
Parameter
ipv6-address: IPv6 address of a DNS server.
interface-type interface-number: Interface type and interface number 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.
Example
# Configure the IPv6 address 2002::1 for a DNS server.
<H3C> system-view
[H3C] dns server ipv6 2002::1
1.1.14 ipv6
Syntax
ipv6
undo ipv6
View
System view
Parameter
None
Description
Use the ipv6 command to enable the IPv6 packet forwarding function.
Use the undo ipv6 command to disable the IPv6 packet forwarding function.
By default, the IPv6 packet forwarding function is disabled.
Example
# Enable the IPv6 packet forwarding function.
<H3C> system-view
[H3C] ipv6
1.1.15 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
VLAN interface view/LoopBack interface view
Parameter
prefix-length: Prefix length of an IPv6 address.
Description7
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 Up to five aggregatable global unicast address(es) or site-local address(es) can be configured on an interface at a time.
l The prefix length can only be 128 bits when the aggregatable global unicast address(es) or site-local address(es) is configured in the LoopBack interface view.
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,
Example
# Set the aggregatable global IPv6 unicast address of the VLAN 1 interface to 2001::1/64.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 address 2001::1/64
1.1.16 ipv6 address auto link-local
Syntax
ipv6 address auto link-local
undo ipv6 address auto link-local
View
VLAN interface view/LoopBack interface view
Parameter
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 will automatically be generated after a site-local or global IPv6 unicast address is configured for an interface.
Example
# Configure the VLAN 1 interface to automatically generate a link-local address.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 address auto link-local
1.1.17 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/LoopBack interface view
Parameter
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.
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 or global unicast address in EUI-64 format is configured for an interface.
Note that:
l The prefix length should not be more than 64 bits when the aggregatable global unicast address(es) or site-local address(es) in the EUI-64 format is configured in the VLAN interface view.
l The prefix length can only be 128 bits when the aggregatable global unicast address(es) or site-local address(es) in the EUI-64 format is configured in the LoopBack interface view.
Example
# Configure an IPv6 address in the EUI-64 format for the VLAN 1 interface.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 address 2001::1/64 eui-64
1.1.18 ipv6 address link-local
Syntax
ipv6 address ipv6-address link-local
undo ipv6 address ipv6-address link-local
View
VLAN interface view/LoopBack interface view
Parameter
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.
Example
# Configure a link-local address for the VLAN 1 interface.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 address fe80::1 link-local
1.1.19 ipv6 host
Syntax
ipv6 host hostname ipv6-address
undo ipv6 host hostname [ ipv6-address ]
View
System view
Parameter
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 at most one IPv6 address.
Example
# Configure the mapping between host name and IPv6 address.
<H3C> system-view
[H3C] ipv6 host aaa 2001::1
1.1.20 ipv6 icmp-error
Syntax
ipv6 icmp-error { bucket bucket-size | ratelimit interval }*
undo ipv6 icmp-error
View
System view
Parameter
bucket-size: Number of tokens in a token bucket, in the range of 1 to 200.
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.
Example
# 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.
<H3C> system-view
[H3C] ipv6 icmp-error bucket 50 ratelimit 100
1.1.21 ipv6 nd autoconfig managed-address-flag
Syntax
ipv6 nd autoconfig managed-address-flag
undo ipv6 nd autoconfig managed-address-flag
View
Interface view
Parameter
None
Description
Use the ipv6 nd autoconfig managed-address-flag command to set the M flag (configuration flag of the managed address) to 1 so that the host can acquire an IPv6 address through stateful auto-configuration (for example, DHCP server).
Use the undo ipv6 nd autoconfig managed-address-flag command to restore the M flag to the default value “0” so that the host can acquire an IPv6 address through stateless auto-configuration.
By default, the host acquires an IPv6 address through stateless auto-configuration.
Example
# Configure the host to acquire an IPv6 address through stateful auto-configuration.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd autoconfig managed-address-flag
1.1.22 ipv6 nd autoconfig other-flag
Syntax
ipv6 nd autoconfig other-flag
undo ipv6 nd autoconfig other-flag
View
Interface view
Parameter
None
Description
Use the ipv6 nd autoconfig other-flag command to set the O flag (configuration flag of other information) to 1 so that the host can acquire information other than IPv6 address through stateful auto-configuration (for example, DHCP server).
Use the undo ipv6 nd autoconfig other-flag command to remove the setting so that the host can acquire other information through stateless auto-configuration.
By default, the host acquire other information through stateless auto-configuration.
Example
# Configure the host to acquire information other than IPv6 address through stateless auto-configuration.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] undo ipv6 nd autoconfig other-flag
1.1.23 ipv6 nd dad attempts
Syntax
ipv6 nd dad attempts value
undo ipv6 nd dad attempts
View
Interface view
Parameter
value: Number of attempts to send a neighbor solicitation message for duplicate address detection, in the range of 0 to 600. 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.
Example
# Set the attempts to send a neighbor solicitation message for duplicate address detection to 20.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd dad attempts 20
1.1.24 ipv6 nd hop-limit
Syntax
ipv6 nd hop-limit value
undo ipv6 nd hop-limit
View
System view
Parameter
value: Number of hops, in the range of 0 to 255. When it is set to 0, the Hop Limit field in RA messages sent by the device is 0, that is, no host is designated.
Description
Use the ipv6 nd hop-limit command to configure the hop limit issued by the device.
Use the undo ipv6 nd hop-limit command to restore the hop limit to the default.
By default, the hop limit issued by the device is 64.
Example
# Set the hop limit issued by the device to 100.
<H3C> system-view
[H3C] ipv6 nd hop-limit 100
1.1.25 ipv6 nd ns retrans-timer
Syntax
ipv6 nd ns retrans-timer value
undo ipv6 nd ns retrans-timer
View
Interface view
Parameter
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. The local interface retransmits an NS message at intervals of this value. Furthermore, the Retrans Timer field in RA messages sent by the local interface is equal to this value.
Use the undo ipv6 nd ns retrans-timer command to restore the interval for retransmitting an NS message to the default and specify the value of the Retrans Timer field to 0 so that no host can be designated.
By default, the local interface sends NS messages at intervals of 1,000 milliseconds and the Retrans Timer field in RA messages sent by the local interface is equal to 0.
Example
# Specify the VLAN 1 interface to send an NS message at intervals of 10,000 milliseconds.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd ns retrans-timer 10000
1.1.26 ipv6 nd nud reachable-time
Syntax
ipv6 nd nud reachable-time value
undo ipv6 nd nud reachable-time
View
Interface view
Parameter
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. This time value serves as not only the neighbor reachable time on the local interface, but also the value of the Reachable Timer field in RA messages sent by the local interface.
Use the undo ipv6 nd nud reachable-time command to restore the neighbor reachable time to the default and to specify the value of the Reachable Timer field in RA messages to 0 so that no host can be designated.
By default, the neighbor reachable time on the local interface is 30,000 milliseconds and the Reachable Timer field in RA messages is 0.
Example
# Set the neighbor reachable time on the VLAN 1 interface to 10,000 milliseconds.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd nud reachable-time 10000
1.1.27 ipv6 nd ra halt
Syntax
ipv6 nd ra halt
undo ipv6 nd ra halt
View
Interface view
Parameter
None
Description
Use the ipv6 nd ra halt command to suppress RA messages.
Use the undo ipv6 nd ra halt command to disable the RA message suppression.
By default, RA messages are suppressed.
Example
# Suppress RA messages on the VLAN 1 interface.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd ra halt
1.1.28 ipv6 nd ra interval
Syntax
ipv6 nd ra interval max-interval-value min-interval-value
undo ipv6 nd ra interval
View
Interface view
Parameter
max-interval-value: Maximum interval for sending RA messages in seconds, in the range of 4 to 1,800.
min-interval-value: Minimum interval for sending RA messages in seconds, in the range of 3 to 1,350.
Description
Use the ipv6 nd ra interval command to set the maximum and the minimum interval for sending RA messages. The device sends RA messages at intervals of a random value between the maximum interval and the minimum interval.
Use the undo ipv6 nd ra interval command to restore the maximum and the minimum interval to the default.
By default, the maximum interval between RA messages is 600 seconds, and the minimum interval is 200 seconds.
Note the following:
l The minimum interval should be three-fourths of the maximum interval or less.
l The maximum interval for sending RA messages should be less than or equal to the router lifetime in RA messages.
Example
# Set the maximum interval for sending RA messages to 1,000 seconds and the minimum interval to 700 seconds.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd ra interval 1000 700
1.1.29 ipv6 nd ra prefix
Syntax
ipv6 nd ra prefix { ipv6-address prefix-length | ipv6-address/prefix-length } valid-lifetime preferred-lifetime [ no-autoconfig | off-link ]*
undo ipv6 nd ra prefix ipv6-address
View
Interface view
Parameter
prefix-length: Prefix length of an IPv6 address.
valid-lifetime: Valid lifetime of a prefix in seconds, in the range of 0 to 4,294,967,295.
preferred-lifetime: Preferred lifetime of a prefix used for stateless auto-configuration in seconds, in the range of 0 to 4,294,967,295.
no-autoconfig: Specifies a prefix not be used for stateless auto-configuration. If this keyword is not provided, the prefix is used for stateless auto-configuration.
off-link: Specifies the address with the prefix not to be directly reachable on the link. If this keyword is not provided, the address with the prefix is directly reachable on the link.
Description
Use the ipv6 nd ra prefix command to configure the prefix information in RA messages.
Use the undo ipv6 nd ra prefix command to remove the prefix information from RA messages.
By default, no prefix information is configured in RA messages and the IPv6 address of the interface sending RA messages is used as the prefix information.
Example
# Configure the prefix information for RA messages on the VLAN 1 interface.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd ra prefix 2001:10::100/64 100 10
1.1.30 ipv6 nd ra router-lifetime
Syntax
ipv6 nd ra router-lifetime value
undo ipv6 nd ra router-lifetime
View
Interface view
Parameter
time: Lifetime of RA messages in seconds, in the range of 0 to 9,000. When it is set to 0, the device does not serve as a default router.
Description
Use the ipv6 nd ra router-lifetime command to configure the lifetime of RA messages.
Use the undo ipv6 nd ra router-lifetime command to restore the configuration to the default.
By default, the router lifetime in RA messages is 1,800 seconds.
Note that the lifetime of RA messages should be greater than or equal to the sending interval.
Example
# Set the lifetime of RA messages on the VLAN 1 interface to 1,000 seconds.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 nd ra router-lifetime 1000
1.1.31 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
Parameter
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: Layer 2 port corresponding to a static neighbor entry.
interface-type interface-number: Layer 3 interface 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 the corresponding VLAN interface must exist when you carry out the command with the vlan-id port-type port-number argument. After you carry out the command, the device relates the VLAN interface to an IPv6 address to uniquely identify a static neighbor entry. You only need to specify the corresponding VLAN interface before removing a static neighbor entry.
Example
# Configure a static neighbor entry for GigabitEthernet1/0/1 of VLAN 1.
<H3C> system-view
[H3C] ipv6 neighbor 2000::1 fe-e0-89 1 GigabitEthernet 1/0/1
1.1.32 ipv6 neighbors max-learning-num
Syntax
ipv6 neighbors max-learning-num number
undo ipv6 neighbors max-learning-num
View
Interface view
Parameter
number: Maximum number of neighbors that can be dynamically learned by an interface, in the range of 1 to 1024.
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.
Example
# Set the maximum number of neighbors that can be dynamically learned on the VLAN 1 interface to 10.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ipv6 neighbors max-learning-num 10
1.1.33 ipv6 pathmtu
Syntax
ipv6 pathmtu ipv6-address [ value ]
undo ipv6 pathmtu ipv6-address
View
System view
Parameter
ipv6-address: Specified IPv6 address.
value: PMTU of a specified IPv6 address in bytes, in the range of 1280 to 10,000. The default value is 1500. If this argument is not provided, the default value is adopted.
Description
Use the ipv6 pathmtu command to configure a static PMTU for a specified IPv6 address.
Use the undo ipv6 pathmtu command to remove the PMTU configuration for a specified IPv6 address.
By default, no static PMTU is configured.
Example
# Configure a static PMTU for a specified IPv6 address.
<H3C> system-view
[H3C] ipv6 pathmtu fe80::12 1300
1.1.34 ipv6 pathmtu age
Syntax
ipv6 pathmtu age age-time
undo ipv6 pathmtu age
View
System view
Parameter
age-time: Aging time for PMTU in minutes, in the range of 10 to 100.
Description
Use the ipv6 pathmtu age command to configure the aging time for dynamic PMTU.
Use the undo ipv6 pathmtu age command to restore the aging time for dynamic PMTU to the default.
By default, the aging time is 10 minutes.
Note that the aging time is invalid for static PMTU.
Related command: display ipv6 pathmtu.
Example
# Set the aging time for dynamic PMTU to 40 minutes.
<H3C> system-view
[H3C] ipv6 pathmtu age 40
1.1.35 reset dns ipv6 dynamic-host
Syntax
reset dns ipv6 dynamic-host
View
User view
Parameter
None
Description
Use the reset dns ipv6 dynamic-host command to clear IPv6 dynamic domain name cache information.
Example
# Clear IPv6 dynamic domain name cache information.
<H3C> reset dns ipv6 dynamic-host
1.1.36 reset ipv6 neighbors
Syntax
reset ipv6 neighbors [ all | dynamic | interface interface-type interface-number | static ]
View
User view
Parameter
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.
Example
# Clear all neighbor information on all interfaces.
<H3C> reset ipv6 neighbors all
1.1.37 reset ipv6 pathmtu
Syntax
reset ipv6 pathmtu { all | static | dynamic }
View
User view
Parameter
all: Clears all PMTUs.
static: Clears all static PMTUs.
dynamic: Clears all dynamic PMTUs.
Description
Use the reset ipv6 pathmtu the command to clear the corresponding PMTU.
Example
# Clear all PMTUs.
<H3C> reset ipv6 pathmtu all
1.1.38 reset ipv6 statistics
Syntax
reset ipv6 statistics
View
User view
Parameter
None
Description
Use the reset ipv6 statistics command to clear the statistics of IPv6 packets.
Example
# Clear the statistics of IPv6 packets.
<H3C> reset ipv6 statistics
1.1.39 reset tcp ipv6 statistics
Syntax
reset tcp ipv6 statistics
View
User view
Parameter
None
Description
Use the reset tcp ipv6 statistics command to clear the statistics of all IPv6 TCP packets.
Example
# Clear the statistics of all IPv6 TCP packets.
<H3C> reset tcp ipv6 statistics
1.1.40 reset udp ipv6 statistics
Syntax
reset udp ipv6 statistics
View
User view
Parameter
None
Description
Use the reset udp ipv6 statistics command to clear the statistics of all IPv6 UDP packets.
Example
# Clear the statistics of all IPv6 UDP packets.
<H3C> reset udp ipv6 statistics
1.1.41 tcp ipv6 timer fin-timeout
Syntax
tcp ipv6 timer fin-timeout wait-time
undo tcp ipv6 timer fin-timeout
View
System view
Parameter
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.
Example
# Set the finwait timer length of IPv6 TCP packets to 800 seconds.
<H3C> system-view
[H3C] tcp ipv6 timer fin-timeout 800
1.1.42 tcp ipv6 timer syn-timeout
Syntax
tcp ipv6 timer syn-timeout wait-time
undo tcp ipv6 timer syn-timeout
View
System view
Parameter
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.
Example
# Set the synwait timer length of IPv6 TCP packets to 100 seconds.
<H3C> system-view
[H3C] tcp ipv6 timer syn-timeout 100
1.1.43 tcp ipv6 window
Syntax
tcp ipv6 window size
undo tcp ipv6 window
View
System view
Parameter
size: Size of the IPv6 TCP packet buffer in KB (kilobyte), in the range of 1 to 32.
Description
Use the tcp ipv6 window command to set the size of the IPv6 TCP packet buffer.
Use the undo tcp ipv6 window command to restore the size of the IPv6 TCP packet buffer to the default.
By default, the size of the IPv6 TCP packet buffer is 8 KB.
Example
# Set the size of the c IPv6 TCP socket buffer to 4 KB.
<H3C> system-view
[H3C] tcp ipv6 window 4
Chapter 2 IPv6 Application Configuration Commands
2.1 IPv6 Application Configuration Commands
2.1.1 ftp ipv6
Syntax
ftp ipv6 [ remote-system [ port-number ] [ -a source-ipv6-address ] [ -i interface-type interface-number ] ]
View
User view
Parameter
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
port-number: Port through which the FTP client is connected to the FTP server. It is in the range of 0 to 65535 and defaults to 21.
-a source-ipv6-address: Specifies the source address of the FTP packets to be sent. Note that the source address specified must be the IPv6 address configured for the device.
-i interface-type interface-number: Specifies the type and number of an outgoing interface. It is required when the destination address is a link-local address.
Description
Use the ftp ipv6 command to initiate a control connection to the remote FTP server through IPv6 addressing and enter FTP client view.
Note the following:
l If you execute this command without specifying any argument, you will enter FTP client view but will not be logged into the FTP server.
l If the command is executed with arguments specified, the system will prompt you for username and password for logging into the FTP server. If you enter the correct username and password, you will be logged into the FTP server and enter FTP client view; otherwise, the login will fail.
Example
# Connect to the remote FTP server whose address is 3000::36.
<H3C> ftp 3000::36
Trying 3000::36 ...
Press CTRL+K to abort
Connected to 3000::36.
220 Welcome!
User(3000::36:(none)): MY_NAME
331 Please specify the password.
Password:
230 Login successful.
[ftp]
2.1.2 open ipv6
Syntax
open ipv6 remote-system [ port-number ] [ -a source-ipv6-address ] [ -i interface-type interface-number ]
View
FTP client view
Parameter
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
port-number: Number of the TCP port providing FTP service on the remote device. It is in the range of 0 to 65535 and defaults to 21.
-a source-ipv6-address: Specifies a source IPv6 address. Note that the source address specified must be the IPv6 address already configured for the device.
-i interface-type interface-number: Specifies the type and number of the outgoing interface. You need to specify this argument if the destination address is a link-local address.
Description
Use the open ipv6 command to log in to the FTP server in FTP client view.
Before you can log in, the system prompts you to enter the login username and password. If the username and password are correct, you can log in successfully; otherwise, the login fails.
Example
# In FTP client view, log in to the FTP server whose IPv6 address is 3000::200.
<Sysname> ftp ipv6
[ftp] open ipv6 3000::200
Trying 3000::200 ...
Press CTRL+K to abort
Connected to 3000::200.
220 Welcome!
User(3000::200:(none)): MY_NAME
331 Please specify the password.
Password:
230 Login successful.
[ftp]
2.1.3 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
Parameter
-a source-ipv6-address: Specifies source IPv6 address.
-c count: Specifies the number of times that the ICMPv6 ECHO-REQUEST packets are sent, in the range 1 to 4294967295. The default value is 5.
-m interval: Specifies the interval (in milliseconds) to send ICMPv6 ECHO-RESPONSE packets, in the range 1 to 65535. The default value is 200 ms.
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 length (in bytes) of ICMPv6 ECHO-REQUEST packets, in the range 20 to 8100 and defaults to 56.
-t timeout: Specifies the timeout value (in milliseconds) of the ICMPv6 ECHO-REQUEST packets, in the range 0 to 65535 and defaults to 2000.
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 egress interface by its type and number. This parameter must be specified when the destination address is the link local address or a multicast address.
Description
Use the ping ipv6 command to test whether the destination is accessible.
Example
# Test whether destination 2001::1 is accessible.
<H3C> ping ipv6 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 = 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
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 packets.
2.1.4 telnet ipv6
telnet ipv6 remote-system [ -i interface-type interface-number ] [ port-number ]
View
User view
Parameter
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. It is required when the destination address is 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>.
Example
# Connect to a remote Telnet server with IPv6 address of 3001::1,
<H3C> telnet ipv6 3001::1
Trying 3001::1 ...
Press CTRL+K to abort
Connected to 3001::1 ...
*********************************************************************
* Copyright(c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
*********************************************************************
<H3C>
2.1.5 tftp ipv6
Syntax
tftp ipv6 remote-system [ -i interface-type interface-number ] { get | put } source-filename [ destination-filename ]
View
User view
Parameter
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. It is required when the TFTP server’s address is 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 135 letters.
destination-filename: Specifies the name of a destination file with a string of 1 to 135 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.
Example
# Download a file from TFTP server.
<H3C> tftp ipv6 fe80::250:daff:fe91:e058 -i ethernet 1/0 get filetoget
Transfer file in binary mode.
Now begin to download file from remote tftp server, please wait for a while...
TFTP: 32 bytes received in 5 seconds.
File downloaded successfully.
2.1.6 tftp-server ipv6 acl
Syntax
tftp-server ipv6 acl acl-number
undo tftp-server ipv6 acl
View
System view
Parameter
acl-number: ACL number of IPv6, in the range of 2000 to 2999.
Description
Use the tftp-server ipv6 acl command to configure the relation of ACL to TFTP application. You can use the rules configured in IPv6 ACL to enable or disable a specific TFTP server.
Use the undo tftp-server ipv6 acl command to disable the relation of ACL to TFTP application.
ACL is not related to TFTP application by default.
Example
# Configure the relation of ACL2000 to TFTP application
<H3C> system-view
[Sysname] acl ipv6 number 2000
[Sysname-acl6-basic-2000] rule permit source 2030:5060::9050/64
[Sysname-acl6-basic-2000] quit
[H3C] tftp-server ipv6 acl 2000
2.1.7 tracert ipv6
Syntax
tracert ipv6 [ -f first-ttl | -m max-ttl | -p port | -q packet-number | -w timeout ]* remote-system
View
Any view
Parameter
-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 UDP port number of the destination device, in the range 1 to 65535. The default value is 33434. It is normally unnecessary to modify this parameter.
-q packet-number: Specifies the number of probe packets sent each time, in the range 1 to 65535 and defaults to 3.
-w timeout: Specifies the timeout time of the probing packets, ranging from 1 to 65535, in milliseconds. The default value is 5000 ms.
remote-system: IPv6 address or host name (a string a 1 to 20 characters) of the destination device.
Description
Use the tracert ipv6 command to trace the route of the IPv6 packets from source to destination.
Example
# Trace the route of the IPv6 packets from source to destination 3002::2.
<H3C> 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