10-IPv6 Configuration Command

Download

Table of Contents

Chapter 1 IPv6 Configuration Commands. 1-1

1.1 Basic IPv6 Configuration Commands. 1-1

1.1.1 display dns ipv6 dynamic-host 1-1

1.1.2 display ipv6 fib. 1-1

1.1.3 display ipv6 host 1-3

1.1.4 display ipv6 interface. 1-4

1.1.5 display ipv6 neighbors. 1-6

1.1.6 display ipv6 neighbors count 1-7

1.1.7 display ipv6 pathmtu. 1-8

1.1.8 display ipv6 socket 1-9

1.1.9 display ipv6 statistics. 1-10

1.1.10 display tcp ipv6 statistics. 1-14

1.1.11 display tcp ipv6 status. 1-17

1.1.12 display udp ipv6 statistics. 1-18

1.1.13 dns server ipv6. 1-19

1.1.14 ipv6. 1-20

1.1.15 ipv6 address. 1-20

1.1.16 ipv6 address auto link-local 1-21

1.1.17 ipv6 address eui-64. 1-22

1.1.18 ipv6 address link-local 1-23

1.1.19 ipv6 host 1-23

1.1.20 ipv6 icmp-error 1-24

1.1.21 ipv6 nd autoconfig managed-address-flag. 1-25

1.1.22 ipv6 nd autoconfig other-flag. 1-25

1.1.23 ipv6 nd dad attempts. 1-26

1.1.24 ipv6 nd hop-limit 1-27

1.1.25 ipv6 nd ns retrans-timer 1-27

1.1.26 ipv6 nd nud reachable-time. 1-28

1.1.27 ipv6 nd ra halt 1-29

1.1.28 ipv6 nd ra interval 1-29

1.1.29 ipv6 nd ra prefix. 1-30

1.1.30 ipv6 nd ra router-lifetime. 1-31

1.1.31 ipv6 neighbor 1-32

1.1.32 ipv6 neighbors max-learning-num.. 1-33

1.1.33 ipv6 pathmtu. 1-33

1.1.34 ipv6 pathmtu age. 1-34

1.1.35 reset dns ipv6 dynamic-host 1-35

1.1.36 reset ipv6 neighbors. 1-35

1.1.37 reset ipv6 pathmtu. 1-36

1.1.38 reset ipv6 statistics. 1-36

1.1.39 reset tcp ipv6 statistics. 1-37

1.1.40 reset udp ipv6 statistics. 1-37

1.1.41 tcp ipv6 timer fin-timeout 1-38

1.1.42 tcp ipv6 timer syn-timeout 1-38

1.1.43 tcp ipv6 window. 1-39

Chapter 2 IPv6 Application Configuration Commands. 2-1

2.1 IPv6 Application Configuration Commands. 2-1

2.1.1 ftp ipv6. 2-1

2.1.2 open ipv6. 2-2

2.1.3 ping ipv6. 2-3

2.1.4 telnet ipv6. 2-4

2.1.5 tftp ipv6. 2-5

2.1.6 tftp-server ipv6 acl 2-6

2.1.7 tracert ipv6. 2-7

 


Chapter 1  IPv6 Configuration Commands

1.1  Basic IPv6 Configuration Commands

1.1.1  display dns ipv6 dynamic-host

Syntax

display dns ipv6 dynamic-host

View

Any view

Parameter

None

Description

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

Example

# Display IPv6 dynamic domain name cache information.

<H3C> display dns ipv6 dynamic-host

No.  Domain-name     Ipv6 Address        TTL

1        aaa             2001::2         6

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

Field

Description

No.

Sequence number

Domain-name

Domain name

Ipv6 Address

IPv6 address corresponding to the domain name

TTL

Lifetime of a domain name cache information entry in seconds

 

1.1.2  display ipv6 fib

Syntax

display ipv6 fib [ ipv6-address ]

View

Any view

Parameter

ipv6-address: IPv6 address. An FIB entry whose destination address is this address will be displayed.

Description

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

Example

# Display all FIB entries.

<H3C> display ipv6 fib

