H3C S9500 Command Manual-Release2132[V2.03]-02 IP Services Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release2132[V2.03]-02 IP Services Volume
07-IPv6 Basics Commands
Title Size Download
07-IPv6 Basics Commands 185.75 KB

Table of Contents

Chapter 1 IPv6 Basics Configuration Commands. 1-1

1.1 IPv6 Basics Configuration Commands. 1-1

1.1.1 debugging ipv6 icmpv6. 1-1

1.1.2 debugging ipv6 nd. 1-2

1.1.3 debugging ipv6 packet 1-3

1.1.4 debugging ipv6 pathmtu. 1-5

1.1.5 debugging tcp ipv6. 1-6

1.1.6 debugging udp ipv6 packet 1-8

1.1.7 display dns ipv6 dynamic-host 1-10

1.1.8 display ipv6 fib. 1-11

1.1.9 display ipv6 fibcache. 1-12

1.1.10 display ipv6 host 1-13

1.1.11 display ipv6 interface. 1-14

1.1.12 display ipv6 neighbors. 1-16

1.1.13 display ipv6 neighbors count 1-17

1.1.14 display ipv6 pathmtu. 1-18

1.1.15 display ipv6 socket 1-19

1.1.16 display tcp ipv6 statistics. 1-21

1.1.17 display tcp ipv6 status. 1-24

1.1.18 display udp ipv6 statistics. 1-25

1.1.19 dns server ipv6. 1-26

1.1.20 ipv6. 1-27

1.1.21 ipv6 address. 1-28

1.1.22 ipv6 address auto link-local 1-28

1.1.23 ipv6 address eui-64. 1-29

1.1.24 ipv6 address link-local 1-30

1.1.25 ipv6 fibcache. 1-31

1.1.26 ipv6 fib-loadbalance-type hash-based. 1-31

1.1.27 ipv6 host 1-32

1.1.28 ipv6 icmp-error 1-33

1.1.29 ipv6 mtu. 1-33

1.1.30 ipv6 nd autoconfig managed-address-flag. 1-34

1.1.31 ipv6 nd autoconfig other-flag. 1-35

1.1.32 ipv6 nd dad attempts. 1-36

1.1.33 ipv6 nd hop-limit 1-36

1.1.34 ipv6 nd ns retrans-timer 1-37

1.1.35 ipv6 nd nud reachable-time. 1-38

1.1.36 ipv6 nd ra halt 1-39

1.1.37 ipv6 nd ra interval 1-39

1.1.38 ipv6 nd ra prefix. 1-40

1.1.39 ipv6 nd ra router-lifetime. 1-41

1.1.40 ipv6 neighbor 1-42

1.1.41 ipv6 neighbors max-learning-num.. 1-43

1.1.42 ipv6 pathmtu. 1-44

1.1.43 ipv6 pathmtu age. 1-45

1.1.44 reset dns ipv6 dynamic-host 1-45

1.1.45 reset ipv6 fibcache. 1-46

1.1.46 reset ipv6 neighbors. 1-46

1.1.47 reset ipv6 pathmtu. 1-47

1.1.48 reset ipv6 statistics. 1-48

1.1.49 reset tcp ipv6 statistics. 1-48

1.1.50 reset udp ipv6 statistics. 1-49

1.1.51 tcp ipv6 timer fin-timeout 1-49

1.1.52 tcp ipv6 timer syn-timeout 1-50

1.1.53 tcp ipv6 window. 1-50

 


Chapter 1  IPv6 Basics Configuration Commands

1.1  IPv6 Basics Configuration Commands

1.1.1  debugging ipv6 icmpv6

Syntax

debugging ipv6 icmpv6

undo debugging ipv6 icmpv6

View

User view

Default Level

1: Monitor level

Parameters

None

Description

Use the debugging ipv6 icmpv6 command to enable ICMPv6 debugging to display the received and transmitted ICMPv6 packets.

Use the undo debugging ipv6 icmpv6 command to disable ICMPv6 debugging.

By default, ICMPv6 debugging is disabled.

Examples

# Enable ICMPv6 debugging on an IPv6 interface of an IPv6-supported device.

<Sysname> debugging ipv6 icmpv6

*Mar 23 15:03:40:599 2007 Sysname ICMPV6/7/debug_ipv6 ICMPv6:

ICMPv6 Sent: Type=128, Code=0, Dst = 3000::3

// An ICMPv6 packet is sent.

*Mar 23 15:03:40:727 2007 Sysname ICMPV6/7/debug_ipv6 ICMPv6:

ICMPv6 Received: Type=129, Code=0,

Src = 3000::3, Dst = 3000::2

*Mar 23 15:03:40:888 2007 Sysname ICMPV6/7/debug_ipv6 ICMPv6:Slot=2;

ICMPv6 Received: Type=129, Code=0,

Src = 3000::3, Dst = 3000::2

// An ICMPv6 packet is received.

Table 1-1 Description on fields of the debugging ipv6 icmpv6 command

Field

Description

Sent

Send a packet

Received

Receive a packet

Type

Type of an ICMPv6 packet

Code

Code of an ICMPv6 packet

Src

Source IP address

Dst

Destination IP address

 

1.1.2  debugging ipv6 nd

Syntax

debugging ipv6 nd

undo debugging ipv6 nd

View

User view

Default Level

1: Monitor level

Parameters

None

Description

Use the debugging ipv6 nd command to enable debugging for neighbor state and neighbor messages.

Use the undo debugging ipv6 nd command to disable the debugging.

By default, the debugging for neighbor state and neighbor messages is disabled.

Examples

# Enable debugging for neighbor state and neighbor messages on an IPv6 interface of an IPv6-supported device.

<Sysname> debugging ipv6 nd

*Mar 23 15:08:37:939 2007 Sysname ND/7/debug_ipv6 ND:

 Adding INCOMPLETE NB Entry: 3000::3 on Vlan-interface3000

// A neighbor entry in the incomplete state is added.

*Mar 23 15:08:38:77 2007 Sysname ND/7/debug_ipv6 ND:

 Address Resolution started for 3000::3 on Vlan-interface3000

// Resolution of the IP address 3000::3 of the neighbor starts.

