H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)

HomeSupportSwitchesH3C S3610[S5510] Switch SeriesReference GuidesCommand ReferencesH3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
12-IPv6 Configuration Command
Title Size Download
12-IPv6 Configuration Command 330 KB

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 fibcache. 1-3

1.1.4 display ipv6 host 1-3

1.1.5 display ipv6 interface. 1-4

1.1.6 display ipv6 neighbors. 1-6

1.1.7 display ipv6 neighbors count 1-7

1.1.8 display ipv6 pathmtu. 1-8

1.1.9 display ipv6 socket 1-9

1.1.10 display ipv6 statistics. 1-11

1.1.11 display tcp ipv6 statistics. 1-14

1.1.12 display tcp ipv6 status. 1-17

1.1.13 display udp ipv6 statistics. 1-18

1.1.14 dns server ipv6. 1-19

1.1.15 ipv6. 1-20

1.1.16 ipv6 address. 1-20

1.1.17 ipv6 address auto link-local 1-21

1.1.18 ipv6 address eui-64. 1-22

1.1.19 ipv6 address link-local 1-23

1.1.20 ipv6 fibcache. 1-23

1.1.21 ipv6 fib-loadbalance-type hash-based. 1-24

1.1.22 ipv6 host 1-25

1.1.23 ipv6 icmp-error 1-25

1.1.24 ipv6 nd autoconfig managed-address-flag. 1-26

1.1.25 ipv6 nd autoconfig other-flag. 1-27

1.1.26 ipv6 nd dad attempts. 1-27

1.1.27 ipv6 nd hop-limit 1-28

1.1.28 ipv6 nd ns retrans-timer 1-29

1.1.29 ipv6 nd nud reachable-time. 1-29

1.1.30 ipv6 nd ra halt 1-30

1.1.31 ipv6 nd ra interval 1-31

1.1.32 ipv6 nd ra prefix. 1-32

1.1.33 ipv6 nd ra router-lifetime. 1-33

1.1.34 ipv6 neighbor 1-33

1.1.35 ipv6 neighbors max-learning-num.. 1-34

1.1.36 ipv6 pathmtu. 1-35

1.1.37 ipv6 pathmtu age. 1-35

1.1.38 reset dns ipv6 dynamic-host 1-36

1.1.39 reset ipv6 fibcache. 1-37

1.1.40 reset ipv6 neighbors. 1-37

1.1.41 reset ipv6 pathmtu. 1-38

1.1.42 reset ipv6 statistics. 1-38

1.1.43 reset tcp ipv6 statistics. 1-39

1.1.44 reset udp ipv6 statistics. 1-39

1.1.45 tcp ipv6 timer fin-timeout 1-40

1.1.46 tcp ipv6 timer syn-timeout 1-40

1.1.47 tcp ipv6 window. 1-41

Chapter 2 IPv6 Application Configuration Commands. 2-1

2.1 IPv6 Application Configuration Commands. 2-1

2.1.1 ping ipv6. 2-1

2.1.2 telnet ipv6. 2-2

2.1.3 tftp ipv6. 2-3

2.1.4 tftp-server ipv6 acl 2-4

2.1.5 tracert ipv6. 2-5

Chapter 3 Dual Stack Configuration Commands. 3-1

3.1 Dual Stack Configuration Commands. 3-1

3.1.1 display switch-mode. 3-1

3.1.2 switch-mode. 3-1

Chapter 4 Tunneling Configuration Commands. 4-1

4.1 Tunnel Configuration Commands. 4-1

4.1.1 aggregation-group. 4-1

4.1.2 destination. 4-2

4.1.3 display interface Tunnel 4-3

4.1.4 display ipv6 interface Tunnel 4-4

4.1.5 expediting enable. 4-6

4.1.6 expediting subnet 4-7

4.1.7 interface Tunnel 4-8

4.1.8 peer enable. 4-8

4.1.9 source. 4-9

4.1.10 tunnel-protocol 4-10

 


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.

<Sysname> display dns ipv6 dynamic-host

No.  Domain-name     IPv6 Address        TTL

1        aaa             3001::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 one specific FIB entry, or all FIB entries if no parameter is provided.

Example

# Display all FIB entries.

<Sysname> display ipv6 fib

 FIB Table:

 Total number of Routes : 1

 

Flag:

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

 

Destination: ::1                         PrefixLength    : 128

NextHop     :    ::1                         Flag            : HU

Label       :    NULL                            Tunnel ID   : 0

TimeStamp  : Date- 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 fibcache

Syntax

display ipv6 fibcache

View

Any view

Parameter

None

Description

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

Example

# Display information in the FIB cache.

<Sysname> display ipv6 fibcache

FIB Cache:

 Total number of Routes : 0

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

<Sysname> display ipv6 host

Host                 Age           Flags  IPv6Address (es)

SWB                  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.5  display ipv6 interface

Syntax

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

View

Any view

Parameter

interface-type: Interface type.

interface-number: 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 neither the interface type nor the interface number is provided, the IPv6 information of all interfaces is displayed.

Example

# Display the IPv6 information of a VLAN interface.

<Sysname> display ipv6 interface Vlan-interface 1

Vlan-interface1 current state : UP ,

Line protocol current state : UP

IPv6 is enabled, link-local address is FE80::200:1FF:FE04:5D00

  Global unicast address(es):

    2001::1, subnet is 2001::/64

  Joined group address(es):

    FF02::1:FF00:1

    FF02::1:FF04:5D00

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

<Sysname> display ipv6 interface brief

*down: administratively down

(s): spoofing

Interface                          Physical   Protocol       IPv6 Address

LoopBack0                            up          up(s)       Unassigned

Vlan-interface1                     up          up           2001::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.6  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.

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

static: Displays information of all neighbors configured statically.

vlan vlan-id: Displays information of the neighbors of a specified VLAN, in the range of 1 to 4094.

|: Enables output information filtering.

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.

<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  1   Eth1/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.7  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, in the range of 1 to 4094.

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.

<Sysname> display ipv6 neighbors dynamic count

Total dynamic entry(ies):  2

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

<Sysname> display ipv6 pathmtu all