FIB Table:

 Total number of Routes : 1

 

Flag:

  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static

 

Destination: ::1                         PrefixLength    : 128

NextHop     :    ::1                         Flag            : HU

Label       :    NULL                            Tunnel ID   : 0

TimeStamp  : Date- 12:5:2004, Time- 9:15:18

Interface  : InLoopBack0

Table 1-2 Description on fields of the display ipv6 fib command

Field

Description

Total number of Routes

Total number of routes in the FIB

Destination

Destination address to which a packet is forwarded

PrefixLength

Prefix length of the destination address

NextHop

Next hop address when a packet is forwarded to the destination

Flag

Route flag:

“U” — Usable route

“G” — Gateway route

“H” — Host route

“B” — Blackhole route

“D” — Dynamic route

“S” — Static route

Label

Label

Tunnel ID

ID of a tunnel

TimeStamp

Generation time of an FIB entry

Interface

Interface from which a packet is forwarded

 

1.1.3  display ipv6 host

Syntax

display ipv6 host

View

Any view

Parameter

None

Description

Use the display ipv6 host command to display the mapping between host name and IPv6 address.

Example

# Display the mapping between host name and IPv6 address.

<H3C> display ipv6 host

Host                 Age           Flags           IPv6Address (es)

aaa                  0             static           2002::1

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

Field

Description

Host

Host name

Age

Time for the entry to live, displayed as 0 in the case of static configuration.

Flags

Flag indicating whether the entry is configured statically or acquired dynamically

IPv6Address (es)

IPv6 address corresponding to a host name

 

1.1.4  display ipv6 interface

Syntax

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

View

Any view

Parameter

interface-type interface-number: Interface type and interface number.

brief: Displays the brief IPv6 information of an interface.

Description

Use the display ipv6 interface command to display the IPv6 information of a specified interface.

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

Example

# Display the IPv6 information of a VLAN interface.

<H3C> display ipv6 interface vlan-interface 1

Vlan-interface1 current state :UP

Line protocol current state :UP

IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE00:5503

  Global unicast address(es):

    3000::1, subnet is 3000::/64

  Joined group address(es):

    FF02::1:FF00:1

    FF02::1:FF00:5503

    FF02::2

    FF02::1

  MTU is 1500 bytes

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND retransmit interval is 1000 milliseconds

  Hosts use stateless autoconfig for addresses

Table 1-4 Description on fields of the display ipv6 interface command

Field

Description

Vlan-interface1 current state

Physical state of an interface

Line protocol current state

Link layer state of an interface

IPv6 is enabled

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

link-local address

Link-local address configured on an interface

Global unicast address(es)

Aggregatable global unicast address configured on an interface

Joined group address(es)

Address of the multicast group that an interface joins

MTU

Maximum transmission unit of an interface

ND DAD is enabled, number of DAD attempts

Number of duplicate address detection (DAD) attempts, with DAD enabled

ND reachable time

Neighbor reachable time

ND retransmit interval

Interval for retransmitting a neighbor solicitation (NS) message

Hosts use stateless autoconfig for addresses

Hosts use stateless auto-configuration mode to acquire  IPv6 addresses

 

#: View the brief IPv6 information of all interfaces.

<H3C> display ipv6 interface brief

*down: administratively down

(s): spoofing

Interface                    Physical   Protocol   IPv6 Address

LoopBack0                       up          up(s)    Unassigned

Vlan-interface1               up          up     2008::1

Table 1-5 Description on fields of the display ipv6 interface brief command

Field

Description

*down

The interface is down, that is, the interface is disabled by using the shutdown command.

(s)

Spoofing attribute of the interface, that is, the link protocol state of the interface is up, but the link does not exist, or the link is established on demand, instead of being permanent.

Interface

Name of the interface

Physical

Physical state of the interface

Protocol

Link protocol state of an interface

IPv6 Address

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

 

1.1.5  display ipv6 neighbors

Syntax

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

View

Any view

Parameter

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

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

dynamic: Displays information of all neighbors acquired dynamically.

static: Displays information of all neighbors configured statically.

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