*Mar 23 15:08:38:217 2007 Sysname ND/7/debug_ipv6 ND:

 Sending NS to FF02::1:FF00:3, on the interface Vlan-interface3000

// An NS message is sent to the MAC address FF02::1:FF00:3.

*Mar 23 15:08:39:107 2007 Sysname ND/7/debug_ipv6 ND:Slot=2;

 Received NA from 3000::3, on the interface Vlan-interface3000

// An NA message is received from 3000::3.

*Mar 23 15:08:39:257 2007 Sysname ND/7/debug_ipv6 ND:Slot=2;

 INCOMPLETE->REACHABLE : 3000::3 on Vlan-interface3000

// The state of a neighbor entry is changed from incomplete to reachable.

Table 1-2 Description on fields of the debugging ipv6 nd command

Field

Description

Adding

Add a neighbor entry

Address Resolution

Start address resolution

Sending

Send a packet

Received

Receive a packet

NS

Neighbor solicitation message

NA

Neighbor advertisement message

 

1.1.3  debugging ipv6 packet

Syntax

debugging ipv6 packet

undo debugging ipv6 packet

View

User view

Default Level

1: Monitor level

Parameters

None

Description

Use the debugging ipv6 packet command to enable IPv6 packet debugging.

Use the undo debugging ipv6 packet command to disable the debugging.

By default, IPv6 packet debugging is disabled.

Examples

# Enable IPv6 packet debugging on an IPv6 interface of an IPv6-supported device.

<Sysname> terminal debugging

% Current terminal debugging is on

<Sysname> debugging ipv6 packet

*Mar 23 15:13:20:766 2007 Sysname IPV6PP/7/debug_ipv6:Slot=2;

Sending, interface = Vlan-interface3000, version = 6, traffic class = 0,

flow label = 0, payload length = 64, protocol = 58, hop limit = 255,

Src = 3000::2, Dst = 3000::3,

prompt: Sending the packet from local at Vlan-interface3000

// A packet is sent.

*Mar 23 15:13:21:136 2007 Sysname IPV6PP/7/debug_ipv6:Slot=2;

Receiving, interface = Vlan-interface3000, version = 6, traffic class = 0,

flow label = 0, payload length = 64, protocol = 58, hop limit = 64,

Src = 3000::3, Dst = 3000::2,

prompt: Input an IPv6 Package

// A packet is received from the Ethernet.

*Mar 23 15:13:21:466 2007 Sysname IPV6PP/7/debug_ipv6:Slot=2;

Delivering, interface = Vlan-interface3000, version = 6, traffic class = 0,

flow label = 0, payload length = 64, protocol = 58, hop limit = 64,

Src = 3000::3, Dst = 3000::2,

prompt: IPv6 packet is delivering up!

// The received packet is delivered to the upper layer.

Table 1-3 Description on major fields of the debugging ipv6 packet command

Field

Description

Sending

Send a packet.

Receiving

Receive a packet.

Delivering

The packet is delivered from the IP layer to the upper layer.

Interface

Receiving/sending interface

Version

Version of the IP protocol

Traffic class

Class of the traffic

Protocol

Next packet header

Src

Source IP address

Dst

Destination IP address

 

1.1.4  debugging ipv6 pathmtu

Syntax

debugging ipv6 pathmtu

undo debugging ipv6 pathmtu

View

User view

Default Level

1: Monitor level

Parameters

None

Description

Use the debugging ipv6 pathmtu command to enable IPv6 path maximum transmission unit (PMTU) debugging.

Use the undo debugging ipv6 pathmtu command to disable the debugging.

By default, the IPv6 PMTU debugging is disabled.

Examples

# Enable PMTU debugging.

<Sysname> terminal debugging

% Current terminal debugging is on

<Sysname> debugging ipv6 pathmtu

# Add a PMTU entry to view the corresponding debugging information.

*Mar 23 15:15:21:972 2007 Sysname IPV6PMTU/7/Debug_ipv6_pathmtu:

Information-> Adding PMTU Entry at MultipleIndex,

Value = 128,

Prompt-> Successful Addition of PMTU entry

 

*Mar 23 15:15:22:186 2007 Sysname IPV6PMTU/7/Debug_ipv6_pathmtu:Slot=1;

Information-> PMTU IPC ReceivedEvent,

Value = 0,

Prompt-> Successful in Synchronizing

Table 1-4 Description on major fields of the debugging ipv6 pathmtu command

Field

Description

Adding

Add a PMTU entry

Value

PMTU entry index

 

1.1.5  debugging tcp ipv6

Syntax

debugging tcp ipv6 { event | packet } [ task-id socket-id ]

undo debugging tcp ipv6 { event | packet } [ task-id socket-id ]

View

User view

Default Level

1: Monitor level

Parameters

event: Enables event debugging.

packet: Enables packet debugging.

task-id socket-id: Task ID and socket ID. All tasks and sockets apply if this argument is not specified.

Description

Use the debugging tcp ipv6 command to enable TCPv6 packet and event debugging for the specified task ID or socket ID.

Use the undo debugging tcp ipv6 command to disable TCPv6 packet and event debugging.

By default, TCPv6 packet and event debugging is disabled.

The packet debugging displays information of each input and output packet, and the event debugging displays only the TCP packet header information.

Examples

# Enable the telnet server function on an IPv6 interface of an IPv6-supported device.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] telnet server enable

% Start Telnet server

# Create a VTY user.

[Sysname] user-interface vty 0 4

[Sysname-ui-vty0-4] authentication-mode none

[Sysname-ui-vty0-4] user privilege level 3

# Enable IPv6 TCP event debugging.

<Sysname> terminal debugging

% Current terminal debugging is on

<Sysname> debugging tcp ipv6 event

# Use the telnet ipv6 function to telnet the local device from another device. The debugging information is displayed as follows:

*Mar 23 15:30:12:454 2007 Sysname IPV6TCP/7/TCP6 EVENT:

1174663812: task = VTYD(57), socketid = 0,

TCP6CB 0x063b8184 created

// A TCP control block is created.

*Mar 23 15:30:12:611 2007 Sysname IPV6TCP/7/TCP6 EVENT:

1174663812: task = VTYD(57), socketid = 0,

state Closed changed to Listening

// The state is changed.