Ipv6 Destination Address ZoneID  PathMTU     Age     Type

 fe80::12                    0       1300            40      Dynamic

 2222::3                 0       1280            --      Static

Table 1-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.9  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.

With no argument specified, this command displays the information about all the sockets.

Example

# Display information related to a specified socket.

<Sysname> display ipv6 socket

SOCK_STREAM:

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

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

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

socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID,

socket state = SS_PRIV SS_ASYNC

 

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

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

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

socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID,

socket state = SS_PRIV SS_ASYNC

 

SOCK_DGRAM:

SOCK_RAW:

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

Field

Description

SOCK_STREAM

Socket type of TCP

SOCK_DGRAM

Socket type of UDP

SOCK_RAW

Socket type of raw IP

Task

Task ID of the created socket

socketid

ID assigned by the kernel to the created socket

Proto

Protocol ID

LA

Local address and local port number

FA

Remote address and remote port number

sndbuf

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

<Sysname> display ipv6 statistics

  IPv6 Protocol:

 

    Sent packets:

      Total:       0

        Local sent out:          0       orwarded:           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.11  display tcp ipv6 statistics

Syntax

display tcp ipv6 statistics

View

Any view

Parameter

None

Description

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

Example

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

<Sysname> display tcp ipv6 statistics

Received packets:

     Total: 0

     packets in sequence: 0 (0 bytes)

     window probe packets: 0, window update packets: 0

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

 

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

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

     packets with data after window: 0 (0 bytes)

     packets after close: 0

 

     ACK packets: 0 (0 bytes)

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

 

Sent packets:

     Total: 0

     urgent packets: 0

     control packets: 0 (including 0 RST)

     window probe packets: 0, window update packets: 0

 

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

     ACK only packets: 0 (0 delayed)

 

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

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

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

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

Table 1-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 receiving SYN from the peer)

initiated dropped

Number of connection failures (before receiving SYN from the peer)

 

1.1.12  display tcp ipv6 status

Syntax

display tcp ipv6 status

View

Any view

Parameter

None

Description

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

Example

# View the IPv6 TCP connection status.

<Sysname> display tcp ipv6 status

TCP6CB       Local Address       Foreign Address      State

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

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

Field

Description

TCP6CB

IPv6 address of the TCP control block (hexadecimal)

Local Address

Local IPv6 address

Foreign Address

Remote IPv6 address

State

TCP connection status, including

Closed

Listening

Syn_Sent

Syn_Rcvd

Established

Close_Wait

Fin_Wait1

Closing

Last_Ack

Fin_Wait2

Time_Wait

 

1.1.13  display udp ipv6 statistics

Syntax

display udp ipv6 statistics

View

Any view

Parameter

None

Description

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

Example

# View statistics of IPv6 UDP packets.

<Sysname> display udp ipv6 statistics

Received packets:

     Total: 0

     checksum error: 0

     shorter than header: 0, data length larger than packet: 0

     unicast(no socket on port): 0

     broadcast/multicast(no socket on port): 0

     not delivered, input socket full: 0

     input packets missing pcb cache: 0

Sent packets:

     Total: 0

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

Field

Description

Total

Total number of received/sent packets

checksum error

Total number of packets with an invalid checksum

shorter than header

Total number of IPv6 UDP packets whose total length is less than that specified by the packet header

data length larger than packet

Total number of packets whose data length exceeds that specified by the packet header

unicast(no socket on port)

Total number of received unicast packets without any socket on a port

broadcast/multicast(no socket on port)

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

not delivered, input socket full

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

input packet missing pcb cache

Number of packets that do not match any entry in the PCB cache

 

1.1.14  dns server ipv6

Syntax

dns server ipv6 ipv6-address [ interface-type interface-number ]

undo dns server ipv6 ipv6-address [ interface-type interface-number ]

View

System view

Parameter

ipv6-address: IPv6 address of a DNS server.

interface-type interface-number: Interface type and interface number when the IPv6 address of the specified DNS server is a link-local address.

Description

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

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

By default, no DNS server is configured.

Example

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

<Sysname> system-view

[Sysname] dns server ipv6 2002::1

1.1.15  ipv6

Syntax

ipv6

undo ipv6

View

System view

Parameter

None

Description

Use the ipv6 command to enable the IPv6 function.

Use the undo ipv6 command to disable the IPv6 function.

By default, the IPv6 function is disabled.

Example

# Enable the IPv6 function.

<Sysname> system-view

[Sysname] ipv6

1.1.16  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

Parameter

ipv6-address: IPv6 address.

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

Description

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

Use the undo ipv6 address command to remove the manually configured interface address.

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

Note that:

l           Up to five aggregatable global unicast address(es) or site-local address(es) can be configured on an interface at a time.

l           The prefix length can only be 128 bits when the aggregatable global unicast address(es) or site-local address(es) is configured in the LoopBack interface view.

l           You will remove all IPv6 addresses except the automatically configured link-local address if you carry out the undo ipv6 address command without any parameter,

Example

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

1.1.17  ipv6 address auto link-local

Syntax

ipv6 address auto link-local

undo ipv6 address auto link-local

View

Interface view

Parameter

None

Description

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

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

By default, a link-local address is generated automatically after a site-local IPv6 address or global unicast address is configured for the interface.

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.18  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

Parameter

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

Description

Use the ipv6 address eui-64 command to configure a site-local address or global unicast address in the EUI-64 format for an interface.

Use the undo ipv6 address eui-64 command to remove the configured site-local address or global unicast address in the EUI-64 format for an interface.

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

Note that:

l           The prefix length should not be more than 64 bits when the aggregatable global unicast address(es) or site-local address(es) in the EUI-64 format is configured in the VLAN interface view.

l           The prefix length can only be 128 bits when the aggregatable global unicast address(es) or site-local address(es) in the EUI-64 format is configured in the LoopBack interface view.

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.19  ipv6 address link-local

Syntax

ipv6 address ipv6-address link-local

undo ipv6 address ipv6-address link-local

View

Interface view

Parameter

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

Description

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

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

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.20  ipv6 fibcache

Syntax

ipv6 fibcache

undo ipv6 fibcache

View

System view

Parameter

None

Description

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

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