vlan vlan-id: Displays information of the neighbors of a specified VLAN.

begin: Displays the neighbor entries beginning with the specified character string.

include: Displays the neighbor entries containing the specified character string.

exclude: Displays the neighbor entries without the specified character string.

text: Character string.

Description

Use the display ipv6 neighbors command to display neighbor information.

Example

# View all neighbor information.

<H3C> display ipv6 neighbors all

                Type: S-Static    D-Dynamic

IPv6 Address             Link-layer      VID Interface     State T   Age

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

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

Field

Description

IPv6 Address

IPv6 address

Link-layer

Link layer address (MAC address of a neighbor)

VID

VLAN ID

Interface

Interface connected with a neighbor

State

State of a neighbor

T

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

Age

For a static entry, “-“ is displayed. For a dynamic entry, the time (in seconds) since it is reachable last time is displayed, and if it is never reachable, “#” is displayed (for a dynamic neighbor only).

 

1.1.6  display ipv6 neighbors count

Syntax

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

View

Any view

Parameter

all: Displays the total number of all neighbor entries, including neighbor entries acquired dynamically and configured statically.

dynamic: Displays the total number of all neighbor entries acquired dynamically.

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

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

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

count: The number of neighbor entries.

Description

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

Example

# Display the total number of neighbor entries acquired dynamically.

<H3C> display ipv6 neighbors dynamic count

Total dynamic entry(ies):  2

1.1.7  display ipv6 pathmtu

Syntax

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

View

Any view

Parameter

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

all: Displays all PMTU information.

dynamic: Displays all dynamic PMTU information.

static: Displays all static PMTU information.

Description

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

Example

# Display all PMTU information.

<H3C> display ipv6 pathmtu all

Ipv6 Destination Address ZoneID  PathMTU     Age     Type

 fe80::12                    0       1300            40      Dynamic

 2222::3                 0       1280            --      Static

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

Field

Description

Ipv6 Destination Address

Destination IPv6 address

ZoneID

Address zone, currently invalid

PathMTU

PMTU of an IPv6 address

Age

Lifetime of a PMTU. For a static PMTU, “--“ is displayed.

Type

Indicates the PMTU is dynamically negotiated or statically configured.

 

1.1.8  display ipv6 socket

Syntax

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

View

Any view

Parameter

socket-type: Type of a socket, in the range of 1 to 3. The value “1” represents a TCP socket, “2” a UDP socket, and “3” a raw IP socket.

task-id: ID of a task, in the range of 1 to 100.

socket-id: ID of a socket, in the range of 0 to 3072.

Description

Use the display ipv6 socket command to display information related to a specified socket. If no argument is specified, all information related to socket will be displayed.

Example

# View information related to a specified socket.

<H3C> display ipv6 socket socktype 1

SOCK_STREAM:

Task = VTYD(14), socketid = 4, Proto = 6,

LA = ::->22, FA = ::->0,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID,

socket state = SS_PRIV SS_ASYNC

 

Task = VTYD(14), socketid = 3, Proto = 6,

LA = ::->23, FA = ::->0,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID,

socket state = SS_PRIV SS_ASYNC

Table 1-8 Description on fields of the display ipv6 socket command

Field

Description

SOCK_STREAM

Socket type of TCP

Task

Task ID of the created socket

socket id

ID assigned by the kernel to the created socket

Proto

Protocol ID

LA

Local address and local port number

FA

Remote address and remote port number

sndbuf

Size of the sending buffer

rcvbuf

Size of the receiving buffer

sb_cc

Number of bytes sent by the sending buffer

rb_cc

Number of bytes received by the receiving buffer

socket option

Socket option set by the application

socket state

State of the socket

 

1.1.9  display ipv6 statistics

Syntax

display ipv6 statistics

View

Any view

Parameter

None

Description

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

Example

# View the statistics of IPv6 packets and IPv6 ICMP packets.