*Mar 23 15:30:12:782 2007 Sysname IPV6TCP/7/TCP6 EVENT:

1174663812: task = VTYD(57), socketid = 0,

Received MSS 1440, LA = 3000::3:23, FA = 3000::2:1024

// The maximum segment size (MSS) is received from the peer.

*Mar 23 15:30:12:971 2007 Sysname IPV6TCP/7/TCP6 EVENT:

1174663812: task = VTYD(57), socketid = 0,

state Listening changed to Syn_Rcvd

 

*Mar 23 15:30:13:141 2007 Sysname IPV6TCP/7/TCP6 EVENT:

1174663812: task = VTYD(57), socketid = 0,

Advertising MSS 1440, LA = 3000::3:23, FA = 3000::2:1024

// The local MSS is advertised to the peer.

*Mar 23 15:30:13:331 2007 Sysname IPV6TCP/7/TCP6 EVENT:

1174663812: task = VTYD(57), socketid = 3,

state Syn_Rcvd changed to Established

# Enable IPv6 TCP packet debugging.

<Sysname> debugging tcp ipv6 packet

*Mar 23 15:31:43:92 2007 Sysname IPV6TCP/7/TCP6 PACKET:

1174663897: Input: task = VTYD(57), socketid = 3, state = Established,

src = 3000::2->1025, dst = 3000::3->23,

seq = 1849193033, ack = 2118699532, optlen = 12, flag = ACK,

window = 8192

// A packet is received.

*Mar 23 15:31:43:392 2007 Sysname IPV6TCP/7/TCP6 PACKET:Slot=5;Distributed to board 0

*Mar 23 15:31:46:703 2007 Sysname IPV6TCP/7/TCP6 PACKET:

1174663906: Output: src = 3000::3->23, dst = 3000::2->1025,

seq = 2118699531, ack = 1849193033, flag = ACK,

// A packet is sent.

Table 1-5 Description on fields of the debugging tcp ipv6 command

Field

Description

Task

TCP connection establishment task

Socketid

Socket ID used for establishing a TCP connection

State

TCP connection state

Received MSS

MSS advertised by the peer.

LA

Local IP address and port number

FA

Peer IP address and port number

Advertising

The local end advertises the local information to the peer.

Src

Source IP address

Dst

Destination IP address

Seq

Packet sequence number

Ack

Packet acknowledgement number

Optlen

Packet option length

Flag

Flag bit

Window

Window size

 

1.1.6  debugging udp ipv6 packet

Syntax

debugging udp ipv6 packet [ task-id socket-id ]

undo debugging udp ipv6 packet [ task-id socket-id ]

View

User view

Default Level

1: Monitor level

Parameters

task-id socket-id: Task ID and socket ID. All tasks and sockets apply if this argument is not specified.

Description

Use the debugging udp ipv6 packet command to enable IPv6 User Datagram Protocol (UDP) packet debugging.

Use the undo debugging udp ipv6 packet command to disable IPv6 UDP packet debugging.

By default, IPv6 UDP packet debugging is disabled.

Examples

# Use the tracert ipv6 function to telnet an IPv6-supported device with the interfaces configured with IPv6 IP addresses.

# Enable IPv6 UDP packet debugging for all sockets and tasks.

<Sysname> debugging udp ipv6 packet

*Mar 23 15:50:58:903 2007 Sysname IPV6UDP/7/debug_case:

1174665058: O: task = co0(16), socketid = 2,

src = ::->30016,

dst = 3000::3->33434, datalen = 12

 

*Mar 23 15:51:27:231 2007 Sysname IPV6UDP/7/debug_case:

1174665087: I: unreachable port

src = 3000::2->30016,

dst = 3000::3->33434, datalen = 12

# Disable IPv6 UDP packet debugging.

<Sysname> undo debugging udp ipv6 packet

Table 1-6 Description on the fields of the debugging udp ipv6 command

Field

Description

Task

TCP connection establishment task

Socketid

Socket ID used for establishing a TCP connection

Src

Source IP address

Dst

Destination IP address

I

Input packets

O

Output packets

Datalen

Data length

 

1.1.7  display dns ipv6 dynamic-host

Syntax

display dns ipv6 dynamic-host

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display dns ipv6 dynamic-host command to display IPv6 dynamic domain name cache information.

Examples

# Display IPv6 dynamic domain name cache information.

<Sysname> display dns ipv6 dynamic-host

No      Domain-name    Ipv6 Address     TTL

1           aaa            3001::2            6

Table 1-7 Description on fields of the display dns ipv6 dynamic-host command

Field

Description

No

Sequence number

Domain-name

Host name

Ipv6 Address

IPv6 address of the host

TTL

Time an entry can be cached in seconds

 

&  Note:

A domain name in the fields of the display dns ipv6 dynamic-host command contains 20 characters at most. If a domain name consists of more than 20 characters, only the first 20 characters are displayed.

 

1.1.8  display ipv6 fib

Syntax

display ipv6 fib [ slot-number ] [ ipv6-address ]

View

Any view

Default Level

1: Monitor level

Parameters

slot-number: Number of the slot whose IPv6 forwarding information base (FIB) entries are to be displayed.

ipv6-address: Destination IPv6 address whose IPv6 FIB entries are to be displayed.

Description

Use the display ipv6 fib command to display IPv6 FIB entries. If no argument is specified, all FIB entries will be displayed.

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         : HU

Label      :    NULL                                    Tunnel ID    : 0

TimeStamp  :    Date- 7/14/2007, Time- 15:17:15

Interface  :    InLoopBack0

Table 1-8 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 to be forwarded

PrefixLength

Prefix length of the destination address

NextHop

Next hop of the route to the destination

Flag

Route flag:

l      U — Usable route

l      G — Gateway route

l      H — Host route

l      B — Black hole route

l      D — Dynamic route

l      S — Static route

Label

Label

Tunnel ID

ID of a tunnel

TimeStamp

Generation time of a FIB entry

Interface

Outgoing interface that forwards packets

 

1.1.9  display ipv6 fibcache

Syntax

display ipv6 fibcache slot-number

View

Any view

Default Level

1: Monitor level

Parameters

slot-number: Number of the slot whose IPv6 FIB cache information is to be displayed.