By default, the IPv6 FIB caching function is disabled.

Note that the FIB caching function valid only for forwarded packets.

Example

# Enable the IPv6 FIB caching function.

<Sysname> system-view

[Sysname] ipv6 fibcache

1.1.21  ipv6 fib-loadbalance-type hash-based

Syntax

ipv6 fib-loadbalance-type hash-based

undo ipv6 fib-loadbalance-type hash-based

View

System view

Parameter

None

Description

Use the ipv6 fib-loadbalance-type hash-based command to specify the load sharing mode based on the HASH algorithm for packet forwarding so that packets from the same source address can be forwarded from the same next-hop address.

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

By default, the load sharing based on polling is adopted, that is, each equivalent route is used in turn to forward packets.

Example

# Specify packets from the same source address to be forwarded out of the same next-hop address.

<Sysname> system-view

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

1.1.22  ipv6 host

Syntax

ipv6 host hostname ipv6-address

undo ipv6 host hostname [ ipv6-address ]

View

System view

Parameter

hostname: Host name, a string of up to 20 characters. The character string can contain letters, numerals, “_”, “-“, or “.” and must contain at least one letter.

ipv6-address: IPv6 address.

Description

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

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

Each host name can correspond to at most eight IPv6 addresses.

Example

# Configure the mapping between host name and IPv6 address.

<Sysname> system-view

[Sysname] ipv6 host aaa 2001::1

1.1.23  ipv6 icmp-error

Syntax

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

undo ipv6 icmp-error

View

System view

Parameter

bucket-size: Number of tokens in a token bucket, in the range of 1 to 200. The default value is 10.

interval: Update period of the token bucket in milliseconds, in the range of 0 to 2,147,483,647.

Description

Use the ipv6 icmp-error command to configure the maximum number of IPv6 ICMP error packets sent within a specified time.

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

By default, the size is 10 and the update period is 100 milliseconds. That is, at most 10 IPv6 ICMP error packets can be sent within 100 milliseconds.

Example

# Set the capacity of the token bucket to 50 and the update period to 100 milliseconds. That is, at most 50 IPv6 ICMP error packets can be sent within 100 milliseconds.

<Sysname> system-view

[Sysname] ipv6 icmp-error bucket 50 ratelimit 100

1.1.24  ipv6 nd autoconfig managed-address-flag

Syntax

ipv6 nd autoconfig managed-address-flag

undo ipv6 nd autoconfig managed-address-flag

View

Interface view

Parameter

None

Description

Use the ipv6 nd autoconfig managed-address-flag command to set the M flag (configuration flag of the managed address) to 1 so that the host can acquire an IPv6 address through stateful auto-configuration (for example, DHCP server).

Use the undo ipv6 nd autoconfig managed-address-flag command to restore the M flag to the default value “0” so that the host can acquire an IPv6 address through stateless auto-configuration.

By default, the M flag is set to 0.

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.25  ipv6 nd autoconfig other-flag

Syntax

ipv6 nd autoconfig other-flag

undo ipv6 nd autoconfig other-flag

View

Interface view

Parameter

None

Description

Use the ipv6 nd autoconfig other-flag command to set the O flag (configuration flag of other information) to 1 so that the host can acquire information other than IPv6 address through stateful auto-configuration (for example, DHCP server).

Use the undo ipv6 nd autoconfig other-flag command to remove the setting so that the host can acquire other information through stateless auto-configuration.

By default, the O flag is set to 0.

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.26  ipv6 nd dad attempts

Syntax

ipv6 nd dad attempts value

undo ipv6 nd dad attempts

View

Interface view

Parameter

value: Number of attempts to send a neighbor solicitation message for duplicate address detection, in the range of 0 to 600. The default value is “1”.When it is set to 0, the duplicate address detection is disabled.

Description

Use the ipv6 nd dad attempts command to configure the attempts to send a neighbor solicitation message for duplicate address detection.

Use the undo ipv6 nd dad attempts command to restore the attempts to send a neighbor solicitation message for duplicate address detection to the default.

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

Example

# Set the attempts to send a neighbor solicitation message for duplicate address detection to 20.

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.27  ipv6 nd hop-limit

Syntax

ipv6 nd hop-limit value

undo ipv6 nd hop-limit

View

System view

Parameter

value: Number of hops, in the range of 0 to 255. The default value is 64.When it is set to 0, the Hop Limit field in RA messages sent by the device is 0, that is, no host is designated.

Description

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

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

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

Example

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

<Sysname> system-view

[Sysname] ipv6 nd hop-limit 100

1.1.28  ipv6 nd ns retrans-timer

Syntax

ipv6 nd ns retrans-timer value

undo ipv6 nd ns retrans-timer

View

Interface view

Parameter

value: Interval for retransmitting an NS message in milliseconds, in the range of 1,000 to 3,600,000.

Description

Use the ipv6 nd ns retrans-timer command to set the interval for retransmitting an NS message. The local interface retransmits an NS message at intervals of this value. Furthermore, the Retrans Timer field in RA messages sent by the local interface is equal to this value.

Use the undo ipv6 nd ns retrans-timer command to restore the interval for retransmitting an NS message to the default and specify the value of the Retrans Timer field to 0 so that no host can be designated.

By default, the local interface sends NS messages at intervals of 1,000 milliseconds and the Retrans Timer field in RA messages sent by the local interface is equal to 0.

Example

# Specify the VLAN 100 interface to send an NS message at intervals of 10,000 milliseconds.

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.29  ipv6 nd nud reachable-time

Syntax

ipv6 nd nud reachable-time value

undo ipv6 nd nud reachable-time

View

Interface view

Parameter

value: Neighbor reachable time in milliseconds, in the range of 1 to 3,600,000.

Description

Use the ipv6 nd nud reachable-time command to configure the neighbor reachable time on an interface. This time value serves as not only the neighbor reachable time on the local interface, but also the value of the Reachable Timer field in RA messages sent by the local interface.

Use the undo ipv6 nd nud reachable-time command to restore the neighbor reachable time to the default and to specify the value of the Reachable Timer field in RA messages to 0 so that no host can be designated.

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

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.30  ipv6 nd ra halt

Syntax

ipv6 nd ra halt