<H3C> display ipv6 statistics

  IPv6 Protocol:

 

    Sent packets:

      Total:      0

        Local sent out:      0            forwarded:         0

        raw packets:     0            discarded:         0

        routing failed:      0            fragments:         0

        fragments failed:    0

 

    Received packets:

      Total:      0

        local host:          0            hopcount exceeded: 0

        format error:        0            option error:          0

        protocol error:      0            fragments:         0

        reassembled:     0            reassembly failed: 0

        reassembly timeout:  0

 

  ICMPv6 protocol:

 

    Sent packets:

      Total:      0

        unreached:           0             too big:              0

        hopcount exceeded:   0             reassembly timeout:   0

        parameter problem:   0

        echo request:        0             echo replied:     0

        neighbor solicit:    0             neighbor advert:      0

        router solicit:      0             router advert:        0

        redirected:          0

      Send failed:

        ratelimited:     0             other errors:     0

 

    Received packets:

      Total:      0

        checksum error:      0             too short:            0

        bad code:            0

        unreached:           0             too big:              0

        hopcount exceeded:   0             reassembly timeout:   0

        parameter problem:   0             unknown error type:   0

        echoed:          0             echo replied:     0

        neighbor solicit:    0             neighbor advert:      0

        router solicit:      0             router advert:        0

        redirected:          0             router renumbering:   0

        unknown info type:   0

      Deliver failed:

        bad length:          0             ratelimited:          0

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

Field

Description

IPv6 Protocol:

Statistics of IPv6 packets

Sent packets:

 Total:      0

  Local sent out:  0   forwarded:    0

  raw packets:    0   discarded:    0

  routing failed:   0   fragments:    0

  fragments failed: 0

 

Statistics of sent IPv6 packets, including:

Total number of sent packets

Number of packets sent locally

Number of forwarded packets

Number of packets sent via raw socket

Number of discarded packets

Number of packets with routing failure

Number of sent fragment packets

Number of fragment sending failures

Received packets:

 Total:      0

  local host:    0  hopcount exceeded:  0

  format error:  0  option error:         0

  protocol error: 0  fragments:          0

  reassembled: 0  reassembly failed:    0

  reassembly timeout:   0

Statistics of received IPv6 packets, including

Total number of received packets

Number of packets received locally

Number of packets exceeding the hops

Number of packets in an incorrect format

Number of packets with incorrect options

Number of packets with incorrect protocol

Number of received fragment packets

Number of reassembled packets

Number of packets whose reassembly fails

Number of packets whose reassembly times out

ICMPv6 protocol:

Statistics of ICMPv6 packets

Sent packets:

 Total:      0

  unreached:        0  too big:            0

  hopcount exceeded: 0  reassembly timeout: 0

  parameter problem: 0

  echo request:      0  echo replied:       0

  neighbor solicit:    0  neighbor advert:    0

  router solicit:      0  router advert        0

  redirected:        0

 Send failed:

  ratelimited:        0  other errors:        0

Statistics of sent ICMPv6 packets, including

Total number of sent packets

Number of packets whose destination is unreachable

Number of too large packets

Number of packets exceeding the hop limit

Number of packets whose fragmentation and reassembly time out

Number of packets with parameter errors

Number of request packets

Number of response packets

Number of neighbor solicitation packets

Number of neighbor advertisement packets

Number of router solicit packets

Number of router advertisement packets

Number of redirected packets

Number of packets failing to be sent because of rate limitation

Number of packets with other errors

Received packets:

 Total:      0

  checksum error:    0  too short:          0

  bad code:          0

  unreached:        0  too big:            0

  hopcount exceeded: 0  reassembly timeout: 0

  parameter problem: 0  unknown error type: 0

  echoed:           0  echo replied: 0

  neighbor solicit:    0  neighbor advert:    0

  router solicit:      0  router advert:       0

  redirected:        0  router renumbering  0

  unknown info type: 0

  Deliver failed:

  bad length:       0   ratelimited:        0

Statistics of received ICMPv6 packets, including

Total number of received packets

Number of packets with checksum errors

Number of too small packets

Number of packets with error codes

Number of packets whose destination is unreachable

Number of too large packets

Number of packets exceeding the hop limit

Number of packets whose fragmentation and  reassembly time out

Number of packets with parameter errors

Number of packets with unknown errors