Description

Use the display ipv6 fibcache command to display the total number of routes in the IPv6 FIB cache.

Examples

# Display the IPv6 FIB information in the cache.

<Sysname> display ipv6 fibcache

FIB Cache:

 Total number of Routes : 0

1.1.10  display ipv6 host

Syntax

display ipv6 host

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display ipv6 host command to display the mappings between host names and IPv6 addresses in the static DNS database.

Examples

# Display the mappings between host names and IPv6 addresses.

<Sysname> display ipv6 host

Host                 Age           Flags           IPv6Address

aaa                  0             static           2002::1

bbb                  0             static           2002::2

Table 1-9 Description on fields of the display ipv6 host command

Field

Description

Host

Host name

Age

Time for the entry to live. “0” is displayed in the case of static configuration.

Flags

Flag indicating the type of mapping between a host name and an IPv6 address. Static indicates a static mapping.

IPv6Address

IPv6 address of a host

 

1.1.11  display ipv6 interface

Syntax

display ipv6 interface [ interface-type interface-number | brief ]

View

Any view

Default Level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface.

brief: Displays brief IPv6 information of an interface.

Description

Use the display ipv6 interface command to display the IPv6 information of an interface for which an IPv6 interface can be configured.

When interface-type interface-number is not specified, the IPv6 information of all interfaces for which IPv6 addresses can be configured is displayed.

Examples

# Display the IPv6 information of VLAN-interface 2.

<Sysname> display ipv6 interface vlan-interface 2

Vlan-interface2 current state :DOWN

Line protocol current state :DOWN

IPv6 is enabled, link-local address is FE80::1234:56FF:FE65:4322 [TENTATIVE]

  Global unicast address(es):

    2001::1, subnet is 2001::/64 [TENTATIVE]

  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                         

Table 1-10 Description on fields of the display ipv6 interface command (on a switch)

Field

Description

Vlan-interface2 current state

Physical state of the interface

Line protocol current state

Link layer protocol state of the interface

IPv6 is enabled

IPv6 packet forwarding state of the interface (IPv6 packet forwarding is enabled in the example)

link-local address

Link-local address configured for the interface

Global unicast address(es)

Global unicast address(es) configured for the interface(s)

Joined group address(es)

Address(es) of multicast group(s) that the interface joins

MTU

Maximum transmission unit of the interface

ND DAD is enabled, number of DAD attempts

Number of 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

 

# Display the brief IPv6 information of all interfaces for which IPv6 addresses can be configured.

<Sysname> display ipv6 interface brief

*down: administratively down

(s): spoofing

Interface                 Physical      Protocol        IPv6 Address

Vlan-interface1             down         down            Unassigned

Vlan-interface2             down         down            Unassigned

Vlan-interface100           down         down            Unassigned

Table 1-11 Description on fields of display ipv6 interface brief (on a switch)

Field

Description

*down

The interface is down, that is, the interface is closed 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 the interface

IPv6 Address

IPv6 address of the interface. (If no address is configured for the interface, “Unassigned” will be displayed.)

 

1.1.12  display ipv6 neighbors

Syntax

display ipv6 neighbors { { ipv6-address | all | dynamic | static } [ slot slot-number ] | interface interface-type interface-number | vlan vlan-id } [ | { begin | exclude | include } text ]

View

Any view

Default Level

1: Monitor level

Parameters

ipv6-address: IPv6 address whose neighbor information is to be displayed.

all: Displays information of all neighbors, including neighbors acquired dynamically and configured statically.

dynamic: Displays information of all neighbors acquired dynamically.

static: Displays information of all neighbors configured statically.

slot slot-number: Displays information of the neighbors of a specified slot.

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.

|: Uses a regular expression to match neighbor entries. For detailed information about regular expression, refer to CLI display in Basic System Configuration in the System Volume.

begin: Displays the neighbor entries from the first one containing 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.

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  100  GE4/2/1    REACH  S   -

Table 1-12 Description on fields of the display ipv6 neighbors command

Field

Description

IPv6 Address

IPv6 address of a neighbor

Link-layer

Link layer address (MAC address of a neighbor)

VID

VLAN to which the interface connected with a neighbor belongs

Interface

Interface connected with a neighbor

State

State of a neighbor, including:

l      INCMP: The address is being resolved. The link layer address of the neighbor is unknown.

l      REACH: The neighbor is reachable.

l      STALE: The reachability of the neighbor is unknown. The device will not verify the reachability any longer unless data is sent to the neighbor.

l      DELAY: The reachability of the neighbor is unknown. The device sends an NS message after a delay.

l      PROBE: The reachability of the neighbor is unknown. The device sends an NS message to verify the reachability of the neighbor.

T

Type of neighbor information, including static configuration and dynamic acquisition.

Age

For a static entry, a hyphen “-“ is displayed. For a dynamic entry, the reachable time (in seconds) elapsed is displayed. Therefore, the aging time can only be displayed after a neighbor goes into the REACH state. If the directly generated ND entry is in the STALE state, “#” is displayed (for a neighbor acquired dynamically).

 

1.1.13  display ipv6 neighbors count

Syntax

display ipv6 neighbors { { all | dynamic | static } [ slot slot-number ] | interface interface-type interface-number | vlan vlan-id } count

View

Any view

Default 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 all neighbor entries acquired dynamically.

static: Displays the total number of neighbor entries configured statically.

slot slot-number: Displays the total number of neighbor entries of a specified slot.

interface interface-type interface-number: Displays the total number of neighbor entries of a specified interface.

vlan vlan-id: Displays the total number of neighbor entries of a specified VLAN.

Description

Use the display ipv6 neighbors count command to display the total number of neighbor entries satisfying the specified condition.

Examples

# Display the total number of neighbor entries acquired dynamically.

<Sysname> display ipv6 neighbors dynamic count

Total dynamic entry(ies):  2

1.1.14  display ipv6 pathmtu

Syntax

display ipv6 pathmtu { ipv6-address | all | dynamic | static }

View

Any view

Default Level

1: Monitor level

Parameters

ipv6-address: IPv6 address whose PMTU is to be displayed.

all: Displays all PMTU information.

dynamic: Displays all dynamic PMTU information.

dynamic: Displays all static PMTU information.

