06-Layer 3 - IP Services Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command References-Release1828P04-6W18206-Layer 3 - IP Services Command Reference
10-IPv6 Basics Commands
Title Size Download
10-IPv6 Basics Commands 275.1 KB

IPv6 basics configuration commands 1

display ipv6 fib· 1

display ipv6 fib ipv6-address 2

display ipv6 interface· 3

display ipv6 nd snooping· 7

display ipv6 neighbors 8

display ipv6 neighbors count 10

display ipv6 neighbors vpn-instance· 11

display ipv6 pathmtu· 13

display ipv6 socket 14

display ipv6 statistics 16

display tcp ipv6 statistics 19

display tcp ipv6 status 22

display udp ipv6 statistics 23

ipv6· 24

ipv6 address 25

ipv6 address anycast 25

ipv6 address auto link-local 26

ipv6 address eui-64· 27

ipv6 address link-local 28

ipv6 fib-loadbalance-type hash-based· 28

ipv6 hoplimit-expires enable· 29

ipv6 icmp-error 29

ipv6 icmpv6 multicast-echo-reply enable· 30

ipv6 mtu· 31

ipv6 nd autoconfig managed-address-flag· 31

ipv6 nd autoconfig other-flag· 32

ipv6 nd dad attempts 32

ipv6 nd hop-limit 33

ipv6 nd ns retrans-timer 34

ipv6 nd nud reachable-time· 34

ipv6 nd ra halt 35

ipv6 nd ra interval 35

ipv6 nd ra no-advlinkmtu· 36

ipv6 nd ra prefix· 37

ipv6 nd ra router-lifetime· 38

ipv6 nd snooping enable· 38

ipv6 nd snooping max-learning-num·· 39

ipv6 neighbor 39

ipv6 neighbor stale-aging· 40

ipv6 neighbors max-learning-num·· 41

ipv6 option drop enable· 42

ipv6 pathmtu· 42

ipv6 pathmtu age· 43

ipv6 unreachables enable· 43

local-proxy-nd enable· 44

proxy-nd enable· 44

reset ipv6 nd snooping· 45

reset ipv6 neighbors 45

reset ipv6 pathmtu· 46

reset ipv6 statistics 47

reset tcp ipv6 statistics 47

reset udp ipv6 statistics 48

tcp ipv6 timer fin-timeout 48

tcp ipv6 timer syn-timeout 49

tcp ipv6 window·· 49

 


display ipv6 fib

