- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DHCPv6 Commands
- 05-DNS Commands
- 06-IPv6 DNS Commands
- 07-NAT Commands
- 08-Adjacency Table Commands
- 09-Flow Classification Commands
- 10-IPv6 Basics Commands
- 11-IP Performance Optimization Commands
- 12-Basic IP Routing Commands
- 13-Static Routing Commands
- 14-IPv6 Static Routing Commands
- 15-GRE Commands
- 16-RIP Commands
- 17-RIPng Commands
- 18-Policy-Based Routing Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-IPv6 Basics Commands | 199.85 KB |
IPv6 basics configuration commands
ipv6 fib-loadbalance-type hash-based
ipv6 icmpv6 multicast-echo-reply enable
ipv6 nd autoconfig managed-address-flag
ipv6 neighbors max-learning-num
IPv6 basics configuration commands
display ipv6 fib
Use display ipv6 fib to display IPv6 FIB entries. If you do not specify any parameter, this command displays all IPv6 FIB entries.
Syntax
display ipv6 fib [ acl6 acl6-number | ipv6-prefix ipv6-prefix-name ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
acl6 acl6-number: Displays the IPv6 FIB entries permitted by a specific ACL. The ACL number is in the range of 2000 to 2999. If the specified ACL does not exist, this command displays all IPv6 FIB entries.
ipv6-prefix ipv6-prefix-name: Displays the IPv6 FIB entries matching a specific prefix list. The ipv6-prefix-name argument is a case-sensitive string of 1 to 19 characters. If the specified prefix list does not exist, this command displays all IPv6 FIB entries.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The device looks up a matching IPv6 FIB entry for forwarding an IPv6 packet.
Examples
# Display all IPv6 FIB entries.
<Sysname> 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 : UH
Label : NULL Token : 0
Interface : InLoopBack0
Table 1 Command output
Field |
Description |
Total number of Routes |
Total number of routes in the FIB. |
Destination |
Destination address. |
PrefixLength |
Prefix length of the destination address. |
NextHop |
Next hop. |
Flag |
Route flag: · U—Usable route. · G—Gateway route. · H—Host route. · B—Black hole route. · D—Dynamic route. · S—Static route. |
Label |
Label. |
Token |
Label switched path index number. |
Interface |
Outgoing interface. |
display ipv6 fib ipv6-address
Use display ipv6 fib ipv6-address to display the IPv6 FIB entry of the specified destination IPv6 address.
Syntax
display ipv6 fib ipv6-address [ prefix-length ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
ipv6-address: Destination IPv6 address.
prefix-length: Prefix length of the destination IPv6 address, in the range of 0 to 128.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the prefix-length argument, this command displays the IPv6 FIB entry that most closely matches the destination IPv6 address.
If you specify the prefix-length argument, this command displays the IPv6 FIB entry that exactly matches the specified destination IPv6 address and prefix length.
Examples
# Display the IPv6 FIB entry that most closely matches the destination IPv6 address.
<Sysname> display ipv6 fib ::1
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 : UH
Label : Null Token : Invalid
Interface : InLoopBack0
Table 2 Command output
Field |
Description |
Total number of Routes |
Total number of routes in the FIB. |
Destination |
Destination address. |
PrefixLength |
Prefix length of the destination address. |
NextHop |
Next hop. |
Flag |
Route flag: · U—Usable route. · G—Gateway route. · H—Host route. · B—Black hole route. · D—Dynamic route. · S—Static route. |
Label |
Label. |
Token |
Label switched path index number. |
Interface |
Outgoing interface. |
display ipv6 interface
Use display ipv6 interface to display IPv6 information about an interface.
Syntax
display ipv6 interface [ interface-type [ interface-number ] ] [ brief ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type: Interface type.
interface-number: Interface number.
brief: Displays brief IPv6 information about an interface.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify interface-type interface-number, this command displays IPv6 information about all interfaces.
If you specify only interface-type, this command displays IPv6 information about the interfaces of the specified type.
If you specify interface-type interface-number, this command displays IPv6 information about the specified interface. If you also specify the brief keyword, this command displays brief IPv6 information about the interface.
Examples
# Display IPv6 information about VLAN-interface 2.
<Sysname> display ipv6 interface vlan-interface 2
Vlan-interface2 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::1234:56FF:FE65:4322
Global unicast address(es):
2001::1, subnet is 2001::/64
10::1234:56FF:FE65:4322, subnet is 10::/64 [AUTOCFG]
[valid lifetime 4641s/preferred lifetime 4637s]
Joined group address(es):
FF02::1:FF00:1
FF02::1:FF65:4322
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
IPv6 Packet statistics:
InReceives: 0
InTooShorts: 0
InTruncatedPkts: 0
InHopLimitExceeds: 0
InBadHeaders: 0
InBadOptions: 0
ReasmReqds: 0
ReasmOKs: 0
InFragDrops: 0
InFragTimeouts: 0
OutFragFails: 0
InUnknownProtos: 0
InDelivers: 0
OutRequests: 0
OutForwDatagrams: 0
InNoRoutes: 0
InTooBigErrors: 0
OutFragOKs: 0
OutFragCreates: 0
InMcastPkts: 0
InMcastNotMembers: 0
OutMcastPkts: 0
InAddrErrors: 0
InDiscards: 0
OutDiscards: 0
Table 3 Command output (on a switch)
Field |
Description |
Vlan-interface2 current state |
Physical state of the interface: · Administratively DOWN—The VLAN interface has been shut down with the shutdown command. · DOWN—The VLAN interface is administratively up but its physical state is down. No ports in the VLAN are up due to a connection or link failure. · UP—The administrative and physical states of the VLAN interface are both up. |
Line protocol current state |
Link layer protocol state of the interface: · DOWN—The link layer protocol state of the VLAN interface is down. · UP—The link layer protocol state of the VLAN interface is up. |
IPv6 is enabled |
IPv6 packet forwarding state of the interface. IPv6 packet forwarding is enabled in the example. After an IPv6 address is configured for an interface, IPv6 is automatically enabled on it. |
link-local address |
Link-local address configured for the interface. |
Global unicast address(es) |
Global unicast addresses configured for the interface. |
valid lifetime |
Valid lifetime of the global unicast address obtained through stateless autoconfiguration. |
preferred lifetime |
Preferred lifetime of the global unicast address obtained through stateless autoconfiguration. |
Joined group address(es) |
Addresses of multicast groups that the interface has joined. |
MTU |
Maximum transmission unit of the interface. |
ND DAD is enabled, number of DAD attempts |
Whether Duplicate Address Detection (DAD) is enabled. In this example, DAD is enabled. · If DAD is enabled, the number of attempts to send a Neighbor Solicitation (NS) message for DAD (configured with the ipv6 nd dad attempts command) is also displayed. · If DAD is disabled, ND DAD is disabled is displayed. (You can disable DAD by setting the number of attempts to send an NS message for DAD to 0.) |
ND reachable time |
Time that a neighboring node is considered reachable after reachability has been confirmed. |
ND retransmit interval |
Interval for retransmitting an NS message. |
Hosts use stateless autoconfig for addresses |
Hosts obtain IPv6 addresses through stateless autoconfiguration. |
InReceives |
All IPv6 packets received by the interface, including error packets. |
InTooShorts |
Received IPv6 packets that are too short, with a length less than 40 bytes, for example. |
InTruncatedPkts |
Received IPv6 packets with a length less than that specified in the packets. |
InHopLimitExceeds |
Received IPv6 packets with a hop count exceeding the limit. |
InBadHeaders |
Received IPv6 packets with incorrect basic headers. |
InBadOptions |
Received IPv6 packets with incorrect extension headers. |
ReasmReqds |
Received IPv6 fragments. |
ReasmOKs |
Number of reassembled packets rather than the number of fragments. |
InFragDrops |
IPv6 fragments discarded because of certain errors. |
InFragTimeouts |
IPv6 fragments discarded because the interval for which they had stayed in the system buffer exceeded the specified period. |
OutFragFails |
Packets that failed to be fragmented on the outbound interface. |
InUnknownProtos |
Received IPv6 packets with unknown or unsupported protocol type. |
InDelivers |
Received IPv6 packets that were delivered to application layer protocols (such as ICMPv6, TCP, and UDP). |
OutRequests |
Local IPv6 packets sent by IPv6 application protocols. |
OutForwDatagrams |
Packets forwarded by the outbound interface. |
InNoRoutes |
IPv6 packets that were discarded because no matched route can be found. |
InTooBigErrors |
IPv6 packets that were discarded because they exceeded the Path MTU. |
OutFragOKs |
Packets that were fragmented on the outbound interface. |
OutFragCreates |
Number of fragmented packets on the outbound interface. |
InMcastPkts |
IPv6 multicast packets received on the interface. |
InMcastNotMembers |
Incoming IPv6 multicast packets that were discarded because the interface is not in the corresponding multicast group. |
OutMcastPkts |
IPv6 multicast packets sent by the interface. |
InAddrErrors |
IPv6 packets that were discarded due to invalid destination addresses. |
InDiscards |
Received IPv6 packets that were discarded due to resource problems rather than packet content errors. |
OutDiscards |
Sent packets that were discarded due to resource problems rather than packet content errors. |
# Display brief IPv6 information about all interfaces.
<Sysname> display ipv6 interface brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IPv6 Address
Vlan-interface1 down down Unassigned
Vlan-interface2 up up 2001::1
Vlan-interface100 up down Unassigned
Table 4 Command output
Field |
Description |
*down: administratively down |
The interface has been shut down with the shutdown command. |
(s): spoofing |
Spoofing attribute of the interface. The link protocol state of the interface is up, but the link is an on-demand link or does not exist. |
Interface |
Name of the interface. |
Physical |
Physical state of the interface: · *down—The VLAN interface is administratively shut down by the shutdown command. · down—The VLAN interface is administratively up but its physical state is down. No port in the VLAN is up due to a connection or link failure. · up—The administrative and physical states of the VLAN interface are both up. |
Protocol |
Link layer protocol state of the interface: · down—The network layer protocol state of the VLAN interface is down. · up—The network layer protocol state of the VLAN interface is up. |
IPv6 Address |
IPv6 address of the interface. Only the first configured IPv6 address is displayed. If no address is configured for the interface, Unassigned is displayed. |
display ipv6 neighbors
Use display ipv6 neighbors to display neighbor information.
Syntax
display ipv6 neighbors { ipv6-address | all | dynamic | interface interface-type interface-number | static | vlan vlan-id } [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
ipv6-address: IPv6 address whose neighbor information is to be displayed.
all: Displays information about all neighbors, including neighbors acquired dynamically and configured statically on the public network and all private networks.
dynamic: Displays information about all neighbors acquired dynamically.
static: Displays information about all neighbors configured statically.
interface interface-type interface-number: Displays information about the neighbors of a specific interface.
vlan vlan-id: Displays information about the neighbors of a specific VLAN. The value range for the VLAN ID is 1 to 4094.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
You can use the reset ipv6 neighbors command to clear specific IPv6 neighbor information.
Examples
# Display all neighbor information.
<Sysname> 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 XGE1/0/1 REACH S -
Table 5 Command output
Field |
Description |
IPv6 Address |
IPv6 address of a neighbor. |
Link-layer |
Link layer address (MAC address) of a neighbor. |
VID |
VLAN to which the interface connected with a neighbor belongs. |
Interface |
Interface connected with a neighbor. |
State |
State of a neighbor: · INCMP—The address is being resolved. The link layer address of the neighbor is unknown. · REACH—The neighbor is reachable. · STALE—The reachability of the neighbor is unknown. The device does not verify the reachability any longer unless data is sent to the neighbor. · DELAY—The reachability of the neighbor is unknown. The device sends an NS message after a delay. · PROBE—The reachability of the neighbor is unknown. The device sends an NS message to verify the reachability of the neighbor. |
Type |
Type of neighbor information: · S—static configuration. · D—dynamic acquisition. |
Age |
For a static entry, a hyphen (-) is displayed. For a dynamic entry, the reachable time (in seconds) elapsed is displayed, and if it is never reachable, a pound (#) is displayed (for a neighbor acquired dynamically). |
· ipv6 neighbor
· reset ipv6 neighbors
display ipv6 neighbors count
Use display ipv6 neighbors count to display the total number of neighbor entries satisfying the specified condition.
Syntax
display ipv6 neighbors { all | dynamic | interface interface-type interface-number | static | vlan vlan-id } count [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
all: Displays the total number of all neighbor entries, including neighbor entries acquired dynamically and configured statically.
dynamic: Displays the total number of neighbor entries acquired dynamically.
static: Displays the total number of neighbor entries configured statically.
interface interface-type interface-number: Displays the total number of neighbor entries of a specific interface.
vlan vlan-id: Displays the total number of neighbor entries of a specific VLAN. The value range for the VLAN ID is 1 to 4094.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the total number of neighbor entries acquired dynamically.
<Sysname> display ipv6 neighbors dynamic count
Total dynamic entry(ies): 2
display ipv6 pathmtu
Use display ipv6 pathmtu to display the IPv6 path MTU information.
Syntax
display ipv6 pathmtu { ipv6-address | all | dynamic | static } [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
ipv6-address: Destination IPv6 address for which the path MTU information is to be displayed.
all: Displays all path MTU information on the public network.
dynamic: Displays all dynamic path MTU information.
static: Displays all static path MTU information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display all path MTU information.
<Sysname> display ipv6 pathmtu all
IPv6 Destination Address ZoneID PathMTU Age Type
fe80::12 0 1300 40 Dynamic
2222::3 0 1280 -- Static
Table 6 Command output
Field |
Description |
IPv6 Destination Address |
Destination IPv6 address. |
ZoneID |
VPN index. If the information is for the public network, this field displays 0. |
PathMTU |
Path MTU value on the network path to an IPv6 address. |
Age |
Time for a path MTU to live. For a static path MTU, two hyphens (--) are displayed. |
Type |
The path MTU is dynamically negotiated or statically configured. |
display ipv6 prefix
Use display ipv6 prefix to display information about IPv6 prefixes, including dynamic and static prefixes.
Syntax
display ipv6 prefix [ prefix-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
prefix-number: Specifies the ID of an IPv6 prefix, in the range of 1 to 1024. If you do not specify this argument, the command displays information about all IPv6 prefixes.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
Static IPv6 prefixes are created with the ipv6 prefix command.
Dynamic IPv6 prefixes are generated with a specific ID based on the prefix that is obtained from the DHCPv6 server. For more information, see the ipv6 dhcp client pd command.
Examples
# Display information about all IPv6 prefixes.
<Sysname> display ipv6 prefix
Number Prefix Type
1 1::/16 Static
2 ABCD:77D8::/32 Dynamic
# Display information about the IPv6 prefix with the specified ID.
<Sysname> display ipv6 prefix 1
Number: 1
Type : Dynamic
Prefix: ABCD:77D8::/32
Preferred lifetime 90 sec, valid lifetime 120 sec
Table 7 Command output
Field |
Description |
Number |
Prefix ID. |
Type |
Prefix type: · Static—Static IPv6 prefix. · Dynamic—Dynamic IPv6 prefix. |
Prefix |
Prefix and its length. Not-available indicates that no prefix is obtained. |
Preferred lifetime |
Preferred lifetime in seconds. For a static IPv6 prefix, this field is not displayed. |
valid lifetime |
Valid lifetime in seconds. For a static IPv6 prefix, this field is not displayed. |
display ipv6 socket
Use display ipv6 socket to display socket information.
Syntax
display ipv6 socket [ socktype socket-type ] [ task-id socket-id ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
socktype socket-type: Displays socket information about this type. The socket type is in the range of 1 to 3. The value 1 represents a TCP socket, 2 a UDP socket, and 3 a raw socket.
task-id: Displays socket information about the task. The value range for the task-id argument is 1 to 150.
socket-id: Displays information about the socket. The socket ID is in the range of 0 to 3072.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify any parameter, this command displays information about all the sockets.
If you specify only the socket type, the command displays information about sockets of the specified type.
If you specify the socket type, task ID, and socket ID, the command displays information about the specified socket.
Examples
# Display information about all sockets.
<Sysname> display ipv6 socket
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
SOCK_DGRAM:
Task = AGNT(51), socketid = 2, Proto = 17,
LA = ::->161, FA = ::->0,
sndbuf = 9216, rcvbuf = 42080, sb_cc = 0, rb_cc = 0,
socket option = SO_REUSEPORT,
socket state = SS_PRIV SS_NBIO SS_ASYNC
Task = TRAP(52), socketid = 2, Proto = 17,
LA = ::->1024, FA = ::->0,
sndbuf = 9216, rcvbuf = 42080, sb_cc = 0, rb_cc = 0,
socket option =,
socket state = SS_PRIV
SOCK_RAW:
Task = ROUT(86), socketid = 5, Proto = 89,
LA = ::, FA = ::,
sndbuf = 262144, rcvbuf = 262144, sb_cc = 0, rb_cc = 0,
socket option = SO_REUSEADDR,
socket state = SS_PRIV SS_ASYNC
Table 8 Command output
Field |
Description |
SOCK_STREAM |
TCP socket. |
SOCK_DGRAM |
UDP socket. |
SOCK_RAW |
Raw IP socket. |
Task |
Task name and ID of the created socket. |
socketid |
ID assigned by the kernel to the created socket. |
Proto |
Protocol type, for example, 6 indicates TCP and 17 indicates UDP. |
LA |
Local address and local port number. |
FA |
Remote address and remote port number. |
sndbuf |
Size of the send buffer. |
rcvbuf |
Size of the receive buffer. |
sb_cc |
Number of bytes sent by the send buffer. |
rb_cc |
Number of bytes received by the receive buffer. |
socket option |
Socket option set by the application: · SO_ACCEPTCONN—Detects connection request at the server end. · SO_REUSEADDR—Allows for reuse of a local address. · SO_REUSEPORT—Allows for reuse of a local port. · SO_SENDVPNID—Enables sending of the VPN ID. |
socket state |
State of the socket. |
display ipv6 statistics
Use display ipv6 statistics to display statistics of IPv6 packets and ICMPv6 packets.
Syntax
display ipv6 statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
You can use the reset ipv6 statistics command to clear all IPv6 and ICMPv6 packet statistics.
Examples
# Display the statistics of IPv6 packets and ICMPv6 packets.
<Sysname> 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 router renumbering: 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
echo request: 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 9 Command output
Field |
Description |
IPv6 Protocol |
Statistics of IPv6 packets. |
Sent packets |
Statistics of sent IPv6 packets: · Total—Total number of packets sent and forwarded locally. · local sent out—Number of packets sent locally. · forwarded—Number of forwarded packets. · raw packets—Number of packets sent through raw socket. · discarded—Number of discarded packets. · routing failed—Number of packets failing to be routed. · fragments—Number of sent fragment packets. · fragments failed—Number of fragments failing to be sent. |
Received packets |
Statistics of received IPv6 packets: · Total—Total number of received packets. · local host—Number of packets received locally. · hopcount exceeded—Number of packets exceeding the hop limit. · format error—Number of packets in an incorrect format. · option error—Number of packets with incorrect options. · protocol error—Number of packets with incorrect protocol. · fragments—Number of received fragment packets. · reassembled—Number of reassembled packets. · reassembly failed—Number of packets failing to be reassembled. · reassembly timeout—Number of packets whose reassembly times out. |
ICMPv6 protocol |
Statistics of ICMPv6 packets. |
Sent packets |
Statistics of sent ICMPv6 packets: · Total—Total number of sent packets. · unreached—Number of Destination Unreachable packets. · too big—Number of Packet Too Big packets. · hopcount exceeded—Number of Hop Limit Exceeded packets. · reassembly timeout—Number of Fragment Reassembly Time Exceeded packets. · parameter problem—Number of Parameter Problem packets. · echo request—Number of Echo Request packets. · echo replied—Number of Echo Reply packets. · neighbor solicit—Number of neighbor solicitation packets. · neighbor advert—Number of neighbor advertisement packets. · router solicit—Number of router solicitation packets. · router advert—Number of router advertisement packets. · redirected—Number of Redirect packets. · router renumbering—Number of router renumber (RR) packets. · send failed Total number of packets failed to send. · ratelimited—Number of packets failing to be sent due to rate limitation. · other errors—Number of packets with other errors. |
Received packets |
Statistics of received ICMPv6 packets: · Total—Total number of received packets. · checksum error—Number of packets with checksum errors. · too short—Number of too small packets. · bad code—Number of packets with error codes. · unreached—Number of Destination Unreachable packets. · too big—Number of Packet Too Big packets. · hopcount exceeded—Number of Hop Limit Exceeded packets. · reassembly timeout—Number of Fragment Reassembly Times Exceeded packets. · parameter problem—Number of Parameter Problem packets. · unknown error type—Number of packets with unknown errors. · echo request—Number of Echo Request packets. · echo replied—Number of Echo Reply packets. · neighbor solicit—Number of neighbor solicitation messages. · neighbor advert—Number of neighbor advertisement packets. · router solicit—Number of router solicitation packets. · router advert—Number of router advertisement packets. · redirected—Number of Redirect packets. · router renumbering—Number of RR packets. · unknown info type—Number of unknown type of packets. · deliver failed—Total number of packets failed to receive. · bad length—Number of packets with an incorrect size. · ratelimited—Number of packets failed to receive due to rate limitation. |
display tcp ipv6 statistics
Use display tcp ipv6 statistics to display IPv6 TCP connection statistics.
Syntax
display tcp ipv6 statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
You can use the reset tcp ipv6 statistics command to clear statistics of all IPv6 TCP packets.
Examples
# Display the statistics of IPv6 TCP connections.
<Sysname> 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)
Packets dropped with MD5 authentication: 0
Packets permitted with MD5 authentication: 0
Table 10 Command output
Field |
Description |
Received packets |
Statistics of received packets: · Total—Total number of received packets. · packets in sequence—Number of packets received in sequence. · window probe packets—Number of window probe packets. · window update packets—Number of window size update packets. · checksum error—Number of packets with checksum errors. · offset error—Number of packets with offset errors. · short error—Number of packets whose total length is less than that specified by the packet header. · duplicate packets—Number of duplicate packets. · partially duplicate packets—Number of partially duplicate packets. · out-of-order packets—Number of out-of-order packets. · packets with data after window—Number of packets exceeding the size of the receiving window. · packets after close—Number of packets received after the connection is closed. · ACK packets—Number of ACK packets. · duplicate ACK packets—Number of duplicate ACK packets. · too much ACK packets—Number of excessive ACK packets. |
Sent packets |
Statistics of sent packets: · Total—Total number of packets. · urgent packets—Number of packets containing an urgent indicator. · control packets—Number of control packets. · window probe packets—Number of window probe packets. · window update packets—Number of window update packets. · data packets—Number of data packets. · data packets retransmitted—Number of retransmitted packets. · ACK only packets—Number of ACK 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). |
Packets dropped with MD5 authentication |
Number of packets that fail the MD5 authentication and are dropped. |
Packets permitted with MD5 authentication |
Number of packets that pass the MD5 authentication. |
display tcp ipv6 status
Use display tcp ipv6 status to display the IPv6 TCP connection status, including the IPv6 TCP control block address, local and peer IPv6 addresses, and status of the IPv6 TCP connection.
Syntax
display tcp ipv6 status [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the IPv6 TCP connection status.
<Sysname> display tcp ipv6 status
*: TCP6 MD5 Connection
TCP6CB Local Address Foreign Address State
045d8074 ::->21 ::->0 Listening
Table 11 Command output
Field |
Description |
*: TCP6 MD5 Connection |
The asterisk (*) indicates that the TCP6 connection is secured with MD5 authentication. |
TCP6CB |
IPv6 TCP control block address (in hexadecimal). |
Local Address |
Local IPv6 address. |
Foreign Address |
Remote IPv6 address. |
State |
IPv6 TCP connection status: · Closed. · Listening. · Syn_Sent. · Syn_Rcvd. · Established. · Close_Wait. · Fin_Wait1. · Closing. · Last_Ack. · Fin_Wait2. · Time_Wait. |
display udp ipv6 statistics
Use display udp ipv6 statistics to display the statistics of IPv6 UDP packets.
Syntax
display udp ipv6 statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
You can use the reset udp ipv6 statistics command to clear the statistics of all IPv6 UDP packets.
Examples
# Display the statistics of IPv6 UDP packets.
<Sysname> 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 12 Command output
Field |
Description |
Total |
Total number of received/sent packets. |
checksum error |
Total number of packets with a checksum error. |
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. |
broadcast/multicast(no socket on port) |
Total number of received broadcast/multicast packets without any socket. |
not delivered, input socket full |
Number of packets not handled because the receive buffer is full. |
input packet missing pcb cache |
Number of packets that fail to match the protocol control block cache. |
ipv6
Use ipv6 to enable IPv6.
Use undo ipv6 to disable IPv6.
Syntax
ipv6
undo ipv6
Default
IPv6 is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable IPv6.
<Sysname> system-view
[Sysname] ipv6
ipv6 address
Use ipv6 address to configure an IPv6 global unicast address for an interface.
Use undo ipv6 address to remove the IPv6 address from the interface.
Syntax
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]
Default
No global unicast address is configured for an interface.
Views
Interface view
Default command level
2: System level
Parameters
ipv6-address: Specifies the IPv6 address.
prefix-length: Specifies the Prefix length of the IPv6 address, in the range of 1 to 128.
Usage guidelines
Except for the link-local address automatically obtained and the link-local address generated through stateless autoconfiguration, all IPv6 addresses are removed from the interface if the undo ipv6 address command is executed without any parameter specified.
Examples
# Set the IPv6 global unicast address of VLAN-interface 100 to 2001::1 with prefix length 64.
Method 1:
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001::1/64
Method 2:
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001::1 64
ipv6 address prefix-number
Use ipv6 address prefix-number to apply a prefix to generate an IPv6 address. The IPv6 address of an interface comprises the specified prefix, sub-prefix bit, and host bit.
Use undo ipv6 address prefix-number to remove an IPv6 address generated with an applied prefix.
Syntax
ipv6 address prefix-number sub-prefix/prefix-length
undo ipv6 address prefix-number
Default
No prefix is applied for IPv6 address generation on an interface.
Views
Interface view
Default command level
2: System level
Parameters
prefix-number: Specifies an IPv6 prefix by its ID in the range of 1 to 1024.
sub-prefix/prefix-length: Specifies the sub-prefix bit and host bit for an IPv6 address, and specifies the prefix length. The value range for prefix length is 1 to 128.
Usage guidelines
A maximum of one IPv6 address can be generated with the applied IPv6 prefix for an interface. You cannot execute the ipv6 address prefix-number command multiple times on the interface to modify the prefix.
Examples
# Create IPv6 prefix AAAA::/16 and assign ID 1 to the prefix. Apply the prefix to VLAN-interface 100 to generate an IPv6 address, set sub-prefix bit and host bit to BBBB:CCCC:DDDD::10, and the prefix length to 32. The generated address for the interface is AAAA:CCCC:DDDD::10/32.
<Sysname> system-view
[Sysname] ipv6 prefix 1 AAAA::/16
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 1 BBBB:CCCC:DDDD::10/32
ipv6 address anycast
Use ipv6 address anycast to configure an IPv6 anycast address for an interface.
Use undo ipv6 address anycast to remove the IPv6 anycast address from the interface.
Syntax
ipv6 address ipv6-address/prefix-length anycast
undo ipv6 address ipv6-address/prefix-length anycast
Default
No IPv6 anycast address is configured for an interface.
Views
Interface view
Default command level
2: System level
Parameters
ipv6-address/prefix-length: Specifies an IPv6 anycast address and its prefix length. The value range for prefix length is 1 to 128.
Examples
# Set the IPv6 anycast address of VLAN-interface 100 to 2001::1 with prefix length 64.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001::1/64 anycast
ipv6 address auto link-local
Use ipv6 address auto link-local to automatically generate a link-local address for an interface.
Use undo ipv6 address auto link-local to remove the automatically generated link-local address for the interface.
Syntax
ipv6 address auto link-local
undo ipv6 address auto link-local
Default
No link-local address is configured on an interface, and a link-local address is automatically generated after an IPv6 global unicast address is configured for the interface.
Views
Interface view
Default command level
2: System level
Usage guidelines
After an IPv6 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.
The undo ipv6 address auto link-local command can only remove the link-local addresses generated through the ipv6 address auto link-local command. After the undo ipv6 address auto link-local command is used on an interface that has an IPv6 global unicast address configured, the interface still has a link-local address. If the interface has no IPv6 global unicast address configured, it has no link-local address.
Manual assignment takes precedence over automatic generation. If you first adopt automatic generation and then manual assignment, the manually assigned link-local address overwrites the automatically generated address. If you first use manual assignment and then automatic generation, the automatically generated link-local address does not take effect and the link-local address of an interface is still the manually assigned address. If you delete the manually assigned address, the automatically generated link-local address becomes effective. For more information about manual assignment of an IPv6 link-local address, see the ipv6 address link-local command.
Examples
# Configure VLAN-interface 100 to automatically generate a link-local address.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address auto link-local
ipv6 address eui-64
Use ipv6 address eui-64 to configure an EUI-64 IPv6 address for an interface.
Use undo ipv6 address eui-64 to remove the configured EUI-64 IPv6 address for the interface.
Syntax
ipv6 address ipv6-address/prefix-length eui-64
undo ipv6 address ipv6-address/prefix-length eui-64
Default
No EUI-64 IPv6 address is configured for an interface.
Views
Interface view
Default command level
2: System level
Parameters
ipv6-address/prefix-length: IPv6 address and IPv6 prefix length. The ipv6-address and prefix-length arguments jointly specify the prefix of an EUI-64 IPv6 address.
Usage guidelines
An EUI-64 IPv6 address is generated based on the specified prefix and the automatically generated interface identifier, and can be displayed by using the display ipv6 interface command.
The prefix length of an EUI-64 IPv6 address cannot be greater than 64.
Examples
# Configure an EUI-64 IPv6 address for VLAN-interface 100. The prefix length of the address is the same as that of 2001::1/64, and the interface ID is generated based on the MAC address of the device.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001::1/64 eui-64
ipv6 address link-local
Use ipv6 address link-local to configure a link-local address for the interface.
Use undo ipv6 address link-local to remove the configured link-local address for the interface.
Syntax
ipv6 address ipv6-address link-local
undo ipv6 address ipv6-address link-local
Views
Interface view
Default command level
2: System level
Parameters
ipv6-address: IPv6 link-local address. The first 10 bits of an address must be 1111111010 (binary). The first group of hexadecimals in the address must be in the range of FE80 to FEBF.
Usage guidelines
Manual assignment takes precedence over automatic generation. If you first adopt automatic generation and then manual assignment, the manually assigned link-local address overwrites the automatically generated one. If you first adopt manual assignment and then automatic generation, the automatically generated link-local address does 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 becomes effective. For information about automatic generation of an IPv6 link-local address, see the ipv6 address auto link-local command.
Examples
# Configure a link-local address for VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address fe80::1 link-local
ipv6 fib-loadbalance-type hash-based
Use ipv6 fib-loadbalance-type hash-based to enable load sharing based on the HASH algorithm for packet forwarding.
Use undo ipv6 fib-loadbalance-type hash-based to restore the default.
Syntax
ipv6 fib-loadbalance-type hash-based
undo ipv6 fib-loadbalance-type hash-based
Default
Load sharing based on polling is adopted. ECMP routes are used in turn to forward packets.
Views
System view
Default command level
2: System level
Examples
# Enable load sharing based on the HASH algorithm for packet forwarding.
<Sysname> system-view
[Sysname] ipv6 fib-loadbalance-type hash-based
ipv6 hoplimit-expires enable
Use ipv6 hoplimit-expires enable to enable sending ICMPv6 Time Exceeded messages.
Use undo ipv6 hoplimit-expires to disable sending ICMPv6 Time Exceeded messages.
Syntax
ipv6 hoplimit-expires enable
undo ipv6 hoplimit-expires
Default
Sending ICMPv6 Time Exceeded messages is enabled.
Views
System view
Default command level
2: System level
Usage guidelines
After you disable sending ICMPv6 Time Exceeded messages, the device still sends Fragment Reassembly Time Exceeded messages.
Examples
# Disable sending ICMPv6 Time Exceeded messages.
<Sysname> system-view
[Sysname] undo ipv6 hoplimit-expires
ipv6 icmp-error
Use ipv6 icmp-error to configure the size and update interval of the token bucket.
Use undo ipv6 icmp-error to restore the defaults.
Syntax
ipv6 icmp-error { bucket bucket-size | ratelimit interval } *
undo ipv6 icmp-error
Default
The size is 10 and the update interval is 100 milliseconds. A maximum of 10 ICMPv6 error messages can be sent within 100 milliseconds.
Views
System view
Default command level
2: System level
Parameters
bucket bucket-size: Specifies the number of tokens in the token bucket, in the range of 1 to 200.
ratelimit interval: Specifies the update interval of the token bucket in milliseconds, in the range of 0 to 2147483647. The update interval of 0 indicates that the number of ICMPv6 error messages sent is not restricted.
Examples
# Set the capacity of the token bucket to 50 and the update interval to 100 milliseconds.
<Sysname> system-view
[Sysname] ipv6 icmp-error bucket 50 ratelimit 100
ipv6 icmpv6 multicast-echo-reply enable
Use ipv6 icmpv6 multicast-echo-reply enable to enable replying to multicast echo requests.
Use undo ipv6 icmpv6 multicast-echo-reply to disable replying to multicast echo requests.
Syntax
ipv6 icmpv6 multicast-echo-reply enable
undo ipv6 icmpv6 multicast-echo-reply
Default
The device is disabled from replying to multicast echo requests.
Views
System view
Default command level
2: System level
Examples
# Enable replying to multicast echo requests.
<Sysname> system-view
[Sysname] ipv6 icmpv6 multicast-echo-reply enable
ipv6 nd autoconfig managed-address-flag
Use ipv6 nd autoconfig managed-address-flag to set the managed address configuration (M) flag to 1 so that the host can acquire an IPv6 address through stateful autoconfiguration (for example, from a DHCP server).
Use undo ipv6 nd autoconfig managed-address-flag to restore the default.
Syntax
ipv6 nd autoconfig managed-address-flag
undo ipv6 nd autoconfig managed-address-flag
Default
The M flag is set to 0 so that the host can acquire an IPv6 address through stateless autoconfiguration.
Views
Interface view
Default command level
2: System level
Examples
# Configure the host to acquire an IPv6 address through stateful autoconfiguration.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd autoconfig managed-address-flag
ipv6 nd autoconfig other-flag
Use ipv6 nd autoconfig other-flag to set the other stateful configuration flag (O) to 1 so that the host can acquire information other than IPv6 address through stateful autoconfiguration (for example, from a DHCP server).
Use undo ipv6 nd autoconfig other-flag to restore the default.
Syntax
ipv6 nd autoconfig other-flag
undo ipv6 nd autoconfig other-flag
Default
The O flag is set to 0 so that the host can acquire other information through stateless autoconfiguration.
Views
Interface view
Default command level
2: System level
Examples
# Configure the host to acquire information other than IPv6 address through stateless autoconfiguration.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] undo ipv6 nd autoconfig other-flag
ipv6 nd dad attempts
Use ipv6 nd dad attempts to configure the number of attempts to send an NS message for DAD.
Use undo ipv6 nd dad attempts to restore the default.
Syntax
ipv6 nd dad attempts value
undo ipv6 nd dad attempts
Default
The number of attempts to send an NS message for DAD is 1.
Views
Interface view
Default command level
2: System level
Parameters
value: Number of attempts to send an NS message for DAD, in the range of 0 to 600. The default value is 1. To disable DAD, set the value to 0.
Examples
# Set the number of attempts to send an NS message for DAD to 20.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd dad attempts 20
display ipv6 interface
ipv6 nd hop-limit
Use ipv6 nd hop-limit to configure the hop limit advertised by the device.
Use undo ipv6 nd hop-limit to restore the default hop limit.
Syntax
ipv6 nd hop-limit value
undo ipv6 nd hop-limit
Default
The hop limit advertised by the device is 64.
Views
System view
Default command level
2: System level
Parameters
value: Specifies the 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. The number of hops is determined by the requesting device itself.
Examples
# Set the hop limit advertised by the device to 100.
<Sysname> system-view
[Sysname] ipv6 nd hop-limit 100
ipv6 nd ns retrans-timer
Use ipv6 nd ns retrans-timer to set the interval for retransmitting an NS message. The local interface retransmits an NS message at intervals of this value. The Retrans Timer field in RA messages sent by the local interface is equal to this value.
Use undo ipv6 nd ns retrans-timer to restore the default.
Syntax
ipv6 nd ns retrans-timer value
undo ipv6 nd ns retrans-timer
Default
The local interface sends NS messages at an interval of 1000 millisecond and the Retrans Timer field in the RA messages sent is 0, so the interval for retransmitting an NS message is determined by the receiving device.
Views
Interface view
Default command level
2: System level
Parameters
value: Interval for retransmitting an NS message in milliseconds, in the range of 1000 to 4294967295.
Examples
# Specify VLAN-interface 100 to retransmit NS messages at intervals of 10000 milliseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ns retrans-timer 10000
display ipv6 interface
ipv6 nd nud reachable-time
Use ipv6 nd nud reachable-time 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 Time field in RA messages sent by the local interface.
Use undo ipv6 nd nud reachable-time to restore the default.
Syntax
ipv6 nd nud reachable-time value
undo ipv6 nd nud reachable-time
Default
The neighbor reachable time on the local interface is 30000 milliseconds and the value of the Reachable Time field in RA messages is 0, so the reachable time is determined by the receiving device.
Views
Interface view
Default command level
2: System level
Parameters
value: Neighbor reachable time in milliseconds, in the range of 1 to 3600000.
Examples
# Set the neighbor reachable time on VLAN-interface 100 to 10,000 milliseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd nud reachable-time 10000
display ipv6 interface
ipv6 nd ra halt
Use ipv6 nd ra halt to enable RA message suppression.
Use undo ipv6 nd ra halt to disable RA message suppression.
Syntax
ipv6 nd ra halt
undo ipv6 nd ra halt
Default
RA messages are suppressed.
Views
Interface view
Default command level
2: System level
Examples
# Suppress RA messages on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ra halt
ipv6 nd ra interval
Use ipv6 nd ra interval to set the maximum and minimum intervals for advertising RA messages. The device advertises RA messages at intervals that are a random value between the maximum interval and the minimum interval.
Use undo ipv6 nd ra interval to restore the default.
Syntax
ipv6 nd ra interval max-interval-value min-interval-value
undo ipv6 nd ra interval
Default
The maximum interval between RA messages is 600 seconds, and the minimum interval is 200 seconds.
Views
Interface view
Default command level
2: System level
Parameters
max-interval-value: Maximum interval for advertising RA messages in seconds, in the range of 4 to 1800.
min-interval-value: Minimum interval for advertising RA messages in seconds, in the range of 3 to 1350.
Usage guidelines
The minimum interval should be three-fourths of the maximum interval or less.
The maximum interval for sending RA messages should be less than or equal to the router lifetime in RA messages.
Examples
# Set the maximum interval for advertising RA messages to 1000 seconds and the minimum interval to 700 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ra interval 1000 700
ipv6 nd ra no-advlinkmtu
Use ipv6 nd ra no-advlinkmtu to turn off the MTU option in RA messages.
Use undo ipv6 nd ra no-advlinkmtu to restore the default.
Syntax
ipv6 nd ra no-advlinkmtu
undo ipv6 nd ra no-advlinkmtu
Default
RA messages contain the MTU option.
Views
Interface view
Default command level
2: System level
Examples
# Turn off the MTU option in RA messages on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ra no-advlinkmtu
ipv6 nd ra prefix
Use ipv6 nd ra prefix to configure the prefix information in RA messages.
Use undo ipv6 nd ra prefix to remove the prefix information from RA messages.
Syntax
ipv6 nd ra prefix { ipv6-prefix prefix-length | ipv6-prefix/prefix-length } valid-lifetime preferred-lifetime [ no-autoconfig | off-link ] *
undo ipv6 nd ra prefix { ipv6-prefix | ipv6-prefix/prefix-length }
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 with a valid lifetime of 2592000 seconds (30 days) and a preferred lifetime of 604800 seconds (7 days).
Views
Interface view
Default command level
2: System level
Parameters
ipv6-prefix: IPv6 prefix.
prefix-length: Prefix length of the IPv6 address.
valid-lifetime: Valid lifetime of a prefix in seconds, in the range of 0 to 4294967295.
preferred-lifetime: Preferred lifetime of a prefix used for stateless autoconfiguration in seconds, in the range of 0 to 4294967295.
no-autoconfig: Excludes the prefix from stateless autoconfiguration. If this keyword is not provided, the prefix is used for stateless autoconfiguration.
off-link: Indicates that the address with the prefix is not directly reachable on the link. If this keyword is not provided, the address with the prefix is directly reachable on the link.
Examples
# Configure the prefix information about RA messages on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ra prefix 2001:10::100/64 100 10
ipv6 nd ra router-lifetime
Use ipv6 nd ra router-lifetime to configure the router lifetime in RA messages.
Use undo ipv6 nd ra router-lifetime to restore the default.
Syntax
ipv6 nd ra router-lifetime value
undo ipv6 nd ra router-lifetime
Default
The router lifetime in RA messages is 1800 seconds.
Views
Interface view
Default command level
2: System level
Parameters
value: Router lifetime in seconds, in the range of 0 to 9000. When the value is 0, the device does not serve as the default router.
Usage guidelines
The router lifetime in RA messages should be greater than or equal to the advertising interval.
Examples
# Set the router lifetime in RA messages on VLAN-interface 100 to 1000 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ra router-lifetime 1000
ipv6 neighbor
Use ipv6 neighbor to configure a static neighbor entry.
Use undo ipv6 neighbor to remove a static neighbor entry.
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
undo ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number | interface interface-type interface-number }
Views
System view
Default command level
2: System level
Parameters
ipv6-address: IPv6 address of the static neighbor entry.
mac-address: MAC address of the static neighbor entry (48 bits long in the format of H-H-H).
vlan-id: VLAN ID of the static neighbor entry, in the range of 1 to 4094.
port-type port-number: Type and number of a Layer 2 port of the static neighbor entry.
interface interface-type interface-number: Type and number of a Layer 3 interface of the static neighbor entry.
Usage guidelines
You can use a Layer 3 VLAN interface or a Layer 2 port in the VLAN to configure a static neighbor entry.
· If the first method is used, the neighbor entry is in INCMP state. After the device obtains the corresponding Layer 2 port information, the neighbor entry goes into REACH state.
· If the second method is used, the corresponding VLAN interface must exist and the port specified by port-type port-number must belong to the VLAN specified by vlan-id. After the static neighbor entry is configured, the device associates the VLAN interface with the IPv6 address to uniquely identify the static neighbor entry and the entry is in REACH state.
To remove a static neighbor entry, specify the VLAN interface and the neighbor address.
Examples
# Configure a static neighbor entry for Layer 2 port Ten-GigabitEthernet 1/0/1 of VLAN 100.
<Sysname> system-view
[Sysname] ipv6 neighbor 2000::1 fe-e0-89 100 Ten-GigabitEthernet 1/0/1
display ipv6 neighbors
ipv6 neighbor stale-aging
Use ipv6 neighbor stale-aging to set the aging timer for ND entries in stale state.
Use undo ipv6 neighbor stale-aging to restore the default.
Syntax
ipv6 neighbor stale-aging aging-time
undo ipv6 neighbor stale-aging
Default
The aging timer for ND entries in stale state is four hours.
Views
System view
Default command level
2: System level
Parameters
aging-time: Specifies the aging timer for ND entries in stale state. The value range is 1 to 24 hours.
Examples
# Set the aging timer for ND entries in stale state to two hours.
<Sysname> system-view
[Sysname] ipv6 neighbor stale-aging 2
ipv6 neighbors max-learning-num
Use ipv6 neighbors max-learning-num to set the maximum number of dynamic neighbor entries that can be learned by the interface.
Use undo ipv6 neighbors max-learning-num to restore the default.
Syntax
ipv6 neighbors max-learning-num number
undo ipv6 neighbors max-learning-num
Default
A Layer 2 interface does not limit the number of dynamic neighbor entries that can be learned. The maximum number of dynamic neighbor entries that a Layer 3 interface can learn varies with devices. For more information, see About the H3C Access Controllers Command References.
Views
Interface view
Default command level
2: System level
Parameters
number: Specifies the maximum number of dynamic neighbor entries that can be learned by the interface. The value range varies with devices. For more information, see About the H3C Access Controllers Command References.
Examples
# Set the maximum number of dynamic neighbor entries that can be learned by VLAN-interface 100 to 10.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 neighbors max-learning-num 10
ipv6 pathmtu
Use ipv6 pathmtu to configure a static path MTU for a specific IPv6 address.
Use undo ipv6 pathmtu to remove the path MTU configuration for a specific IPv6 address.
Syntax
ipv6 pathmtu ipv6-address [ value ]
undo ipv6 pathmtu ipv6-address
Default
No static path MTU is configured.
Views
System view
Default command level
2: System level
Parameters
ipv6-address: IPv6 address.
value: Path MTU of a specific IPv6 address in bytes. The value range is 1280 to 10000, and the default is 1500.
Examples
# Configure a static path MTU for a specific IPv6 address.
<Sysname> system-view
[Sysname] ipv6 pathmtu fe80::12 1300
ipv6 pathmtu age
Use ipv6 pathmtu age to configure the aging time for a dynamic path MTU.
Use undo ipv6 pathmtu age to restore the default.
Syntax
ipv6 pathmtu age age-time
undo ipv6 pathmtu age
Default
The aging time is 10 minutes.
Views
System view
Default command level
2: System level
Parameters
age-time: Aging time for path MTU in minutes, in the range of 10 to 100.
Usage guidelines
The aging time is invalid for a static path MTU.
Examples
# Set the aging time for a dynamic path MTU to 40 minutes.
<Sysname> system-view
[Sysname] ipv6 pathmtu age 40
Related commands
display ipv6 pathmtu
ipv6 prefix
Use ipv6 prefix to create a static IPv6 prefix.
Use undo ipv6 prefix to remove the specified static IPv6 prefix.
Syntax
ipv6 prefix prefix-number ipv6-prefix/prefix-length
undo ipv6 prefix prefix-number
Default
No static IPv6 prefix is specified.
Views
System view
Default command level
2: System level
Parameters
prefix-number: Specifies a prefix ID in the range of 1 to 1024.
ipv6-prefix/prefix-length: Specifies a prefix and the prefix length. The value range for the prefix-length argument is 1 to 128.
Usage guidelines
You cannot execute the ipv6 prefix command to modify an existing static prefix.
When a DHCPv6 client obtains an IPv6 prefix from a DHCP server, the IPv6 prefix is dynamically generated. You cannot modify or remove the dynamically generated prefix.
The prefix IDs of a static IPv6 prefix and a dynamical IPv6 prefix cannot be the same.
Examples
# Create static IPv6 prefix 2001:0410::/32 with prefix ID 1.
<Sysname> system-view
[Sysname] ipv6 prefix 1 2001:0410::/32
Related commands
display ipv6 prefix
ipv6 redirects enable
Use ipv6 redirects enable to enable sending ICMPv6 redirect messages.
Use undo ipv6 redirects to disable sending ICMPv6 redirect messages.
Syntax
ipv6 redirects enable
undo ipv6 redirects
Default
Sending ICMPv6 redirect messages is disabled.
Views
System view
Default command level
System level
Examples
# Enable sending ICMPv6 redirect messages.
<Sysname> system-view
[Sysname] ipv6 redirects enable
ipv6 unreachables enable
Use ipv6 unreachables enable to enable sending ICMPv6 destination unreachable messages.
Use undo ipv6 unreachables to disable sending ICMPv6 destination unreachable messages.
Syntax
ipv6 unreachables enable
undo ipv6 unreachables
Default
Sending ICMPv6 destination unreachable messages is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable sending ICMPv6 destination unreachable messages.
<Sysname> system-view
[Sysname] ipv6 unreachables enable
reset ipv6 neighbors
Use reset ipv6 neighbors to clear IPv6 neighbor information.
Syntax
reset ipv6 neighbors { all | dynamic | interface interface-type interface-number | static }
Views
User view
Default command level
2: System level
Parameters
all: Clears static and dynamic neighbor information on all interfaces.
dynamic: Clears dynamic neighbor information on all interfaces.
interface interface-type interface-number: Clears dynamic neighbor information on a specific interface.
static: Clears static neighbor information on all interfaces.
Usage guidelines
You can use the display ipv6 neighbors command to display the current IPv6 neighbor information.
Examples
# Clear neighbor information on all interfaces.
<Sysname> reset ipv6 neighbors all
% Info: This will delete all the entries. Continue? [Y/N]: y
# Clear dynamic neighbor information on all interfaces.
<Sysname> reset ipv6 neighbors dynamic
% Info: This will delete all the dynamic entries. Continue? [Y/N]: y
reset ipv6 pathmtu
Use reset ipv6 pathmtu to clear path MTU information.
Syntax
reset ipv6 pathmtu { all | static | dynamic }
Views
User view
Default command level
2: System level
Parameters
all: Clears all path MTUs.
static: Clears all static path MTUs.
dynamic: Clears all dynamic path MTUs.
Examples
# Clear all path MTUs.
<Sysname> reset ipv6 pathmtu all
reset ipv6 statistics
Use reset ipv6 statistics to clear the statistics of IPv6 packets and ICMPv6 packets.
Syntax
reset ipv6 statistics
Views
User view
Default command level
1: Monitor level
Parameters
None
Usage guidelines
You can use the display ipv6 statistics command to display the statistics of IPv6 and ICMPv6 packets.
Examples
# Clear the statistics of IPv6 packets and ICMPv6 packets.
<Sysname> reset ipv6 statistics
reset tcp ipv6 statistics
Use reset tcp ipv6 statistics to clear the statistics of all IPv6 TCP connections.
Syntax
reset tcp ipv6 statistics
Views
User view
Default command level
1: Monitor level
Usage guidelines
You can use the display tcp ipv6 statistics command to display the statistics of IPv6 TCP connections.
Examples
# Clear the statistics of all IPv6 TCP connections.
<Sysname> reset tcp ipv6 statistics
reset udp ipv6 statistics
Use reset udp ipv6 statistics to clear the statistics of all IPv6 UDP packets.
Syntax
reset udp ipv6 statistics
Views
User view
Default command level
1: Monitor level
Usage guidelines
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
Use tcp ipv6 timer fin-timeout to set the finwait timer for IPv6 TCP connections.
Use undo tcp ipv6 timer fin-timeout to restore the default.
Syntax
tcp ipv6 timer fin-timeout wait-time
undo tcp ipv6 timer fin-timeout
Default
The finwait timer is 675 seconds.
Views
System view
Default command level
2: System level
Parameters
wait-time: Sets the finwait timer for IPv6 TCP connections in seconds, in the range of 76 to 3600.
Examples
# Set the finwait timer of IPv6 TCP connections to 800 seconds.
<Sysname> system-view
[Sysname] tcp ipv6 timer fin-timeout 800
tcp ipv6 timer syn-timeout
Use tcp ipv6 timer syn-timeout to set the synwait timer for IPv6 TCP connections
Use undo tcp ipv6 timer syn-timeout to restore the default.
Syntax
tcp ipv6 timer syn-timeout wait-time
undo tcp ipv6 timer syn-timeout
Default
The synwait timer of IPv6 TCP connections is 75 seconds.
Views
System view
Default command level
2: System level
Parameters
wait-time: Sets the synwait timer for IPv6 TCP connections in seconds, in the range of 2 to 600.
Examples
# Set the synwait timer of IPv6 TCP connections to 100 seconds.
<Sysname> system-view
[Sysname] tcp ipv6 timer syn-timeout 100
tcp ipv6 window
Use tcp ipv6 window to set the size of the IPv6 TCP send/receive buffer.
Use undo tcp ipv6 window to restore the default.
Syntax
tcp ipv6 window size
undo tcp ipv6 window
Default
The size of the IPv6 TCP send/receive buffer is 8 KB.
Views
System view
Default command level
2: System level
Parameters
size: Size of the IPv6 TCP send/receive buffer in KB, in the range of 1 to 32.
Examples
# Set the size of the IPv6 TCP send/receive buffer to 4 KB.
<Sysname> system-view
[Sysname] tcp ipv6 window 4