Description

Use the display ipv6 pathmtu command to display the PMTU information of IPv6 addresses.

Examples

# Display all PMTU values.

<Sysname> display ipv6 pathmtu all

Ipv6 Destination Address ZoneID  PathMTU     Age     Type

 fe80::12                    0       1300            40      Dynamic

 2222::3                 0       1280            -       Static

Table 1-13 Description on fields of the display ipv6 pathmtu command

Field

Description

Ipv6 Destination Address

Destination IPv6 address

ZoneID

ID of address zone, currently invalid

PathMTU

PMTU of an IPv6 address

Age

Time for a PMTU to live. For a static PMTU, a hyphen “-“ is displayed.

Type

Indicates the PMTU is dynamically negotiated or statically configured.

 

1.1.15  display ipv6 socket

Syntax

display ipv6 socket [ socktype socket-type ] [ task-id socket-id ] [ slot slot-number ]

View

Any view

Default Level

1: Monitor level

Parameters

socktype socket-type: Displays the socket information of this type. The socket type is in the range of 1 to 3. The value “1” is for TCP socket, “2” for UDP socket, and “3” for raw IP socket.

task-id: Displays the socket information of the task. The task ID is in the range 1 to 100.

socket-id: Displays the information of the socket. The socket ID is in the range 0 to 3072.

slot slot-number: Displays the IPv6 socket information on a specified slot.

Description

Use the display ipv6 socket command to display IPv6 socket information.

Examples

# Display the information of a specified socket.

<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 1-14 Description on fields of the display ipv6 socket command

Field

Description

SOCK_STREAM

TCP socket

SOCK_DGRAM

UDP socket

SOCK_RAW

Raw IP socket

Task

Task ID of the created socket

Socketid

ID assigned by the kernel to the created socket

Proto

Protocol ID

LA

Local address and local port number

FA

Remote address and remote port number

Sndbuf

Size of the 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

Socket state

State of the socket

 

1.1.16  display tcp ipv6 statistics

Syntax

display tcp ipv6 statistics

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display tcp ipv6 statistics command to display IPv6 TCP statistics.

Examples

# Display the statistics of received and sent IPv6 TCP packets.

<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)

Table 1-15 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

l      Total number of received packets

l      Number of packets received in sequence

l      Number of  window probe packets/number of  window size update packets

l      Number of packets with checksum errors

l      Number of packets with offset errors

l      Number of packets whose total length is less than specified in the packet header

l      Number of duplicate packets

l      Number of partially duplicate packets

l      Number of out-of-order packets

l      Number of packets exceeding the size of the receiving window

l      Number of packets received after the connection is closed

l      Number of  ACK packets

l      Number of duplicate/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

l      Total number of packets

l      Number of packets containing an urgent indicator

l      Number of  control packets

l      Number of window probe packets

l      Number of window update packets

l      Number of data packets

l      Number of retransmitted packets

l      Number of ACK 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.17  display tcp ipv6 status

Syntax

display tcp ipv6 status

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display tcp ipv6 command to display the IPv6 TCP connection status.

Examples

# Display the IPv6 TCP connection status.

<Sysname> display tcp ipv6 status

TCP6CB       Local Address       Foreign Address      State

045d8074     ::->21                ::->0              Listening

Table 1-16 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

IPv6 TCP connection status, including

l      Closed

l      Listening

l      Syn_Sent

l      Syn_Rcvd

l      Established

l      Close_Wait

l      Fin_Wait1

l      Closing

l      Last_Ack

l      Fin_Wait2

l      Time_Wait

 

1.1.18  display udp ipv6 statistics

Syntax

display udp ipv6 statistics

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display udp ipv6 statistics command to display statistics of IPv6 UDP packets.

Examples

# Display statistics information 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 1-17 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 a checksum error

shorter than header

Total number of IPv6 UDP packets whose total length is less than 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 unicast packets without any socket received on a port

broadcast/multicast(no socket on port)

Total number of broadcast/multicast packets without any socket received on a port

not delivered, input socket full

Number of packets not handled because of the receive buffer being full

input packet missing pcb cache

Number of packets failing to match the PCB cache

 

1.1.19  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

Default Level

2: System level

Parameters

ipv6-address: IPv6 address of a DNS server.

interface-type interface-number: Specifies an interface. When the IPv6 address of the DNS server is a link-local address, this argument must be specified.

Description

Use the dns server ipv6 command to configure an IPv6 address for a DNS server.

Use the undo dns server ipv6 command to remove the configured DNS server.

By default, no DNS server is configured.

Examples

# Configure the IPv6 address 2002::1 for a DNS server.

<Sysname> system-view

[Sysname] dns server ipv6 2002::1

1.1.20  ipv6

Syntax

ipv6

undo ipv6

View

System view

Default Level

2: System level

Parameters

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.

Examples

# Enable the IPv6 packet forwarding function.

<Sysname> system-view

[Sysname] ipv6

1.1.21  ipv6 address

Syntax

ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]

View

Interface view

Default Level

2: System level

Parameters

ipv6-address: IPv6 address.

prefix-length: Prefix length of the IPv6 address, in the range 1 to 128.

Description

Use the ipv6 address command to configure an IPv6 site-local address or global unicast address for an interface.

Use the undo ipv6 address command to remove the IPv6 address from the interface.

By default, no site-local address or global unicast address is configured for an interface.

Note that you will remove all IPv6 addresses except the automatically configured link-local address if you carry out the undo ipv6 address command without any parameter specified.

Examples

# Set the global unicast address of the interface VLAN-interface 1 to 2001::1/64.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 address 2001::1/64

1.1.22  ipv6 address auto link-local

Syntax

ipv6 address auto link-local

undo ipv6 address auto link-local

View

Interface view

Default Level

2: System level

Parameters

None

Description

Use the ipv6 address auto link-local command to automatically generate a link-local address for an interface.

Use the undo ipv6 address auto link-local command to remove the automatically generated link-local address for an interface.

By default, no link-local address is automatically generated for an interface.

Examples

# Configure the interface VLAN-interface 1 to automatically generate a link-local address.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 address auto link-local

1.1.23  ipv6 address eui-64

Syntax

ipv6 address ipv6-address/prefix-length eui-64