undo ipv6 nd ra halt

View

Interface view

Parameter

None

Description

Use the ipv6 nd ra halt command to suppress RA messages.

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

By default, RA messages are suppressed.

Example

# Suppress RA messages on the VLAN 100 interface.

<Sysname> system-view

[Sysname] interface Vlan-interface 100

[Sysname-Vlan-interface100] ipv6 nd ra halt

1.1.31  ipv6 nd ra interval

Syntax

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

undo ipv6 nd ra interval

View

Interface view

Parameter

max-interval-value: Maximum interval for sending RA messages in seconds, in the range of 4 to 1,800.

min-interval-value: Minimum interval for sending RA messages in seconds, in the range of 3 to 1,350.

Description

Use the ipv6 nd ra interval command to set the maximum and the minimum interval for sending RA messages. The device sends RA messages at intervals of a random value between the maximum interval and the minimum interval.

Use the undo ipv6 nd ra interval command to restore the maximum and the minimum interval to the default.

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

Note that:

l           The configured minimum interval must be less than or equal to 0.75 times of the maximum interval.

l           The actual maximum interval to send RA messages must be less than or equal to the keepalive time of RA messages.

Example

# Set the maximum interval for sending RA messages to 1,000 seconds and the minimum interval to 700 seconds.

<Sysname> system-view

[Sysname] interface Vlan-interface 100

[Sysname-Vlan-interface100] ipv6 nd ra interval 1000 700

1.1.32  ipv6 nd ra prefix

Syntax

ipv6 nd ra prefix { ipv6-address prefix-length | ipv6-address/prefix-length } valid-lifetime preferred-lifetime [ no-autoconfig | off-link ]*

undo ipv6 nd ra prefix ipv6-address

View

Interface view

Parameter

ipv6-address: IPv6 address or IPv6 address prefix.

prefix-length: Prefix length of an IPv6 address, a number ranging from 1 to 128.

ipv6-prefix: IPv6 address prefix to be specified.

valid-lifetime: Valid lifetime of a prefix in seconds, in the range of 0 to 4,294,967,295.

preferred-lifetime: Preferred lifetime of a prefix used for stateless auto-configuration in seconds, in the range of 0 to 4,294,967,295.

no-autoconfig: Specifies a prefix not be used for stateless auto-configuration. If this keyword is not provided, the prefix is used for stateless auto-configuration.

off-link: Specifies the address with the prefix not to be directly reachable on the link. If this keyword is not provided, the address with the prefix is directly reachable on the link.

Description

Use the ipv6 nd ra prefix command to configure the prefix information in RA messages.

Use the undo ipv6 nd ra prefix command to remove the prefix information from RA messages.

By default, no prefix information is configured in RA messages and the IPv6 address of the interface sending RA messages is used as the prefix information.

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.33  ipv6 nd ra router-lifetime

Syntax

ipv6 nd ra router-lifetime value

undo ipv6 nd ra router-lifetime

View

Interface view

Parameter

value: Lifetime of RA messages in seconds, in the range of 0 to 9,000. The default value is 1800. When it is set to 0, the device does not serve as a default router.

Description

Use the ipv6 nd ra router-lifetime command to configure the lifetime of RA messages.

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

Note that the lifetime of RA messages should be greater than or equal to the sending interval.

Example

# Set the lifetime of RA messages on the VLAN 100 interface to 1,000 seconds.

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.34  ipv6 neighbor

Syntax

ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number | interface interface-type interface-number }

undo ipv6 neighbor ipv6-address interface-type interface-number

View

System view

Parameter

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

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

vlan-id: VLAN ID corresponding to a static neighbor entry, in the range of 1 to 4094.

port-type port-number: Layer 2 port corresponding to a static neighbor entry.

interface-type interface-number: Layer 3 interface corresponding to a static neighbor entry.

Description

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

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

Note that the corresponding VLAN interface must exist when you carry out the command with the vlan-id port-type port-number argument. After you carry out the command, the device relates the VLAN interface to an IPv6 address to uniquely identify a static neighbor entry. You only need to specify the corresponding VLAN interface before removing a static neighbor entry.

Example

# Configure a static neighbor entry for Ethernet1/0/1 of VLAN 100.

<Sysname> system-view

[Sysname] ipv6 neighbor 2000::1 fe-e0-89 100 Ethernet 1/0/1

1.1.35  ipv6 neighbors max-learning-num

Syntax

ipv6 neighbors max-learning-num number

undo ipv6 neighbors max-learning-num

View

Interface view

Parameter

number: Maximum number of neighbors that can be dynamically learned by an interface, in the range of 1 to 2,560.

Description

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

Use the undo ipv6 neighbors max-learning-num command to restore the configuration to the default.

By default, the maximum number is 2,560.

Example

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

<Sysname> system-view

[Sysname] interface Vlan-interface 100

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

1.1.36  ipv6 pathmtu

Syntax

ipv6 pathmtu ipv6-address [ value ]

undo ipv6 pathmtu ipv6-address

View

System view

Parameter

ipv6-address: Specified IPv6 address.

value: PMTU of a specified IPv6 address in bytes, in the range of 1,280 to 10,000. The default value is 1500. If this argument is not provided, the default value is adopted.

Description

Use the ipv6 pathmtu command to configure a static PMTU for a specified IPv6 address.

Use the undo ipv6 pathmtu command to remove the PMTU configuration for a specified IPv6 address.

By default, no static PMTU is configured.

Example

# Configure a static PMTU for a specified IPv6 address.

<Sysname> system-view

[Sysname] ipv6 pathmtu fe80::12 1300

1.1.37  ipv6 pathmtu age

Syntax

ipv6 pathmtu age age-time

undo ipv6 pathmtu age

View

System view

Parameter

age-time: Aging time for PMTU in minutes, in the range of 10 to 100.

Description

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

Use the undo ipv6 pathmtu age command to restore the aging time for dynamic PMTU to the default.

By default, the aging time is 10 minutes.

Note that the aging time is invalid for static PMTU.

Related command: display ipv6 pathmtu.

Example

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

<Sysname> system-view

[Sysname] ipv6 pathmtu age 40

1.1.38  reset dns ipv6 dynamic-host