Syntax

 display ipv6 fib [ vpn-instance vpn-instance-name ] [ acl6 acl6-number | ipv6-prefix ipv6-prefix-name ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the IPv6 FIB entries of the specified MPLS L3VPN. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If you do not specify this option, the display ipv6 fib command displays the IPv6 FIB entries of the public network.

acl6 acl6-number: Displays the IPv6 FIB entries permitted by the specified 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 the specified 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.

Description

Use display ipv6 fib to display IPv6 FIB entries. If you do not specify any argument, this command displays all IPv6 FIB entries.

The switch 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:

·     UUsable route.

·     GGateway route.

·     HHost route.

·     BBlack hole route.

·     DDynamic route.

·     SStatic route.

Label

Label.

Token

LSP index number.

Interface

Outgoing interface.

 

display ipv6 fib ipv6-address

Syntax

display ipv6 fib [ vpn-instance vpn-instance-name ] ipv6-address [ prefix-length ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the IPv6 FIB entries for the specified MPLS L3VPN. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If you do not specify this option, the display ipv6 fib ipv6-address command displays IPv6 FIB entries on the public network and all private networks.

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

Description

Use display ipv6 fib ipv6-address to display the IPv6 FIB entry of the specified destination IPv6 address.

If you do not specify the prefix-length argument, this command displays the matching IPv6 FIB entry with the longest prefix.

If you specify the prefix-length argument, this command displays the IPv6 FIB entry exactly matching the specified destination IPv6 address and prefix length.

Examples

# Display the matching IPv6 FIB entry with the longest prefix.

<Sysname> display ipv6 fib ::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 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:

·     UUsable route.

·     GGateway route.

·     HHost route.

·     BBlack hole route.

·     DDynamic route.

·     SStatic route.

Label

Label.

Token

LSP index number.

Interface

Outgoing interface.

 

display ipv6 interface

Syntax

display ipv6 interface [ interface-type [ interface-number ] ] [ brief ] [ | { begin | exclude | include } regular-expression ]

View

Any view

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

Description

Use display ipv6 interface to display IPv6 information about an interface.

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

Field

Description

Vlan-interface2 current state

Physical state of the interface:

·     Administratively DOWN—The VLAN interface is administratively down. The interface is shut down using the shutdown command.

·     DOWN—The VLAN interface is administratively up but its physical state is down. No ports in the VLAN are up, which might be caused by 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 (after an IPv6 address is configured for an interface, IPv6 is automatically enabled on it. IPv6 packet forwarding is enabled in the example).

link-local address

Link-local address configured for the interface.

Global unicast address(es)

Aggregatable global unicast addresses configured for the interface.

valid lifetime

Valid lifetime of the global unicast address.

preferred lifetime

Preferred lifetime of the global unicast address.

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

Number of DAD attempts ( DAD is enabled in this example):

·     If DAD is enabled, the number of neighbor request messages is also displayed (configured by using the ipv6 nd dad attempts command).

·     If DAD is disabled, ND DAD is disabled is displayed. (You can set the number of neighbor request messages for DAD to 0 to disable this function.)

ND reachable time

Neighbor reachable time.

ND retransmit interval

Interval for retransmitting a neighbor solicitation (NS) message.

Hosts use stateless autoconfig for addresses

Hosts use stateless autoconfiguration mode to acquire IPv6 addresses.

InReceives

All IPv6 packets received by the interface, including all types of 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 bad basic headers.

InBadOptions

Received IPv6 packets with bad extension headers.

ReasmReqds

Received IPv6 fragments.

ReasmOKs

Number of packets after reassembly rather than the number of fragments.

InFragDrops

IPv6 fragments discarded due to certain error.

InFragTimeouts

IPv6 fragments discarded because the interval for which they had stayed in the system buffer exceeded the specified period.

OutFragFails

Packets failed in fragmentation 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 packet fragments after fragmentation on the outbound interface.

InMcastPkts

IPv6 multicast packets received on the interface.

InMcastNotMembers

Incoming IPv6 multicast packets that were discarded because the interface did not belong to the corresponding multicast groups.

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 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                      up          up          2001::1

Vlan-interface100                    up          down        Unassigned

Table 4 Command output

Field

Description

*down: administratively down

The interface is down. The interface is closed by using the shutdown command.

(s): spoofing

Spoofing attribute of the interface. 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:

·     *down—The VLAN interface is administratively down. The interface is shut down using the shutdown command.

·     down—The VLAN interface is administratively up but its physical state is down. No port in the VLAN is up, which might be caused by 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 link layer protocol state of the VLAN interface is down.

·     up—The link layer protocol state of the VLAN interface is up.

IPv6 Address

IPv6 address of the interface. Only the first of configured IPv6 addresses is displayed. (If no address is configured for the interface, Unassigned will be displayed.)

 

display ipv6 nd snooping

Syntax

display ipv6 nd snooping [ ipv6-address | vlan vlan-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

ipv6-address: Displays ND snooping entries containing the specified IPv6 address.

vlan vlan-id: Displays ND snooping entries in the specified VLAN whose ID is in the range of 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.

Description

Use display ipv6 nd snooping to display ND snooping entries.

If you do not specify any parameter, this command displays all ND snooping entries.

Examples

# Display the ND snooping entries of VLAN 1.

<Sysname> display ipv6 nd snooping vlan 1

IPv6 Address                   MAC Address     VID  Interface      Aging Status

4001::1                        0015-e944-a947  1    GE3/0/1         25    Bound

 ---- Total entries on VLAN 1: 1 ----

Table 5 Command output

Field

Description

Interface

Receiving port of an ND snooping entry.

Aging

Aging time of an ND snooping entry, in minutes.

Status

ND snooping entry status, Bound or Probe.

Total entries on VLAN 1

Total number of ND snooping entries of VLAN 1.

 

display ipv6 neighbors

Syntax

In standalone mode:

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

In IRF mode:

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

View

Any view

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

slot slot-number: Specifies a card by its slot number. Use this option when your switch is operating in standalone (the default) mode.

chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.

interface interface-type interface-number: Displays information about the neighbors of the specified interface.

vlan vlan-id: Displays information about the neighbors of the specified VLAN whose ID is in the range of 1 to 4094.

verbose: Displays detailed information about neighbors.

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

Description

Use display ipv6 neighbors to display neighbor information.

You can use the reset ipv6 neighbors command to clear specific IPv6 neighbor information.

Related commands: ipv6 neighbor and reset ipv6 neighbors.

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   GE3/0/1    REACH    S   -

# Display detailed information about all neighbors.

<Sysname> display ipv6 neighbors all verbose

                Type: S-Static    D-Dynamic

IPv6 Address                 Link-layer       VID  Interface     State  T   Age

VPN-instance Name

FE80::200:5EFF:FE32:B800  0000-5e32-b800   N/A  GE3/0/1         REACH  S   -

vpn1

Table 6 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:

·     INCMPThe address is being resolved. The link layer address of the neighbor is unknown.

·     REACHThe neighbor is reachable.

·     STALEThe reachability of the neighbor is unknown. The switch will not verify the reachability any longer unless data is sent to the neighbor.

·     DELAYThe reachability of the neighbor is unknown. The switch sends an NS message after a delay.

·     PROBEThe reachability of the neighbor is unknown. The switch 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, and if it is never reachable, a pound sign (#) is displayed (for a neighbor acquired dynamically).

VPN-instance Name

Name of a VPN. [No Vrf] indicates no VPN is configured.

 

display ipv6 neighbors count

Syntax

In standalone mode:

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

In IRF mode:

display ipv6 neighbors { { all | dynamic | static } [ chassis chassis-number slot slot-number ] | interface interface-type interface-number | vlan vlan-id } count [ | { begin | exclude | include } regular-expression ]

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: Specifies a card by its slot number. Use this option when your switch is operating in standalone (the default) mode.

chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.

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

vlan vlan-id: Displays the total number of neighbor entries of the specified VLAN whose ID is in the range of 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

Description

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

Examples

# Display the total number of neighbor entries acquired dynamically.

<Sysname> display ipv6 neighbors dynamic count

Total dynamic entry(ies):  2

display ipv6 neighbors vpn-instance

Syntax

display ipv6 neighbors vpn-instance vpn-instance-name [ count ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance-name: Specifies the MPLS L3VPN for which neighbor entries are to be displayed. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters.

count: Displays the total number of neighbor entries in the specified VPN.

|: 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 the 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.

Description

Use display ipv6 neighbors vpn-instance to display neighbor information about the specified VPN.

Examples

# Display neighbor information about the VPN vpn1.

<Sysname> display ipv6 neighbors vpn-instance vpn1

                Type: S-Static    D-Dynamic

IPv6 Address                 Link-layer       VID  Interface     State  T   Age

FE80::200:5EFF:FE32:B800  0000-5e32-b800     N/A  GE3/0/1        REACH  S   -

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

·     INCMPThe address is being resolved. The link layer address of the neighbor is unknown.

·     REACHThe neighbor is reachable.

·     STALEThe reachability of the neighbor is unknown. The device will not verify the reachability any longer unless data is sent to the neighbor.

·     DELAYThe reachability of the neighbor is unknown. The device sends an NS message after a delay.

·     PROBEThe reachability of the neighbor is unknown. The device sends an NS message to verify the reachability of the neighbor.

T

Type of neighbor information:

·     S—Static.

·     D—Dynamic.

Age

For a static entry, a hyphen (-) is displayed. For a dynamic entry, the time (in seconds) elapsed since it became reachable is displayed, and if it is never reachable, a pound sign (#) is displayed.

 

display ipv6 pathmtu

Syntax

display ipv6 pathmtu [ vpn-instance vpn-instance-name ] { ipv6-address | all | dynamic | static } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the IPv6 path MTU information about the specified MPLS L3VPN. The vpn-instance-name argument is a case sensitive string of 1 to 31 characters. If you do not specify this option, the display ipv6 pathmtu command displays the IPv6 path MTU information about the public network.

ipv6-address: IPv6 address whose 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

Description

Use display ipv6 pathmtu to display the path MTU information about IPv6 addresses.

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 8 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 of an IPv6 address.

Age

Time for a path MTU to live. For a static path MTU, a hyphen (-) is displayed.

Type

Indicates that the path MTU is dynamically negotiated or statically configured.

 

display ipv6 socket

Syntax

In standalone mode:

display ipv6 socket [ socktype socket-type ] [ task-id socket-id ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

In IRF mode:

display ipv6 socket [ socktype socket-type ] [ task-id socket-id ] [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default 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 IP socket.

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

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

slot slot-number: Specifies a card by its slot number. Use this option when your switch is operating in standalone (the default) mode.

chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.

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

Description

Use display ipv6 socket to display socket information.

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 the 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 9 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 ID. 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_ACCEPTCONNDetects connection request at the server end.

·     SO_REUSEADDRAllows for reuse of a local address.

·     SO_REUSEPORTAllows for reuse of a local port.

·     SO_SENDVPNIDEnables sending of the VPN ID.

socket state

State of the socket.

 

display ipv6 statistics

Syntax

In standalone mode:

display ipv6 statistics [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

In IRF mode:

display ipv6 statistics [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays the IPv6 and ICMPv6 packets statistics of the specified card. Use this option when your switch is operating in standalone mode.

chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.

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

Description

Use display ipv6 statistics to display statistics of IPv6 packets and ICMPv6 packets.

You can use the reset ipv6 statistics command to clear all IPv6 and ICMPv6 packet statistics.

Examples

# 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

      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 10 Command output

Field

Description

IPv6 Protocol

Statistics of IPv6 packets.

Sent packets

Statistics of sent IPv6 packets:

·     TotalTotal number of packets sent and forwarded locally.

·     Local sent outNumber of packets sent locally.

·     forwardedNumber of forwarded packets.

·     raw packetsNumber of packets sent through the raw socket.

·     discardedNumber of discarded packets.

·     routing failedNumber of packets failing to be routed.

·     fragmentsNumber of sent fragment packets.

·     fragments failedNumber of fragments failing to be sent.

Received packets

Statistics of received IPv6 packets:

·     TotalTotal number of received packets.

·     local hostNumber of packets received locally.

·     hopcount exceededNumber of packets exceeding the hop limit.

·     format errorNumber of packets in an incorrect format.

·     option errorNumber of packets with incorrect options.

·     protocol errorNumber of packets with incorrect protocol.

·     fragmentsNumber of received fragment packets.

·     reassembledNumber of reassembled packets.

·     reassembly failedNumber of packets failing to be reassembled.

·     reassembly timeoutNumber of packets whose reassembly times out.

ICMPv6 protocol

Statistics of ICMPv6 packets.

Sent packets

Statistics of sent ICMPv6 packets:

·     TotalTotal number of sent packets.

·     unreachedNumber of packets whose destination is unreachable.

·     too bigNumber of too large packets.

·     hopcount exceededNumber of packets exceeding the hop limit.

·     reassembly timeoutNumber of packets whose fragmentation and reassembly times out.

·     parameter problemNumber of packets with parameter errors.

·     echo requestNumber of request packets.

·     echo repliedNumber of response packets.

·     neighbor solicitNumber of neighbor solicitation packets.

·     neighbor advertNumber of neighbor advertisement packets.

·     router solicitNumber of router solicit packets.

·     router advertNumber of router advertisement packets.

·     redirectedNumber of redirected packets.

·     Send failedTotal number of packets failed to send.

·     ratelimitedNumber of packets failing to be sent because of rate limitation.

·     other errorsNumber of packets with other errors.

Received packets

Statistics of received ICMPv6 packets:

·     TotalTotal number of received packets.

·     checksum errorNumber of packets with checksum errors.

·     too shortNumber of too small packets.

·     bad codeNumber of packets with error codes.

·     unreachedNumber of packets whose destination is unreachable.

·     too bigNumber of too large packets.

·     hopcount exceededNumber of packets exceeding the hop limit.

·     reassembly timeoutNumber of packets whose fragmentation and  reassembly times out.

·     parameter problemNumber of packets with parameter errors.

·     unknown error typeNumber of packets with unknown errors.

·     echo requestNumber of request packets.

·     echo repliedNumber of response packets.

·     neighbor solicitNumber of neighbor solicitation messages.

·     neighbor advertNumber of neighbor advertisement packets.

·     router solicitNumber of router solicitation packets.

·     router advertNumber of router advertisement packets.

·     redirectedNumber of redirected packets.

·     router renumberingNumber of packets renumbered by the router.

·     unknown info typeNumber of unknown type of packets.

·     Deliver failedTotal number of packets failed to receive.

·     bad lengthNumber of packets with a incorrect size.

·     ratelimitedNumber of packets failing to be received because of rate limitation.

 

display tcp ipv6 statistics

Syntax

display tcp ipv6 statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

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

Description

Use display tcp ipv6 statistics to display IPv6 TCP connection statistics.

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 11 Command output

Field

Description

Received packets

Statistics of received packets:

·     TotalTotal number of received packets.

·     packets in sequenceNumber of packets received in sequence.

·     window probe packetsNumber of window probe packets.

·     window update packetsNumber of window size update packets.

·     checksum errorNumber of packets with checksum errors.

·     offset errorNumber of packets with offset errors.

·     short errorNumber of packets whose total length is less than specified by the packet header.

·     duplicate packetsNumber of duplicate packets.

·     partially duplicate packetsNumber of partially duplicate packets.

·     out-of-order packetsNumber of out-of-order packets.

·     packets with data after windowNumber of packets exceeding the size of the receiving window.

·     packets after closeNumber of packets received after the connection is closed.

·     ACK packetsNumber of ACK packets.

·     duplicate ACK packetsNumber of duplicate ACK packets.

·     too much ACK packetsNumber of excessive ACK packets.

Sent packets

Statistics of sent packets:

·     TotalTotal number of packets.

·     urgent packetsNumber of packets containing an urgent indicator.

·     control packetsNumber of  control packets.

·     window probe packetsNumber of window probe packets.

·     window update packetsNumber of window update packets.

·     data packetsNumber of data packets.

·     data packets retransmittedNumber of retransmitted packets.

·     ACK only packetsNumber 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

Syntax

display tcp ipv6 status [ | { begin | exclude | include } regular-expression ]

View

Any view

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

Description

Use display tcp ipv6 status to display the IPv6 TCP connection status, including IP address of the IPv6 TCP control block, local and peer IPv6 addresses, and status of the IPv6 TCP connection.

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 12 Command output

Field

Description

*: TCP6 MD5 Connection

Asterisk (*) indicates that the TCP6 connection is secured with MD5 authentication.

TCP6CB

IPv6 address of the TCP control block (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

Syntax

display udp ipv6 statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

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

Description

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

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 13 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 of the receive buffer being full.

input packet missing pcb cache

Number of packets failing to match the protocol control block cache.

 

ipv6

Syntax

ipv6

undo ipv6

View

System view

Default level

2: System level

Parameters

None

Description

Use ipv6 to enable IPv6.

Use undo ipv6 to disable IPv6.

By default, IPv6 is disabled.

Examples

# Enable IPv6.

<Sysname> system-view

[Sysname] ipv6

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 of 1 to 128.

Description

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.

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

Except the link-local address automatically configured and the link-local address generated through stateless autoconfiguration, all IPv6 addresses will be removed from the interface if the undo ipv6 address command is executed without any parameter specified.

 

IMPORTANT:

If you configure an IPv6 address for an interface associated with a VPN instance, fewer VPNs can be configured for the switch.

 

Examples

# Set the aggregatable global IPv6 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 anycast

Syntax

ipv6 address ipv6-address/prefix-length anycast

undo ipv6 address ipv6-address/prefix-length anycast

View

Interface view

Default level

2: System level

Parameters

ipv6-address/prefix-length: Specifies an IPv6 anycast address and its prefix length. The prefix length ranges 1 to 128.

Description

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.

By default, no IPv6 anycast address is configured for an interface.

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

Syntax

ipv6 address auto link-local

undo ipv6 address auto link-local

View

Interface view

Default level

2: System level

Parameters

None

Description

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.

By default, no link-local address is configured on an interface, but it will automatically be generated after a global IPv6 unicast address is configured for the interface.

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 will have 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 will overwrite the automatically generated address. If you first use manual assignment and then automatic generation, the automatically generated link-local address will not take effect and the link-local address of an interface is still the manually assigned address. If you delete the manually assigned address, the automatically generated link-local address is validated. For more information about manually 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

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 ipv6 address eui-64 to configure a global unicast address in the EUI-64 format for an interface.

Use undo ipv6 address eui-64 to remove the configured global unicast address in the EUI-64 format for the interface.

By default, no site-local or global unicast address in the EUI-64 format is configured for an interface.

An EUI-64 IPv6 address is generated based on the specified prefix and the automatically generated interface identifier and is displayed by using the display ipv6 interface command.

The prefix length of an IPv6 address in the EUI-64 format cannot be greater than 64.

Examples

# Configure an IPv6 address in the EUI-64 format 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 switch.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

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 10 bits of an address must be 1111111010 (binary). The first group of hexadecimals in the address must be FE80 to FEBF.

Description

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.

Manual assignment takes precedence over automatic generation. If you first adopt automatic generation and then manual assignment, the manually assigned link-local address will overwrite the automatically generated one. If you first adopt manual assignment and then automatic generation, the automatically generated link-local address will not take effect and the link-local address of an interface is still the manually assigned one. If you delete the manually assigned address, the automatically generated link-local address is validated. For more 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

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

By default, load sharing based on polling is adopted. ECMP routes are used in turn to forward packets.

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

Syntax

ipv6 hoplimit-expires enable

undo ipv6 hoplimit-expires

View

System view

Default level

2: System level

Parameters

None

Description

Use ipv6 hoplimit-expires enable to enable sending ICMPv6 time exceeded packets, and allow sending packets whose hop limit is 1 to CPU.

Use undo ipv6 hoplimit-expires to disable sending ICMPv6 time exceeded packets, and discard packets whose hop limit is 1.

By default, sending ICMPv6 time exceeded packets is enabled, and allow sending packets whose hop limit is 1 to CPU.

After you disable sending ICMPv6 time exceeded packets, the switch will not send time-to-live count exceeded packets, but will still send fragment reassembly time exceeded packets.

Examples

# Disable sending ICMPv6 time exceeded packets.

<Sysname> system-view

[Sysname] undo ipv6 hoplimit-expires

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 bucket-size: Number of tokens in the token bucket, in the range of 1 to 200.

ratelimit interval: Update period of the token bucket in milliseconds, in the range of 0 to 2,147,483,647. The update period 0 indicates that the number of ICMPv6 error packets sent is not restricted.

Description

Use ipv6 icmp-error to configure the size and update period of the token bucket.

Use undo ipv6 icmp-error to restore the default.

By default, the size is 10 and the update period is 100 milliseconds. At most 10 ICMPv6 error packets can be sent within 100 milliseconds.

Examples

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

<Sysname> system-view

[Sysname] ipv6 icmp-error bucket 50 ratelimit 100

ipv6 icmpv6 multicast-echo-reply enable

Syntax

ipv6 icmpv6 multicast-echo-reply enable

undo ipv6 icmpv6 multicast-echo-reply

View

System view

Default level

2: System level

Parameters

None

Description

Use ipv6 icmpv6 multicast-echo-reply enable to enable sending multicast echo replies.

Use undo ipv6 icmpv6 multicast-echo-reply to disable sending multicast echo replies.

By default, the switch is disabled from sending multicast echo replies.

Examples

# Enable sending multicast echo replies.

<Sysname> system-view

[Sysname] ipv6 icmpv6 multicast-echo-reply enable

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 of 1280 to 9198.

Description

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

Use undo ipv6 mtu to restore the default MTU.

By default, the MTU of IPv6 packets sent over an interface is 1500 bytes.

Examples

# Set the MTU of IPv6 packets sent over VLAN-interface 100 to 1280 bytes.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 mtu 1280

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

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

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

Syntax

ipv6 nd autoconfig other-flag

undo ipv6 nd autoconfig other-flag

View

Interface view

Default level

2: System level

Parameters

None

Description

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.

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

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 an NS message for DAD, in the range of 0 to 600. The default value is 1. When it is set to 0, DAD is disabled.

Description

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.

By default, the number of attempts to send an NS message for DAD is 1.

Related commands: display ipv6 interface.

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

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, in the range of 0 to 255. When it is set to 0, the Hop Limit field in RA messages sent by the switch is 0. The number of hops is determined by the requesting switch itself.

Description

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

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

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

Examples

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

<Sysname> system-view

[Sysname] ipv6 nd hop-limit 100

ipv6 nd ns retrans-timer

Syntax

ipv6 nd ns retrans-timer value

undo ipv6 nd ns retrans-timer

View

Interface view

Default level

2: System level

Parameters

value: Interval for retransmitting an NS message in milliseconds, in the range of 1000 to 4294967295.

Description

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.

By default, the local interface retransmits an NS message at 1000 millisecond intervals and the value of the Retrans Timer field in RA messages sent by the local interface is 0, so that the interval for retransmitting an NS message is determined by the receiving device.

Related commands: display ipv6 interface.

Examples

# Specify VLAN-interface 100 to retransmit NS messages at 10000 millisecond intervals.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 nd nud reachable-time

Syntax

ipv6 nd nud reachable-time value

undo ipv6 nd nud reachable-time

View

Interface view

Default level

2: System level

Parameters

value: Neighbor reachable time in milliseconds, in the range of 1 to 3600000.

Description

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.

By default, the neighbor reachable time on the local interface is 30,000 milliseconds and the value of the Reachable Time field in RA messages is 0, so that the reachable time is determined by the receiving switch.

Related commands: display ipv6 interface.

Examples

# Set the neighbor reachable time on VLAN-interface 100 to 10000 milliseconds.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

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 ipv6 nd ra halt to enable RA message suppression.

Use undo ipv6 nd ra halt to disable RA message suppression.

By default, RA messages are suppressed.

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

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

Description

Use ipv6 nd ra interval to set the maximum and minimum intervals for advertising RA messages. The switch advertises RA messages at intervals of a random value between the maximum interval and the minimum interval.

Use undo ipv6 nd ra interval to restore the default.

By default, the maximum interval between RA messages is 600 seconds, and the minimum interval is 200 seconds.

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

Syntax

ipv6 nd ra no-advlinkmtu

undo ipv6 nd ra no-advlinkmtu

View

Interface view

Default level

2: System level

Parameters

None

Description

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.

By default, RA messages contain the MTU option.

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

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 }

View

Interface view

Default level

2: System level

Parameters

ipv6-prefix: IPv6 address 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: Specifies a prefix not to be used for stateless autoconfiguration. If this keyword is not provided, the prefix is used for stateless autoconfiguration.

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

By default, no prefix information is configured in RA messages and the IPv6 address of the interface sending RA messages is used as the prefix information with valid lifetime 2592000 seconds (30 days) and preferred lifetime 604800 seconds (7 days).

Examples

# Configure the prefix information in 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

Syntax

ipv6 nd ra router-lifetime value

undo ipv6 nd ra router-lifetime

View

Interface view

Default level

2: System level

Parameters

value: Router lifetime in seconds, in the range of 0 to 9000. When it is set to 0, the switch does not serve as the default router.

Description

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.

By default, the router lifetime in RA messages is 1800 seconds.

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 nd snooping enable

Syntax

ipv6 nd snooping enable

undo ipv6 nd snooping enable

View

VLAN view

Default level

2: System level

Parameters

None

Description

Use ipv6 nd snooping enable to enable ND snooping.

Use undo ipv6 nd snooping enable to restore the default.

By default, ND snooping is disabled.

Examples

# Enable ND snooping for VLAN 1.

<Sysname> system-view

[Sysname] vlan 1

[Sysname-vlan1] ipv6 nd snooping enable

ipv6 nd snooping max-learning-num

Syntax

ipv6 nd snooping max-learning-num number

undo ipv6 nd snooping max-learning-num

View

Layer 2 Ethernet interface view, Layer 2 aggregate interface view

Default level

2: System level

Parameters

number: Maximum number of ND snooping entries that can be learned by the interface, in the range of 0 to 8129.

Description

Use ipv6 nd snooping max-learning-num to configure the maximum number of ND snooping entries that can be learned on the interface.

Use undo ipv6 nd snooping max-learning-num to restore the default.

By default, the number of ND snooping entries that an interface can learn is not limited.

Examples

# Set the maximum number of ND snooping entries that can be learned on Layer 2 Ethernet interface GigabitEthernet 3/0/1 to 1000.

<Sysname> system-view

[Sysname] interface gigabitethernet 3/0/1

[Sysname-GigabitEthernet3/0/1] ipv6 nd snooping max-learning-num 1000

# Set the maximum number of ND snooping entries that can be learned on Layer 2 aggregate interface Bridge-aggregation 1 to 1000.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] ipv6 nd snooping max-learning-num 1000

ipv6 neighbor

Syntax

ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number | interface interface-type interface-number } [ vpn-instance vpn-instance-name ]

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 } [ vpn-instance vpn-instance-name ]

View

System view

Default 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 interface of the static neighbor entry.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that the static neighbor entry belongs to. The vpn-instance-name argument is a case sensitive string of 1 to 31 characters. If the static neighbor entry is for the public network, do not specify this option.

Description

Use ipv6 neighbor to configure a static neighbor entry.

Use undo ipv6 neighbor to remove a static neighbor entry.

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 switch obtains the corresponding Layer 2 port information through resolution, the neighbor entry will go 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 switch will relate the VLAN interface with the IPv6 address to identify the static neighbor entry uniquely and the entry will be in REACH state.

To remove a static neighbor entry, you only need to specify the corresponding VLAN interface and the neighbor address.

Related commands: display ipv6 neighbors.

Examples

# Configure a static neighbor entry for Layer 2 port GigabitEthernet 3/0/10 of VLAN 100.

<Sysname> system-view

[Sysname] ipv6 neighbor 2000::1 fe-e0-89 100 gigabitethernet 3/0/10

ipv6 neighbor stale-aging

Syntax

ipv6 neighbor stale-aging aging-time

undo ipv6 neighbor stale-aging

View

System view

Default level

2: System level

Parameters

aging-time: Aging timer for ND entries in stale state, in the range of 1 to 24 hours.

Description

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.

By default, the aging timer for ND entries in stale state is 4 hours.

Examples

# Set the aging timer for ND entries in stale state to 2 hours.

<Sysname> system-view

[Sysname] ipv6 neighbor stale-aging 2

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 the interface.

Description

Use ipv6 neighbors max-learning-num to configure the maximum number of neighbors that can be dynamically learned on the interface.

Use undo ipv6 neighbors max-learning-num to restore the default maximum number of neighbors.

By default, the maximum number of neighbors that a Layer 2 Ethernet interface can learn is the maximum neighbor number supported by the adopted system working mode. A Layer 3 Ethernet interface can dynamically learn up to 1024 neighbors.

Examples

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 option drop enable

Use ipv6 option drop enable to enable a device to discard IPv6 packets that contain extension headers.

Use undo ipv6 option drop enable to disable a device from discarding IPv6 packets that contain extension headers.

Syntax

ipv6 option drop enable

undo ipv6 option drop enable

Default

A device does not discard IPv6 packets that contain extension headers.

Views

System view

Default level

2: System level

Usage guidelines

This feature enables the device to automatically discard IPv6 packets that contain extension headers.

This feature does not apply to IPv6 packets that are received by base cards.

Examples

# Enable the device to discard IPv6 packets that contain extension headers.

<Sysname> system-view

[Sysname] ipv6 option drop enable

ipv6 pathmtu

Syntax

ipv6 pathmtu [ vpn-instance vpn-instance-name ] ipv6-address [ value ]

undo ipv6 pathmtu [ vpn-instance vpn-instance-name ] ipv6-address

View

System view

Default level

2: System level

Parameters

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that the path MTU belongs to. The vpn-instance-name argument is a case sensitive string of 1 to 31 characters. If the path MTU is for the public network, do not specify this option.

ipv6-address: IPv6 address.

value: Path MTU of the specified IPv6 address in bytes.

Description

Use ipv6 pathmtu to configure a static path MTU for the specified IPv6 address.

Use undo ipv6 pathmtu to remove the path MTU configuration for the specified IPv6 address.

By default, no static path MTU is configured.

Examples

# Configure a static path MTU for the specified IPv6 address.

<Sysname> system-view

[Sysname] ipv6 pathmtu fe80::12 1300

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 path MTU in minutes, in the range of 10 to 100.

Description

Use ipv6 pathmtu age to configure the aging time for a dynamic path MTU.

Use undo ipv6 pathmtu age to restore the default.

By default, the aging time is 10 minutes.

The aging time is invalid for a static path MTU.

Related commands: display ipv6 pathmtu.

Examples

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

<Sysname> system-view

[Sysname] ipv6 pathmtu age 40

ipv6 unreachables enable

Syntax

ipv6 unreachables enable

undo ipv6 unreachables

View

System view

Default level

2: System level

Parameters

None

Description

Use ipv6 unreachables enable to enable sending ICMPv6 destination unreachable packets.

Use undo ipv6 unreachables to disable sending ICMPv6 destination unreachable packets.

By default, sending ICMPv6 destination unreachable packets is disabled.

Examples

# Enable sending ICMPv6 destination unreachable packets.

<Sysname> system-view

[Sysname] ipv6 unreachables enable

local-proxy-nd enable

Syntax

local-proxy-nd enable

undo local-proxy-nd enable

View

VLAN interface view, Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view

Default level

2: System level

Parameters

None

Description

Use local-proxy-nd enable to enable local ND proxy.

Use undo local-proxy-nd enable to restore the default.

By default, local ND proxy is disabled.

Examples

# Enable local ND proxy on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] local-proxy-nd enable

proxy-nd enable

Syntax

proxy-nd enable

undo proxy-nd enable

View

VLAN interface view, Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view

Default level

2: System level

Parameters

None

Description

Use proxy-nd enable to enable ND proxy.

Use undo proxy-nd enable to restore the default.

By default, ND proxy is disabled.

Examples

# Enable ND proxy on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] proxy-nd enable

reset ipv6 nd snooping

Syntax

reset ipv6 nd snooping [ ipv6-address | vlan vlan-id ]

View

User view

Default level

2: System level

Parameters

ipv6-address: Clears the ND snooping entries of the specified IPv6 address.

vlan vlan-id: Clears the ND snooping entries of the specified VLAN. The VLAN ID is in the range of 1 to 4094.

Description

Use reset ipv6 nd snooping to clear ND snooping entries.

If you do not specify any argument, this command clears all ND snooping entries.

Examples

# Clear all ND snooping entries of VLAN 1.

<Sysname> reset ipv6 nd snooping vlan 1

reset ipv6 neighbors

Syntax

In standalone mode:

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

In IRF mode:

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

View

User view

Default 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 the specified interface.

slot slot-number: Specifies a card by its slot number. Use this option when your switch is operating in standalone (the default) mode.

chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.

static: Clears static neighbor information on all interfaces.

Description

Use reset ipv6 neighbors to clear IPv6 neighbor information.

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

# Clear dynamic neighbor information on all interfaces.

<Sysname> reset ipv6 neighbors dynamic

# Clear all neighbor information on GigabitEthernet 5/0/24.

<Sysname> reset ipv6 neighbors interface GigabitEthernet 5/0/24

reset ipv6 pathmtu

Syntax

reset ipv6 pathmtu { all | static | dynamic }

View

User view

Default level

2: System level

Parameters

all: Clears all path MTUs.

static: Clears all static path MTUs.

dynamic: Clears all dynamic path MTUs.

Description

Use reset ipv6 pathmtu to clear the path MTU information.

Examples

# Clear all path MTUs.

<Sysname> reset ipv6 pathmtu all

reset ipv6 statistics

Syntax

In standalone mode:

reset ipv6 statistics [ slot slot-number ]

In IRF mode:

reset ipv6 statistics [ chassis chassis-number slot slot-number ]

View

User view

Default level

1: Monitor level

Parameters

slot slot-number: Specifies a card by its slot number. Use this option when your switch is operating in standalone (the default) mode.

chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode. For more information about IRF, see IRF Configuration Guide.

Description

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

You can use the display ipv6 statistics command to display the statistics of IPv6 and ICMPv6 packets.

Examples

# Clear the statistics of IPv6 packets and ICMPv6 packets.

<Sysname> reset ipv6 statistics

reset tcp ipv6 statistics

Syntax

reset tcp ipv6 statistics

View

User view

Default level

1: Monitor level

Parameters

None

Description

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

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

Syntax

reset udp ipv6 statistics

View

User view

Default level

1: Monitor level

Parameters

None

Description

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

You can use the display udp ipv6 statistics command to display the statistics of IPv6 UDP packets.

Examples

# Clear the statistics of all IPv6 UDP packets.

<Sysname> reset udp ipv6 statistics

tcp ipv6 timer fin-timeout

Syntax

tcp ipv6 timer fin-timeout wait-time

undo tcp ipv6 timer fin-timeout

View

System view

Default level

2: System level

Parameters

wait-time: Length of the finwait timer for IPv6 TCP connections in seconds, in the range of 76 to 3600.

Description

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.

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

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, in the range of 2 to 600.

Description

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.

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

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 send/receive buffer in KB, in the range of 1 to 32.

Description

Use tcp ipv6 window to set the size of the IPv6 TCP send/receive buffer.

Use undo tcp ipv6 window to restore the default.

By default, the size of the IPv6 TCP send/receive buffer is 8 KB.

Examples

# Set the size of the IPv6 TCP send/receive 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
新华三官网