undo ipv6 address ipv6-address/prefix-length eui-64

View

Interface view

Default Level

2: System level

Parameters

ipv6-address/prefix-length: IPv6 address and IPv6 prefix. The ipv6-address and prefix-length arguments jointly specify the prefix of an IPv6 address in the EUI-64 format.

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.

Examples

# Configure an IPv6 address in EUI-64 format for the interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 address 2001::1/64 eui-64

1.1.24  ipv6 address link-local

Syntax

ipv6 address ipv6-address link-local

undo ipv6 address ipv6-address link-local

View

Interface view

Default Level

2: System level

Parameters

ipv6-address: IPv6 link-local address. The first ten bits of an address must be 1111111010 (binary), that is, the first group of hexadecimals in the address must be FE80 to FEBF.

Description

Use the ipv6 address link-local command to configure a link-local address manually for a specified interface. Use the undo ipv6 address link-local command to remove the configured link-local address for an interface.

Examples

# Configure a link-local address for the interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 address fe80::1 link-local

1.1.25  ipv6 fibcache

Syntax

ipv6 fibcache { slot-number | all }

undo ipv6 fibcache { slot-number | all }

View

System view

Default Level

2: System level

Parameters

slot-number: Slot number.

all: Specifies all slots.

Description

Use the ipv6 fibcache command to enable the caching function of the IPv6 FIB.

Use the undo ipv6 fibcache command to disable the caching function of the IPv6 FIB.

By default, the caching function of the IPv6 FIB is disabled.

Note that the caching function of the IPv6 FIB is valid only for packets to be forwarded.

Examples

# Enable the caching function of the IPv6 FIB.

<Sysname> system-view

[Sysname] ipv6 fibcache all

1.1.26  ipv6 fib-loadbalance-type hash-based

Syntax

ipv6 fib-loadbalance-type hash-based

undo ipv6 fib-loadbalance-type hash-based

View

System view

Default Level

2: System level

Parameters

None

Description

Use the ipv6 fib-loadbalance-type hash-based command to specify the load sharing mode based on the HASH algorithm for packet forwarding.

Use the undo ipv6 fib-loadbalance-type hash-based command to restore the load sharing mode to the default.

By default, the load sharing based on polling is adopted, that is, each equal cost multi-path (ECMP) route is used in turn to forward packets.

Examples

# Specify the load sharing mode based on the HASH algorithm for packet forwarding.

<Sysname> system-view

[Sysname] ipv6 fib-loadbalance-type hash-based

1.1.27  ipv6 host

Syntax

ipv6 host hostname ipv6-address

undo ipv6 host hostname [ ipv6-address ]

View

System view

Default Level

2: System level

Parameters

hostname: Host name, a string of 1 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 mappings between host names and IPv6 addresses.

Use the undo ipv6 host command to remove the mappings between host names and IPv6 addresses.

Each host name can correspond to only one IPv6 address.

Examples

# Configure the mapping between a host name and an IPv6 address.

<Sysname> system-view

[Sysname] ipv6 host aaa 2001::1

1.1.28  ipv6 icmp-error

Syntax

ipv6 icmp-error { bucket bucket-size | ratelimit interval } *

undo ipv6 icmp-error

View

System view

Default Level

2: System level

Parameters

bucket-size: Number of tokens in a token bucket.

interval: Update period of the token bucket in milliseconds. The update period “0” indicates that the number of ICMPv6 error packets sent is not restricted.

Description

Use the ipv6 icmp-error command to configure the maximum number of ICMPv6 error packets that can be sent within the specified period.

Use the undo ipv6 icmp-error command to restore the default size and update period of the token bucket.

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 these 100 milliseconds.

Examples

# Set the capacity of the token bucket to 50 and the update period to 100 milliseconds.

<Sysname> system-view

[Sysname] ipv6 icmp-error bucket 50 ratelimit 100

1.1.29  ipv6 mtu

Syntax

ipv6 mtu mtu-size

undo ipv6 mtu

View

Interface view

Default Level

2: System level

Parameters

mtu-size: Size of the maximum transmission units (MTUs) of an interface in bytes, in the range 1280 to 10240.

Description

Use the ipv6 mtu command to set the MTU of IPv6 packets sent over an interface.

Use the undo ipv6 mtu command to restore the default.

Examples

# Set the MTU of IPv6 packets sent over the interface VLAN-interface 12 to 1,280 bytes.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ipv6 mtu 1280

1.1.30  ipv6 nd autoconfig managed-address-flag

Syntax

ipv6 nd autoconfig managed-address-flag

undo ipv6 nd autoconfig managed-address-flag

View

Interface view

Default Level

2: System level

Parameters

None

Description

Use the ipv6 nd autoconfig managed-address-flag command to set the managed address configuration (M) flag 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 default.

By default, the M flag is set to 0 so that the host can acquire an IPv6 address through stateless autoconfiguration.

By default, the M flag is set to 0.

Examples

# Configure the host to acquire an IPv6 address through stateful auto-configuration.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 nd autoconfig managed-address-flag

1.1.31  ipv6 nd autoconfig other-flag

Syntax

ipv6 nd autoconfig other-flag

undo ipv6 nd autoconfig other-flag

View

Interface view

Default Level

2: System level

Parameters

None

Description

Use the ipv6 nd autoconfig other-flag command to set the other stateful configuration flag (O) flag 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 restore the default.

By default, the O flag is set to 0 so that the host can acquire other information through stateless autoconfiguration.

Examples

# Configure the host to acquire information other than IPv6 address through stateless auto-configuration.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] undo ipv6 nd autoconfig other-flag

1.1.32  ipv6 nd dad attempts

Syntax

ipv6 nd dad attempts value

undo ipv6 nd dad attempts

View

Interface view

Default Level

2: System level

Parameters

value: Number of attempts to send a neighbor solicitation message for DAD. The default value is 1. When it is set to 0, the DAD is disabled.

Description

Use the ipv6 nd dad attempts command to configure the number of attempts to send a neighbor solicitation message for DAD.

Use the undo ipv6 nd dad attempts command to restore the default.

By default, the number of attempts to send a neighbor solicitation message for DAD is 1.

Examples