Syntax

reset dns ipv6 dynamic-host

View

User view

Parameter

None

Description

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

Example

# Clear IPv6 dynamic domain name cache information.

<Sysname> reset dns ipv6 dynamic-host

1.1.39  reset ipv6 fibcache

Syntax

reset ipv6 fibcache

View

User view

Parameter

None

Description

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

Example

# Clear FIB cache entries.

<Sysname> reset ipv6 fibcache

1.1.40  reset ipv6 neighbors

Syntax

reset ipv6 neighbors [ all | dynamic | interface interface-type interface-number | static ]

View

User view

Parameter

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

dynamic: Clears the dynamic neighbor information on all interfaces.

interface interface-type interface-number: Clears all neighbor information of a specified interface.

static: Clears the static neighbor information on all interfaces.

Description

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

Example

# Clear all neighbor information on all interfaces.

<Sysname> reset ipv6 neighbors all

1.1.41  reset ipv6 pathmtu

Syntax

reset ipv6 pathmtu { all | static | dynamic }

View

User view

Parameter

all: Clears all PMTUs.

static: Clears all static PMTUs.

dynamic: Clears all dynamic PMTUs.

Description

Use the reset ipv6 pathmtu the command to clear the corresponding PMTU.

Example

# Clear all PMTUs.

<Sysname> reset ipv6 pathmtu all

1.1.42  reset ipv6 statistics

Syntax

reset ipv6 statistics

View

User view

Parameter

None

Description

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

Example

# Clear the statistics of IPv6 packets.

<Sysname> reset ipv6 statistics

1.1.43  reset tcp ipv6 statistics

Syntax

reset tcp ipv6 statistics

View

User view

Parameter

None

Description

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

Example

# Clear the statistics of all IPv6 TCP packets.

<Sysname> reset tcp ipv6 statistics

1.1.44  reset udp ipv6 statistics

Syntax

reset udp ipv6 statistics

View

User view

Parameter

None

Description

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

Example

# Clear the statistics of all IPv6 UDP packets.

<Sysname> reset udp ipv6 statistics

1.1.45  tcp ipv6 timer fin-timeout

Syntax

tcp ipv6 timer fin-timeout wait-time

undo tcp ipv6 timer fin-timeout

View

System view

Parameter

wait-time: Length of the finwait timer of IPv6 TCP packets in seconds, in the range of 76 to 3,600.

Description

Use the tcp ipv6 timer fin-timeout command to set the finwait timer of IPv6 TCP packets

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

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

Example

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

<Sysname> system-view

[Sysname] tcp ipv6 timer fin-timeout 800

1.1.46  tcp ipv6 timer syn-timeout

Syntax

tcp ipv6 timer syn-timeout wait-time

undo tcp ipv6 timer syn-timeout

View

System view

Parameter

wait-time: Length of the synwait timer of IPv6 TCP packets in seconds, in the range of 2 to 600.

Description

Use the tcp ipv6 timer syn-timeout command to set the synwait timer of IPv6 TCP packets

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

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

Example

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

<Sysname> system-view

[Sysname] tcp ipv6 timer syn-timeout 100

1.1.47  tcp ipv6 window

Syntax

tcp ipv6 window size

undo tcp ipv6 window

View

System view

Parameter

size: size of IPv6 TCP receiving/sending buffer in KB (kilobyte), in the range of 1 to 32.

Description

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

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

By default, the size of the IPv6 TCP packet buffer is 8 KB.

Example

# Set the size of IPv6 TCP receiving/sending buffer to 4 KB.

<Sysname> system-view

[Sysname] tcp ipv6 window 4

 


Chapter 2  IPv6 Application Configuration Commands

2.1  IPv6 Application Configuration Commands

2.1.1  ping ipv6

Syntax

ping ipv6 [ -a source-ipv6-address | -c count | -m interval | -s packet-size | -t timeout ]* remote-system [ -i interface-type interface-number ]

View

Any view

Parameter

-a source-ipv6-address: Specifies source IPv6 address.

-c count: Specifies the number of packets sent for requesting ICMPv6 echo, ranging from 1 to 4294967295, with the default of 5.

-m interval: Specifies the time intervals in milliseconds to send packets for ICMPv6 echo, ranging from 1 to 65,535, with the default of 200 milliseconds.

l           If a response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the actual response period plus the value of interval.

l           If no response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the timeout value plus the value of interval.

-s packet-size: Specifies the size in bytes of packets sent for requesting ICMPv6 echo, ranging from 20 to 8,100, with the default of 56 bytes.

-t timeout: Specifies the timeout in milliseconds of receiving ICMPv6 echoes, ranging from 0 to 65,535, with the default of 2,000 milliseconds.

remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.

-i interface-type interface-number: Specifies the type and number of an outgoing interface. This argument takes effect only when the destination address is a link-local address and the specified outgoing interface has a link-local address.

Description

Use the ping ipv6 command to test whether the destination is accessible.

Example

# Test whether destination 2001::1 is accessible.

<Sysname> ping ipv6 2001::1

  PING 2001::1 : 56  data bytes, press CTRL_C to break

    Reply from 2001::1

    bytes=56 Sequence=1 hop limit=64  time = 20 ms

    Reply from 2001::1

    bytes=56 Sequence=2 hop limit=64  time = 0 ms

    Reply from 2001::1

    bytes=56 Sequence=3 hop limit=64  time = 0 ms

    Reply from 2001::1

    bytes=56 Sequence=4 hop limit=64  time = 0 ms

    Reply from 2001::1

    bytes=56 Sequence=5 hop limit=64  time = 0 ms

 

  --- 2001::1 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 0/4/20 ms

The “hop limit” field in this prompt information has the same meaning as the “ttl” field in the prompt information displayed by the IPv4 ping command, indicating the TTL value in the ICMPv6 ECHO-REQUEST packets.

2.1.2  telnet ipv6

Syntax

telnet ipv6 remote-system [ -i interface-type interface-number ] [ port-number ]

View

User view

Parameter

remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.

-i interface-type interface-number: Specifies the type and number of an outgoing interface. This argument takes effect only when the destination address is a link-local address and the specified outgoing interface has a link-local address.