Number of request packets

Number of response packets

Number of neighbor solicitation messages

Number of neighbor advertisement packets

Number of router solicitation packets

Number of router advertisement packets

Number of redirected packets

Number of packets  recounted by the router

Number of unknown information type of packets

Number of packets with a incorrect size

Number of packets failing to be received because of rate limitation

 

1.1.10  display tcp ipv6 statistics

Syntax

display tcp ipv6 statistics

View

Any view

Parameter

None

Description

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

Example

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

<H3C> display tcp ipv6 statistics

Received packets:

     Total: 0

     packets in sequence: 0 (0 bytes)

     window probe packets: 0, window update packets: 0

     checksum error: 0, offset error: 0, short error: 0

 

     duplicate packets: 0 (0 bytes), partially duplicate packets: 0 (0 bytes)

     out-of-order packets: 0 (0 bytes)

     packets with data after window: 0 (0 bytes)

     packets after close: 0

 

     ACK packets: 0 (0 bytes)

     duplicate ACK packets: 0, too much ACK packets: 0

 

Sent packets:

     Total: 0

     urgent packets: 0

     control packets: 0 (including 0 RST)

     window probe packets: 0, window update packets: 0

 

     data packets: 0 (0 bytes) data packets retransmitted: 0 (0 bytes)

     ACK only packets: 0 (0 delayed)

 

Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0

Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections disconnected : 0

Initiated connections: 0, accepted connections: 0, established connections: 0

Closed connections: 0 (dropped: 0, initiated dropped: 0)

Table 1-10 Description on fields of the display tcp ipv6 statistics command

Field

Description

Received packets:

     Total: 0

     packets in sequence: 0 (0 bytes)

     window probe packets: 0, window update packets: 0

     checksum error: 0, offset error: 0, short error: 0

 

     duplicate packets: 0 (0 bytes), partially duplicate packets: 0 (0 bytes)

     out-of-order packets: 0 (0 bytes)

     packets with data after window: 0 (0 bytes)

     packets after close: 0

 

     ACK packets: 0 (0 bytes)

     duplicate ACK packets: 0, too much ACK packets: 0

Statistics of received packets, including

Total number of received packets

Number of packets received in sequence

Number of  window probe packets

Number of  window size update packets

Number of packets with checksum errors

Number of packets with offset errors

Number of packets whose total length is less than that specified by the packet header

Number of duplicate packets

Number of partially duplicate packets

Number of out-of-order packets

Number of packets exceeding the receiving window size

Number of packets after the connection is closed

Number of  ACK packets

Number of duplicate ACK packets/excessive ACK packets

Sent packets:

     Total: 0

     urgent packets: 0

     control packets: 0 (including 0 RST)

     window probe packets: 0, window update packets: 0

 

     data packets: 0 (0 bytes) data packets retransmitted: 0 (0 bytes)

     ACK only packets: 0 (0 delayed)

Statistics of sent packets, including

Total number of packets

Number of packets containing an urgent indicator

Number of  control packets

Number of window probe packets

Number of window update packets

Number of data packets

Number of retransmitted packets

Number of ACK only packets

Retransmitted timeout

Number of packets whose retransmission times out

connections dropped in retransmitted timeout

Number of connections dropped because of retransmission timeout

Keepalive timeout

Number of keepalive timeouts

Keepalive probe

Number of keepalive probes

Keepalive timeout, so connections disconnected

Number of connections dropped because of keepalive response timeout

Initiated connections

Number of initiated connections

accepted connections

Number of accepted connections

established connections

Number of established connections

Closed connections

Number of closed connections

dropped

Number of dropped connections(after SYN is received from the peer)

initiated dropped

Number of initiated but dropped connections(before SYN is received from the peer)

 

1.1.11  display tcp ipv6 status

Syntax

display tcp ipv6 status

View

Any view

Parameter

None

Description

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

Example

# View the IPv6 TCP connection status.

<H3C> display tcp ipv6 status

TCP6CB       Local Address       Foreign Address      State

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

Table 1-11 Description on fields of the display tcp ipv6 status command

Field

Description

TCP6CB