# Set the number of attempts to send a neighbor solicitation message for DAD to 20.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 nd dad attempts 20

1.1.33  ipv6 nd hop-limit

Syntax

ipv6 nd hop-limit value

undo ipv6 nd hop-limit

View

System view

Default Level

2: System level

Parameters

value: Number of hops. When it is set to 0, the Cur Hop Limit field in RA messages sent by the device is 0. That is, the number of hops is determined by the host itself, but not specified by the device.

Description

Use the ipv6 nd hop-limit command to configure the hop limit advertised by the device.

Use the undo ipv6 nd hop-limit command to restore the default.

By default, the hop limit advertised by the device is 64.

Examples

# Set the hop limit advertised by the device to 100.

<Sysname> system-view

[Sysname] ipv6 nd hop-limit 100

1.1.34  ipv6 nd ns retrans-timer

Syntax

ipv6 nd ns retrans-timer value

undo ipv6 nd ns retrans-timer

View

Interface view

Default Level

2: System level

Parameters

value: Interval for sending NS messages in milliseconds.

Description

Use the ipv6 nd ns retrans-timer command to set the interval for sending NS messages. The local interface sends NS messages 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 default interval.

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 0.

Examples

# Specify VLAN-interface 100 to send NS messages at intervals of 10,000 milliseconds.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 nd ns retrans-timer 10000

1.1.35  ipv6 nd nud reachable-time

Syntax

ipv6 nd nud reachable-time value

undo ipv6 nd nud reachable-time

View

Interface view

Default Level

2: System level

Parameters

value: Neighbor reachable time in milliseconds.

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 default neighbor reachable time and to specify the value of the Reachable Timer field in RA messages as 0 so that the number of hops is determined by the host itself, but not specified by the device.

By default, the neighbor reachable time on the local interface is 30,000 milliseconds and the Reachable Timer field in RA messages is 0.

Examples

# Set the neighbor reachable time on the interface VLAN-interface 1 to 10,000 milliseconds.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 nd nud reachable-time 10000

1.1.36  ipv6 nd ra halt

Syntax

ipv6 nd ra halt

undo ipv6 nd ra halt

View

Interface view

Default Level

2: System level

Parameters

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.

Examples

# Suppress RA messages on the interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 nd ra halt

1.1.37  ipv6 nd ra interval

Syntax

ipv6 nd ra interval max-interval-value min-interval-value

undo ipv6 nd ra interval

View

Interface view

Default Level

2: System level

Parameters

max-interval-value: Maximum interval for advertising RA messages in seconds.

min-interval-value: Minimum interval for advertising RA messages in seconds.

Description

Use the ipv6 nd ra interval command to set the maximum and minimum interval for advertising RA messages. The device advertises 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 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.

Examples

# Set the maximum interval for advertising RA messages to 1,000 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

1.1.38  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-prefix

View

Interface view

Default Level

2: System level

Parameters

ipv6-address: IPv6 address or IPv6 address prefix.

prefix-length: Prefix length of an IPv6 address.

ipv6-prefix: IPv6 address prefix.

valid-lifetime: Valid lifetime of a prefix in seconds.

preferred-lifetime: Preferred lifetime of a prefix used for stateless autoconfiguration in seconds.

no-autoconfig: Specifies a prefix not to 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 is used as the prefix information.

Examples

# Configure the prefix information for RA messages on the interface VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 nd ra prefix 2001:10::100/64 100 10

[Sysname-Ethernet1/0] ipv6 nd ra prefix 2001:10::100/64 100 10

1.1.39  ipv6 nd ra router-lifetime

Syntax

ipv6 nd ra router-lifetime value

undo ipv6 nd ra router-lifetime

View

Interface view

Default Level

2: System level

Parameters

value: Routing device lifetime in seconds. When it is set to 0, the device does not serve as the default routing device.

Description

Use the ipv6 nd ra router-lifetime command to configure the routing device lifetime in RA messages.

Use the undo ipv6 nd ra router-lifetime command to restore the default.

By default, the routing device lifetime in RA messages is 1,800 seconds.

Note that the routing device lifetime in RA messages should be greater than or equal to the advertising interval.

Examples

# Set the routing device lifetime in RA messages on the interface VLAN-interface 1 to 1,000 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 nd ra router-lifetime 1000

1.1.40  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

Default Level

2: System level

Parameters

ipv6-address: IPv6 address in a static neighbor entry.

mac-address: Link layer address in a static neighbor entry (48 bits long, in the format of H-H-H).

vlan-id: VLAN ID in a static neighbor entry.

port-type port-number: Type and number of  a Layer 2 port in a static neighbor entry.

interface-type interface-number: Type and number of a Layer 3 interface in a static neighbor entry.

Description

Use the ipv6 neighbor command to configure a static neighbor entry.

Use the undo ipv6 neighbor command to remove a static neighbor entry.

Note that you can adopt the IPv6 address and link layer address of the Layer 3 VLAN interface or those of the VLAN port to configure a static neighbor entry.

l           If a static neighbor entry is configured by using the first method, the neighbor entry is in the INCMP state. After the device obtains the corresponding Layer 2 VLAN port information through resolution, the neighbor entry will go into the REACH state.

l           If a static neighbor entry is configured by using the second method, 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 a static neighbor entry is configured, the device will relate the VLAN interface with the IPv6 address to identify a static neighbor entry uniquely and the entry will be in the REACH state.

You only need to specify the corresponding VLAN interface before removing a static neighbor entry.

Examples

# Configure a static neighbor entry for layer 2 port Ethernet 4/1/1 of VLAN 1.

<Sysname> system-view

[Sysname] ipv6 neighbor 2000::1 fe-e0-89 1 ethernet4/1/1

1.1.41  ipv6 neighbors max-learning-num

Syntax

ipv6 neighbors max-learning-num number

undo ipv6 neighbors max-learning-num

View

Interface view

Default Level

2: System level

Parameters

number: Maximum number of neighbors that can be dynamically learned by an interface.

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 default.

By default, the maximum number of neighbors that can be dynamically learned on an interface is 1024.

Examples

# Set the maximum number of neighbors that can be dynamically learned on the interface VLAN-interface 1 to 10.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ipv6 neighbors max-learning-num 10