port-number: Specifies the port number linked with a Telnet server, ranging from 0 to 65535, with the default of 23.

Description

Use the telnet ipv6 command to log onto another device for remote management from the local device. You can break Telnet logging-in by entering <Ctrl+K>.

Example

# Connect to a remote Telnet server with IPv6 address of 3001::1,

<Sysname> telnet ipv6 3001::1

Trying 3001::1 ...

Press CTRL+K to abort

Connected to 3001::1 ...

************************************************************************

* Copyright(c) 2004-2006 Hangzhou H3C Technologies Co., Ltd.     *

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                *

************************************************************************

 

<Sysname>

2.1.3  tftp ipv6

Syntax

tftp ipv6 remote-system [ -i interface-type interface-number ] { get | put } source-filename [ destination-filename ]

View

User view

Parameter

remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.

-i interface-type interface-number: Specifies the type and number of an interface. This argument takes effect only when the address of the TFTP server is a link-local address and the specified outgoing interface has a link-local address.

get: Specifies to download a file.

put: Specifies to upload a file.

source-filename: Specifies the name of a source file with a string of 1 to 135 letters.

destination-filename: Specifies the name of a destination file with a string of 1 to 135 letters. If no such parameters are specified, then the destination file’s name will be the same as the source file’s.

Description

Use the tftp ipv6 command to perform the following operations:

l           Download a file: Download a specified source file from TFTP server to local.

l           Upload a file: Upload a specified source file from local to TFTP server.

Example

# Download a file from TFTP server.

<Sysname> tftp ipv6 fe80::250:daff:fe91:e058 -i Vlan-interface 300 get filetoget

  .

  File will be transferred in binary mode

  Downloading file from remote tftp server, please wait....

  TFTP:       13 bytes received in 0 second(s)

  File downloaded successfully.

2.1.4  tftp-server ipv6 acl

Syntax

tftp-server ipv6 acl acl-number

undo tftp-server ipv6 acl

View

System view

Parameter

acl-number: ACL number of IPv6, in the range of 2000 to 2999.

Description

Use the tftp-server ipv6 acl command to configure the relation of ACL to TFTP application. You can use the rules configured in IPv6 ACL to enable or disable a specific TFTP server.

Use the undo tftp-server ipv6 acl command to disable the relation of ACL to TFTP application.

ACL is not related to TFTP application by default.

Example

# Associate IPv6 ACL 2000 with TFTP application, which permits the accesses sourced from 2030:5060::9050/64.

<Sysname> system-view

[Sysname] acl ipv6 number 2000

[Sysname-acl6-basic-2000] rule permit source 2030:5060::9050/64

[Sysname-acl6-basic-2000] quit

[Sysname] tftp-server ipv6 acl 2000

2.1.5  tracert ipv6

Syntax

tracert ipv6 [ -f first-ttl | -m max-ttl | -p port | -q packet-num | -w timeout ]* remote-system

View

Any view

Parameter

-f first-ttl: Specifies the first TTL, that is, the allowed number of hops for the first packet. Ranges from 1 to 255, defaults to 1, and must be less than the maximum TTL.

-m max-ttl: Specifies the maximum TTL, that is, the maximum allowed number of hops for a packet. The value ranges from 1 to 255, defaults to 30. It must be greater than the first TTL.

-p port: Specifies the port number of the destination UDP, ranging from 1 to 65535, with the default of 33434.

-q packet-num: Specifies the maximum number of packets sent to a hop, ranging from 1 to 65535, with the default of 3.

-w timeout: Specifies the timeout in milliseconds of waiting ICMPv6 echoes, ranging from 1 to 65,535, with the default of 5,000 milliseconds.

remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.

Description

Use the tracert ipv6 command to trace the route of the IPv6 packets from source to destination.

Example

# Trace the route of the IPv6 packets from source to destination 3002::1.

<Sysname> tracert ipv6 3002::1

 traceroute to 3002::1  30 hops max,60 bytes packet

 1 3003::1 30 ms  0 ms  0 ms

 2 3002::1 10 ms 10 ms 0 ms

 


Chapter 3  Dual Stack Configuration Commands

3.1  Dual Stack Configuration Commands

For dual stack configuration commands, see section 1.1.16  ipv6 address”, 1.1.17  ipv6 address auto link-local”, 1.1.18  ipv6 address eui-64”, and 1.1.19  ipv6 address link-local”.

3.1.1  display switch-mode

Syntax

display switch-mode

View

Any view

Parameter

None

Description

Use the display switch-mode command to display the information about the current system operating mode, the system operating mode after the device reboots the next time, and related system information

Example

# Display the information about the current system operating mode, the system operating mode after the device reboots the next time, and related system information.

<Sysname> display switch-mode

3.1.2  switch-mode

Syntax

switch-mode { default | dual-ipv4-ipv6 }

View

System view

Parameter

default: Configures the device to support only IPv4.

dual-ipv4-ipv6: Configures the device to support IPv4/IPv6 dual-stack. When operating in this mode, a device supports both IPv4 and IPv6 packet forwarding.

Description

Use the switch-mode command to configure the protocol stack mode supported. Be default, a device supports only IPv4 protocol stack.

 

&  Note:

l      The configuration performed by this command takes effect only after the device is restarted.

l      Before enabling dual-stack, you need to configure the device to operate in the IPv4/IPv6 dual-stack mode by using the switch-mode dual-ipv4-ipv6 command. Otherwise, IPv6 packets cannot be forwarded on the device even if dual-stack is enabled.

 

Example

# Configure the device to operate in IPv4/IPv6 dual-stack mode.

<Sysname> system-view

[Sysname] switch-mode dual-ipv4-ipv6

 


Chapter 4  Tunneling Configuration Commands

4.1  Tunnel Configuration Commands

4.1.1  aggregation-group

Syntax

aggregation-group aggregation-group-id

undo aggregation-group

View

Tunnel interface view

Parameter

aggregation-group-id: Link aggregation group ID.

Description

Use the aggregation-group command to configure a service-loop group for a tunnel.

Use the undo aggregation-group command to remove the service-loop group configured for a tunnel.

By default, a tunnel does not reference any service-loop group.