1.1.42  ipv6 pathmtu

Syntax

ipv6 pathmtu ipv6-address [ value ]

undo ipv6 pathmtu ipv6-address

View

System view

Default Level

2: System level

Parameters

ipv6-address: Specified IPv6 address.

value: PMTU of a specified IPv6 address in bytes.

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.

Examples

# Configure a static PMTU for a specified IPv6 address.

<Sysname> system-view

[Sysname] ipv6 pathmtu fe80::12 1300

1.1.43  ipv6 pathmtu age

Syntax

ipv6 pathmtu age age-time

undo ipv6 pathmtu age

View

System view

Default Level

2: System level

Parameters

age-time: Aging time for PMTU in minutes.

Description

Use the ipv6 pathmtu age command to configure the aging time for a dynamic PMTU.

Use the undo ipv6 pathmtu age command to restore the default.

By default, the aging time is 10 minutes.

Note that the aging time is invalid for a static PMTU.

Related commands: display ipv6 pathmtu.

Examples

# Set the aging time for a dynamic PMTU to 40 minutes.

<Sysname> system-view

[Sysname] ipv6 pathmtu age 40

1.1.44  reset dns ipv6 dynamic-host

Syntax

reset dns ipv6 dynamic-host

View

User view

Default Level

2: System level

Parameters

None

Description

Use the reset dns ipv6 dynamic-host command to clear IPv6 dynamic domain name cache information.

Examples

# Clear IPv6 dynamic domain name cache information.

<Sysname> reset dns ipv6 dynamic-host

1.1.45  reset ipv6 fibcache

Syntax

reset ipv6 fibcache { slot-number | all }

View

User view

Default Level

2: System level

Parameters

slot-number: Clears FIB cache entries of the slot.

all: Clears the FIB cache entries of all slots.

Description

Use the reset ipv6 fibcache command to clear IPv6 FIB cache entries.

Examples

# Clear FIB cache entries.

<Sysname> reset ipv6 fibcache

1.1.46  reset ipv6 neighbors

Syntax

reset ipv6 neighbors { all | dynamic | interface interface-type interface-number | slot slot-number | static }

View

User view

Default Level

2: System level

Parameters

all: Clears the static and dynamic neighbor information on all interfaces.

dynamic: Clears the dynamic neighbor information on all interfaces.

interface interface-type interface-number: Clears dynamic neighbor information on a specified interface.

slot slot-number: Clears the dynamic neighbor information on a specified slot.

static: Clears the static neighbor information on all interfaces.

Description

Use the reset ipv6 neighbors command to clear corresponding IPv6 neighbor information.

Examples

# Clear neighbor information on all interfaces.

<Sysname> reset ipv6 neighbors all

1.1.47  reset ipv6 pathmtu

Syntax

reset ipv6 pathmtu { all | static | dynamic }

View

User view

Default Level

2: System level

Parameters

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 information.

Examples

# Clear all PMTUs.

<Sysname> reset ipv6 pathmtu all

1.1.48  reset ipv6 statistics

Syntax

reset ipv6 statistics [ slot slot-number ]

View

User view

Default Level

2: System level

Parameters

slot slot number: Clears the statistics of IPv6 packets and ICMPv6 packets on the slot.

Description

Use the reset ipv6 statistics command to clear the statistics of IPv6 packets and ICMPv6 packets.

Examples

# Clear the statistics of IPv6 packets and ICMPv6 packets.

<Sysname> reset ipv6 statistics

1.1.49  reset tcp ipv6 statistics

Syntax

reset tcp ipv6 statistics

View

User view

Default Level

2: System level

Parameters

None

Description

Use the reset tcp ipv6 statistics command to clear the statistics of all IPv6 TCP connections.

Examples

# Clear the statistics of all IPv6 TCP connections.

<Sysname> reset tcp ipv6 statistics

1.1.50  reset udp ipv6 statistics

Syntax

reset udp ipv6 statistics

View

User view

Default Level

2: System level

Parameters

None

Description

Use the reset udp ipv6 statistics command to clear the statistics of all IPv6 UDP packets.

Examples

# Clear the statistics of all IPv6 UDP packets.

<Sysname> reset udp ipv6 statistics

1.1.51  tcp ipv6 timer fin-timeout

Syntax

tcp ipv6 timer fin-timeout wait-time

undo tcp ipv6 timer fin-timeout

View

System view

Default Level

2: System level

Parameters

wait-time: Length of the finwait timer for IPv6 TCP connections in seconds.

Description

Use the tcp ipv6 timer fin-timeout command to set the finwait timer for IPv6 TCP connections.

Use the undo tcp ipv6 timer fin-timeout command to restore the default.

By default, the length of the finwait timer is 675 seconds.

Examples

# Set the finwait timer length of IPv6 TCP connections to 800 seconds.

<Sysname> system-view

[Sysname] tcp ipv6 timer fin-timeout 800

1.1.52  tcp ipv6 timer syn-timeout

Syntax

tcp ipv6 timer syn-timeout wait-time

undo tcp ipv6 timer syn-timeout

View

System view

Default Level

2: System level

Parameters

wait-time: Length of the synwait timer for IPv6 TCP connections in seconds.

Description

Use the tcp ipv6 timer syn-timeout command to set the synwait timer for IPv6 TCP connections

Use the undo tcp ipv6 timer syn-timeout command to restore the default.

By default, the length of the synwait timer of IPv6 TCP connections is 75 seconds.

Examples

# Set the synwait timer length of IPv6 TCP connections to 100 seconds.

<Sysname> system-view

[Sysname] tcp ipv6 timer syn-timeout 100

1.1.53  tcp ipv6 window

Syntax

tcp ipv6 window size

undo tcp ipv6 window

View

System view

Default Level

2: System level

Parameters

size: Size of the IPv6 TCP sending/receiving buffer in KB (kilobyte).

Description

Use the tcp ipv6 window command to set the size of the IPv6 TCP sending/receiving buffer.

Use the undo tcp ipv6 window command to restore the default.

By default, the size of the IPv6 TCP sending/receiving buffer is 8 KB.

Examples

# Set the size of the IPv6 TCP packet buffer to 4 KB.

<Sysname> system-view

[Sysname] tcp ipv6 window 4

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网