Before configuring a service-loop group for a tunnel in tunnel interface view, you need to a configure link aggregation group in system view and set the service type of the link aggregation group to tunnel.

One tunnel interface can reference only one service-loop group.

For related configuration, refer to the link-aggregation group command. For details, refer to Port Correlation Configuration module.

Example

# Before configuring a service-loop group for a tunnel in tunnel interface view, create and configure link aggregation groups in system view. For example, create link aggregation group 1, and set the configuration mode to manual and the service type to tunnel.

<Sysname> system-view

[Sysname] link-aggregation group 1 mode manual

[Sysname] link-aggregation group 1 service-type tunnel

# Add a layer 2 Ethernet interface to service-loop group 1. (Note that to add a port to a service-loop group, you need to disable STP on the port.)

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] stp disable

[Sysname-Ethernet1/0/1] port link-aggregation group 1

[Sysname-Ethernet1/0/1] quit

# Configure the tunnel to reference service-loop group 1 in tunnel interface view.

[Sysname] interface Tunnel 2

[Sysname-Tunnel2] aggregation-group 1

4.1.2  destination

Syntax

destination { ip-address | ipv6-address }

undo destination

View

Tunnel interface view

Parameter

ip-address: Destination IPv4 address to be specified for the tunnel interface.

ipv6-address: Destination IPv6 address to be specified for the tunnel interface. Currently, you cannot configure the destination address of a tunnel interface as an IPv6 address on an S3610&S5510 switch.

Description

Use the command destination to specify the destination address of the tunnel interface.

Use the undo destination command to remove the configured destination IP address.

By default, no destination address is configured for the tunnel interface.

Note that:

l           You can configure destination addresses for manually established tunnels only.

l           The destination address of a tunnel interface is the address of the peer interface receiving packets and is usually the source address of the peer tunnel interface.

l           Two or more tunnel interfaces using the same encapsulation protocol must have different source addresses and destination addresses.

Related command: interface Tunnel and source.

Example

# Set VLAN1 (193.101.1.1) of Sysname1 to the source interface and destination interface of a tunnel between two devices, respectively.

<Sysname1> system-view

[Sysname1] interface Tunnel 0

[Sysname1-Tunnel0] source 193.101.1.1

[Sysname1-Tunnel0] destination 192.100.1.1

# Set VLAN1 (192.100.1.1) of Sysname2 to the source interface and destination interface of a tunnel between two devices, respectively.

<Sysname2> system-view

[Sysname2] interface Tunnel 1

[Sysname2-Tunnel1] source 192.100.1.1

[Sysname2-Tunnel1] destination 193.101.1.1

4.1.3  display interface Tunnel

Syntax

display interface Tunnel number

View

Any view

Parameter

number: Tunnel interface number.

Description

Use the display interface Tunnel command to display related information of a specified tunnel interface, such as source address, destination address, and encapsulation mode.

Related command: interface Tunnel, source, destination, and tunnel-protocol.

Example

# Display information of the interface Tunnel 0.

<Sysname> display interface Tunnel 0

Tunnel0 current state: DOWN

Line protocol current state: DOWN

Description: Tunnel0 Interface

The Maximum Transmit Unit is 64000

Internet protocol processing : disabled

Encapsulation is TUNNEL, aggregation ID not set

Tunnel source unknown, destination unknown

Tunnel mode is IPv6 over IPv4(config)

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    0 packets output,  0 bytes

    0 output error

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

Field

Description

Tunnel0 current state

The physical layer of the tunnel interface is reachable.

Line protocol current state

The link layer of the tunnel interface is reachable.

Description

Descriptive information of a tunnel interface

Tunnel0 Interface

Tunnel interface number

Maximum Transmit Unit

Maximum transmission unit in a tunnel

Encapsulation is TUNNEL

The encapsulation protocol is tunnel.

aggregation ID

Service-loop group ID referenced by a tunnel. If the device supports link aggregation groups, the link aggregation group ID configured in tunnel interface view is displayed. If device does not support, “aggregation ID not set” is displayed.

Tunnel source

Address of the tunnel source.

destination

Address of the tunnel destination.

Tunnel protocol/transport

Tunnel protocol and transport protocol.

Last 300 seconds input

Number of bytes and packets input per second in the last five minutes.

Last 300 seconds output

Number of bytes and packets output per second in the last five minutes.

packets input

Total number of input packets.

input error

Number of error packets among all input packets.

packets output

Total number of output packets.

output error

Number of error packets in all output packets

 

4.1.4  display ipv6 interface Tunnel

Syntax

display ipv6 interface Tunnel number

View

Any view

Parameter

number: Tunnel interface number.

Description

Use the display ipv6 interface Tunnel command display related IPv6 information of a specified tunnel interface, including link state, IPv6 protocol state, and IPv6 address.

Example

# Display information of the interface Tunnel 0.

<Sysname> display ipv6 interface Tunnel 0

Tunnel0 current state :UP

Line protocol current state :UP

IPv6 is enabled, link-local address is FE80::101:101

  Global unicast address(es):

    2002:101:101::1, subnet is 2002::/16

  Joined group address(es):

    FF02::1:FF01:101

    FF02::1:FF00:1

    FF02::2

    FF02::1

  MTU is 1500 bytes

  ND reachable time is 30000 milliseconds

  ND retransmit interval is 1000 milliseconds

  Hosts use stateless autoconfig for addresses

Table 4-2 Description on fields of the display interface Tunnel command

Field

Description

Tunnel0 current state

The physical layer of the tunnel interface is reachable.

Line protocol current state

The link layer of the tunnel interface is reachable.

IPv6 is enabled

Enables IPv6 on a tunnel interface

link-local address

Link-local address of a tunnel interface

Global unicast address(es)

Aggregatable global unicast address of a tunnel interface.

Joined group address(es)

Multicast address of a tunnel interface.

MTU is 1500 bytes

Size of the MTU in a tunnel. The MTU in this example is 1500 bytes.

ND reachable time

Neighbor reachable time

ND retransmit interval

Interval for retransmitting a neighbor discovery packet.

Hosts use stateless autoconfig for addresses

Hosts use the stateless auto-configuration mode to acquire IPv6 addresses.

 

4.1.5  expediting enable

Syntax

expediting enable

undo expediting enable

View

Tunnel interface view

Parameter

None

Description

Use the expediting enable command to enable the expedite termination function.

Use the expediting enable command to disable the expedite termination function.

By default, the expedite termination function is disabled.

The expedite termination function must be enabled if you need to run a dynamic routing protocol (such as OSPFv3) on a manually established tunnel, ping a link-local address configured on a tunnel interface, or automatically obtain a global IPv6 address through an ISATAP tunnel.

Example

# Enable the expedite termination function

<Sysname> system-view

[Sysname] interface Tunnel 0

[Sysname-Tunnel0] expediting enable

4.1.6  expediting subnet

Syntax

expediting subnet ip-address mask

undo expediting subnet

View

Tunnel interface view

Parameter

ip-address: Address of the expedite termination subnet of a tunnel

mask: Mask of the expedite termination subnet of a tunnel

Description

Use the expediting subnet command to set an IP address and mask for the expedite termination subnet.

Use the undo expediting subnet command to remove the configuration.

By default, no expedite termination subnet is configured for a tunnel.

Note that:

l           You must enable the expedite termination before configuring an expedite termination subnet in tunnel interface view.

l           The expediting subnet is not applicable to a manual tunnel (for example, IPv6 manually configured tunnel). After the expedite termination function is enabled, the system will automatically consider the destination address of a tunnel as the address of the expedite termination subnet, and the subnet mask as 255.255.255.255.

l           For automatic tunnels (for example, automatic IPv4-compatible IPv6 tunnel, automatic 6to4 tunnel, and ISATAP tunnel), you must carry out the expediting subnet command to designate an IP address and subnet for the expedite termination subnet after carrying out the expediting enable command.

Example

# Configure an expedite termination subnet for an automatic 6to4 tunnel: First enable the expedite termination, and then set the address of the expedite termination subnet to 1.1.1.2 and the subnet mask to 255.255.255.0.

<Sysname> system-view

[Sysname] interface Tunnel 1

[Sysname-Tunnel1] tunnel-protocol ipv6-ipv4 6to4

[Sysname-Tunnel1] expediting enable

The expediting subnet needs to be configured, or else the expediting is not available.

[Sysname-Tunnel1] expediting subnet 1.1.1.2 255.255.255.0

4.1.7  interface Tunnel

Syntax

interface Tunnel number

undo interface Tunnel number

View

System view

Parameter

number: Tunnel interface number, in the range of 0 to 1023.

Description

Use the interface Tunnel command to create a tunnel interface and enter tunnel interface view.

Use the undo interface Tunnel command to remove a specified tunnel interface.

By default, there is no tunnel interface on the device.

Note that:

l           Carry out the interface Tunnel command to enter interface view of a specified tunnel. If the tunnel interface is not created, you must create it before entering tunnel interface view.

l           A tunnel interface number has only local significance, and therefore, the same or different interface numbers can be set at both ends of a tunnel.

Related command: source, destination, and tunnel-protocol.

Example

# Create the interface Tunnel 3.

<Sysname> system-view

[Sysname] interface Tunnel 3

[Sysname-Tunnel3]

4.1.8  peer enable

Syntax

peer ip-address enable

undo peer ip-address enable

View

IPv6 address family view

Parameter

ip-address: IPv4 address of the 6PE peer to be specified.

Description

Use the peer enable command to enable a 6PE peer.

Use the undo peer enable command to cancel the configuration.

 

&  Note:

Currently, the S3610&S5510 series switches do not support these two commands.

 

Example

Currently, the S3610&S5510 series switches do not support these two commands.

4.1.9  source

Syntax

source { ip-address | ipv6-address | interface-type interface-number }

undo source

View

Tunnel interface view

Parameter

ip-address: Source IPv4 address of a tunnel interface.

ipv6-address: Source IPv6 address to be specified for the tunnel interface. Currently, you cannot assign an IPv6 address to the source interface of a tunnel on an S3610&S5510 switch.

interface-type interface-number: Interface type and interface number. The interface types include loopback and vlan-interface.

Description

Use the source command to specify a source address for a tunnel interface.

Use the undo source command to remove the configured source IP address.

By default, no source address is configured for a tunnel interface.

Note that:

l           The source address of a tunnel interface is the address of the interface sending packets and is usually the destination address of the peer tunnel interface.

l           Two or more tunnel interfaces using the same encapsulation protocol must have different source addresses and destination addresses.

Related command: interface Tunnel and destination.

Example

# Configure the interface Tunnel 5. The actual outgoing interface encapsulating packets is LoopBack1(192.100.1.1).

<Sysname> system-view

[Sysname] interface Tunnel 5

[Sysname-Tunnel5] source 192.100.1.1

Or

[Sysname-Tunnel5] source LoopBack 1

4.1.10  tunnel-protocol

Syntax

tunnel-protocol ipv6-ipv4 [ 6to4 | auto-tunnel | isatap ]

undo tunnel-protocol

View

Tunnel interface view

Parameter

ipv6-ipv4: Sets the tunnel to IPv6 over IPv4 manually configured.

ipv6-ipv4 6to4: Sets the tunnel mode to IPv6 over IPv4 6to4.

ipv6-ipv4 auto-tunnel: Sets the tunnel mode to automatic IPv6 over IPv4.

ipv6-ipv4 isatap: Sets the tunnel mode to IPv6 over IPv4 isatap.

Description

Use the tunnel-protocol command to configure the tunnel mode.

Use the undo tunnel-protocol to restore the tunnel mode to the default.

By default, the tunnel is an IPv6 over IPv4 manually configured tunnel.

Note that:

l           A proper tunnel mode can be selected for packet encapsulation according to the network topology and application. The same tunnel mode should be configured at both ends of the tunnel. Otherwise, packet delivery will fail.

l           Only one tunnel can automatically be configured at the same tunnel source.

Example

# Configure the tunnel mode as IPv6 over IPv4 manually configured tunnel.

<Sysname> system-view

[Sysname] interface Tunnel 2

[Sysname-Tunnel2] tunnel-protocol ipv6-ipv4

 

  • 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
新华三官网