05-Layer 3 - IP Services Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command Reference-Release7128-6W71005-Layer 3 - IP Services Command Reference
09-IPv6 basics commands
Title Size Download
09-IPv6 basics commands 269.6 KB

The device operates in IRF or standalone (the default) mode. For information about IRF mode, see IRF Configuration Guide.

display ipv6 fib

Use display ipv6 fib to display IPv6 FIB entries.

Syntax

display ipv6 fib [ vpn-instance vpn-instance-name ] [ ipv6-address [ prefix-length ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.

ipv6-address: Specifies an IPv6 address.

prefix-length: Specifies a prefix length for the IPv6 address, in the range of 0 to 128.

Usage guidelines

If you do not specify any VPN, this command displays IPv6 FIB entries for the public network.

If you do not specify any prefix length, this command displays the IPv6 FIB entry longest matching the IPv6 address. If you specify a prefix, this command displays the IPv6 FIB entry exactly matching the IPv6 address and prefix length.

If you do not specify any parameter, this command displays all IPv6 FIB entries for the public network.

Examples

# Display all IPv6 FIB entries for the public network.

<Sysname> display ipv6 fib

 

Destination count: 1 FIB entry count: 1

 

Flag:

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

  R:Relay     F:FRR

 

Destination: 1::1                                           Prefix length: 64

Nexthop    : 1::2                                           Flags: UHS

Time stamp : 0x1                                            Label: 100

Interface  : GE3/0/2                                         Token: Invalid

Table 1 Command output

Field

Description

Destination count

Total number of destination addresses.

FIB entry count

Total number of IPv6 FIB entries.

Destination

Destination address.

Prefix length

Prefix length of the destination address.

Nexthop

Next hop.

Flags

Route flag:

·       UUsable route.

·       GGateway route.

·       HHost route.

·       BBlack hole route.

·       DDynamic route.

·       SStatic route.

·       RRecursive route.

·       FFast re-route.

Time stamp

Time when the IPv6 FIB entry was generated.

Label

Inner MPLS label.

Interface

Outgoing interface.

Token

Label switched path index number.

 

display ipv6 icmp statistics

Use display ipv6 icmp statistics to display ICMPv6 packet statistics.

Syntax

In standalone mode:

display ipv6 icmp statistics [ slot slot-number ]

In IRF mode:

display ipv6 icmp statistics [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Displays ICMPv6 packet statistics for the specified card. The slot-number argument specifies the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays ICMPv6 packet statistics for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

This command displays statistics about received and sent ICMPv6 packets.

Examples

# Display ICMPv6 packet statistics.

<Sysname> display ipv6 icmp statistics

  Input: bad code                0           too short                  0

         checksum error          0           bad length                 0

         path MTU changed        0          destination unreachable  0

         too big                  0           parameter problem         0

         echo request            0           echo reply                  0

         neighbor solicit        0           neighbor advertisement   0

         router solicit          0           router advertisement      0

         redirect                 0           router renumbering         0

 output: parameter problem     0           echo request                0

         echo reply               0           unreachable no route       0

         unreachable admin       0           unreachable beyond scope 0

         unreachable address    0           unreachable no port        0

         too big                   0           time exceed transit       0

         time exceed reassembly 0           redirect                    0

         ratelimited               0           other errors               0

display ipv6 interface

Use display ipv6 interface to display IPv6 interface information.

Syntax

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

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type: Interface type.

interface-number: Interface number.

brief: Displays brief information.

Usage guidelines

If you specify the brief keyword, this command displays brief information including physical status, link-layer protocols, and IPv6 address.

If you do not specify the brief keyword, this command displays detailed information including IPv6 configuration and operating information, and IPv6 packet statistics.

If you do not specify any interface, this command displays IPv6 information for all interfaces.

If you specify only interface-type, this command displays IPv6 information for the interfaces of the specified type.

If you specify interface-type interface-number, this command displays IPv6 information for the specified interface.

Examples

# Display IPv6 information for VLAN-interface 2.

<Sysname> display ipv6 interface vlan-interface 2

Vlan-interface2 current state: UP

Line protocol current state: UP

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

  Global unicast address(es):

    10::1234:56FF:FE65:4322, subnet is 10::/64 [TENTATIVE] [AUTOCFG]

      [valid lifetime 4641s/preferred lifetime 4637s]

    20::1234:56ff:fe65:4322, subnet is 20::/64 [TENTATIVE] [EUI-64]

    30::1, subnet is 30::/64 [TENTATIVE] [ANYCAST]

    40::2, subnet is 40::/64 [TENTATIVE] [DHCP]

    50::3, subnet is 50::/64 [TENTATIVE]

  Joined group address(es):

    FF02::1

    FF02::2

    FF02::1:FF00:1

    FF02::1:FF65:4322

  MTU is 1500 bytes

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND retransmit interval is 1000 milliseconds

  Hosts use stateless autoconfig for addresses

IPv6 Packet statistics:

  InReceives:                     0

  InTooShorts:                  0

  InTruncatedPkts:             0

  InHopLimitExceeds:           0

  InBadHeaders:                 0

  InBadOptions:                 0

  ReasmReqds:                     0

  ReasmOKs:                           0

  InFragDrops:                  0

  InFragTimeouts:               0

  OutFragFails:                 0

  InUnknownProtos:                  0

  InDelivers:                     0

  OutRequests:                  0

  OutForwDatagrams:                 0

  InNoRoutes:                    0

  InTooBigErrors:               0

  OutFragOKs:                     0

  OutFragCreates:               0

  InMcastPkts:                  0

  InMcastNotMembers:                0

  OutMcastPkts:                 0

  InAddrErrors:                 0

  InDiscards:                    0

  OutDiscards:                   0

Table 2 Command output

Field

Description

Vlan-interface2 current state

Physical state of the interface:

·       Administratively DOWN—The VLAN interface has been administratively shut down with the shutdown command.

·       DOWN—The VLAN interface is administratively up but its physical state is down because all ports in the VLAN are down.

·       UP—The administrative and physical states of the VLAN interface are both up.

Line protocol current state

Link layer protocol state of the interface:

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

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

IPv6 is enabled

IPv6 is enabled on the interface. This function is automatically enabled after an IPv6 address is configured for an interface.

link-local address

Link-local address of the interface.

Global unicast address(es)

Global unicast addresses of the interface:

IPv6 address states:

·       TENTATIVEInitial state. DAD is being performed or is to be performed on the address.

·       DUPLICATE—The address is not unique on the link and cannot be used.

·       PREFERRED—The address is preferred and can be used as the source or destination address of a packet. If an address is in this state, the command does not display the address state.

·       DEPRECATED—The address is beyond the preferred lifetime but in the valid lifetime. It is valid, but it cannot be used as the source address for a new connection. Packets destined to the address are processed normally.

If a global unicast address is not manually configured, the following indicates how the address is obtained:

·       AUTOCFG—Stateless autoconfigured.

·       DHCPAssigned by a DHCPv6 server.

·       EUI-64Manually configured EUI-64 IPv6 address.

·       RANDOM—Random address automatically generated.

If the address is a manually configured anycast address, ANYCAST is marked.

valid lifetime

Specifies how long autoconfigured global unicast addresses using a prefix are valid.

preferred lifetime

Specifies how long autoconfigured global unicast addresses using a prefix are preferred.

Joined group address(es)

Addresses of multicast groups that the interface has joined.

MTU

Maximum transmission unit (MTU) of the interface.

ND DAD is enabled, number of DAD attempts

DAD is enabled.

·       If DAD is enabled, this field displays the number of attempts to send a NS message for DAD (set with the ipv6 nd dad attempts command).

·       If DAD is disabled, this field displays ND DAD is disabled. To disable DAD, set the number of attempts to 0.

ND reachable time

Time during which a neighboring device is reachable.

ND retransmit interval

Interval for retransmitting an NS message.

Hosts use stateless autoconfig for addresses

Hosts obtained IPv6 addresses through stateless autoconfiguration.

InReceives

All IPv6 packets received by the interface, including error packets.

InTooShorts

Received IPv6 packets that are too short, with a length less than 40 bytes, for example.

InTruncatedPkts

Received IPv6 packets with a length less than that specified in the packets.

InHopLimitExceeds

Received IPv6 packets with a hop count exceeding the limit.

InBadHeaders

Received IPv6 packets with incorrect basic headers.

InBadOptions

Received IPv6 packets with incorrect extension headers.

ReasmReqds

Received IPv6 fragments.

ReasmOKs

Number of reassembled packets rather than the number of fragments.

InFragDrops

IPv6 fragments that are discarded because of certain errors.

InFragTimeouts

IPv6 fragments that are discarded because the amount of time they stayed in the system buffer exceeded the specified interval.

OutFragFails

Packets that failed to be fragmented on the output interface.

InUnknownProtos

Received IPv6 packets with unknown or unsupported protocol type.

InDelivers

Received IPv6 packets that are delivered to application layer protocols (such as ICMPv6, TCP, and UDP).

OutRequests

Local IPv6 packets sent by IPv6 application protocols.

OutForwDatagrams

Packets forwarded by the output interface.

InNoRoutes

Received IPv6 packets that are discarded because no matched route can be found.

InTooBigErrors

Received IPv6 packets that are discarded because they exceeded the Path MTU.

OutFragOKs

Fragmented packets on the output interface.

OutFragCreates

Number of fragmented packets on the output interface.

InMcastPkts

Received IPv6 multicast packets on the interface.

InMcastNotMembers

IPv6 multicast packets that are discarded because the interface did not join in the corresponding multicast group.

OutMcastPkts

IPv6 multicast packets sent by the interface.

InAddrErrors

IPv6 packets that are discarded due to invalid destination addresses.

InDiscards

IPv6 packets that are discarded due to resource problems rather than packet content errors.

OutDiscards

Sent packets that are discarded due to resource problems rather than packet content errors.

 

# Display brief IPv6 information for all interfaces.

<Sysname> display ipv6 interface brief

*down: administratively down

(s): spoofing

Interface                     Physical Protocol IPv6 Address

Vlan-interface1              down       down      Unassigned

Vlan-interface2              up          up        2001::1

Vlan-interface100           up           up        Unassigned

Table 3 Command output

Field

Description

*down: administratively down

The interface has been administratively shut down with the shutdown command.

(s): spoofing

Spoofing attribute of the interface.

The link protocol state of the interface is up, but the link is temporarily set up on demand or does not exist.

Interface

Name of the interface.

Physical

Physical state of the interface:

·       *down—The VLAN interface has been administratively shut down with the shutdown command.

·       down—The VLAN interface is administratively up but its physical state is down because all ports in the VLAN are down.

·       up—The administrative and physical states of the VLAN interface are both up.

Protocol

Link layer protocol state of the interface:

·       down—The network layer protocol state of the VLAN interface is down.

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

IPv6 Address

IPv6 address of the interface.

·       If at least one global unicast address is configured, this field displays the lowest address.

·       If no global unicast address is configured, this field displays the link-local address.

·       If no address is configured, this field displays Unassigned.

 

display ipv6 interface prefix

Use display ipv6 interface prefix to display IPv6 prefix information on an interface.

Syntax

display ipv6 interface interface-type interface-number prefix

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number.

Examples

# Display IPv6 prefix information about VLAN-interface 10.

<Sysname> display ipv6 interface Vlan-interface10 prefix

Prefix: 1001::/65                                          Origin: ADDRESS

Age:    -                                                     Flag:   AL

Lifetime(Valid/Preferred): 2592000/604800

 

Prefix: 2001::/64                                          Origin: STATIC

Age:    -                                                     Flag:   L

Lifetime(Valid/Preferred): 3000/2000

 

Prefix: 3001::/64                                          Origin: RA

Age:    600                                                   Flag:   A

Lifetime(Valid/Preferred): -

Table 4 Command output

Filed

Description

Prefix

IPv6 address prefix.

Origin

How the prefix is generated:

·       STATICManually configured with the ipv6 nd ra prefix command.

·       RA—Advertised in RA messages after stateless autoconfiguration is enabled.

·       ADDRESSGenerated by a manually configured address.

Age

Aging time in seconds. If the prefix does not age out, a hyphens (-) is displayed.

Flag

Flags advertised in RA messages. If no flags are available, this field displays a hyphen (-).

·       L—The address with the prefix is directly reachable on the link.

·       A—The prefix is used for stateless autoconfiguration.

Lifetime

Lifetime in seconds advertised in RA messages. If the prefix does not need to be advertised, this field displays a hyphen (-).

·       ValidValid lifetime of the prefix.

·       PreferredPreferred lifetime of the prefix.

 

Related commands

ipv6 nd ra prefix

display ipv6 neighbors

Use display ipv6 neighbors to display IPv6 neighbor information.

Syntax

In standalone mode:

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

In IRF mode:

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

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

ipv6-address: Specifies the IPv6 address of a neighbor whose information is displayed.

all: Displays information about all neighbors, including neighbors acquired dynamically and configured statically on the public network and all private networks.

dynamic: Displays information about all neighbors acquired dynamically.

static: Displays information about all neighbors configured statically.

slot slot-number: Displays neighbor information for the specified card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays neighbor information for the specified card on the specified IRF member device. The chassis-number argument refers to the ID of the IRF member device. The slot-number argument refers to the number of the slot that holds the card. (In IRF mode.)

interface interface-type interface-number: Displays neighbor information for the interface. The interface-type interface-number argument specifies an interface by its type and number.

vlan vlan-id: Displays information about neighbors in the specified VLAN. The VLAN ID ranges from 1 to 4094.

verbose: Displays detailed neighbor information.

Usage guidelines

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

Examples

# Display all neighbor information.

<Sysname> display ipv6 neighbors all

                       Type: S-Static    D-Dynamic    I-Invalid

IPv6 Address                   Link Layer     VID  Interface      State T  Age

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

# Display detailed information about all neighbors.

<Sysname> display ipv6 neighbors all verbose

                       Type: S-Static    D-Dynamic    I-Invalid

IPv6 Address: FE80::200:5EFF:FE32:B800

Link layer  : 0000-5e32-b800      VID : N/A  Interface: GE3/0/1

State        : REACH                 Type: IS   Age      : -

Vpn-instance: vpn1

Table 5 Command output

Field

Description

IPv6 Address

IPv6 address of a neighbor.

Link Layer

Link layer address (MAC address) of a neighbor.

VID

VLAN to which the interface connected with a neighbor belongs.

Interface

Interface connected with a neighbor.

State

State of a neighbor:

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

·       REACHThe neighbor is reachable.

·       STALEWhether the neighbor is reachable is unknown. The device does not verify the reachability any longer unless data is sent to the neighbor.

·       DELAYWhether the neighbor is reachable is unknown. The device sends an NS message after a delay.

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

Type

Neighbor information type:

·       SStatically configured.

·       DDynamically obtained.

·       IInvalid.

Age

A hyphen (-) indicates a static entry.

For a dynamic entry, this field displays the elapsed time in seconds. If the neighbor is never reachable, this field displays a pound sign (#).

Vpn-instance

Name of a VPN or [No Vrf] with no VPN configured.

 

Related commands

·           ipv6 neighbor

·           reset ipv6 neighbors

display ipv6 neighbors count

Use display ipv6 neighbors count to display the number of neighbor entries.

Syntax

In standalone mode:

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

In IRF mode:

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

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

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

dynamic: Displays the total number of neighbor entries created dynamically.

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

slot slot-number: Displays the total number of neighbor entries for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays the total number of neighbor entries for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

interface interface-type interface-number: Displays the total number of neighbor entries of a specific interface. The interface-type interface-number specifies an interface by its type and number.

vlan vlan-id: Displays the total number of neighbor entries in the specified VLAN. The VLAN ID ranges from 1 to 4094.

Examples

# Display the total number of neighbor entries created dynamically.

<Sysname> display ipv6 neighbors dynamic count

 Total number of dynamic entries: 2

display ipv6 neighbors vpn-instance

Use display ipv6 neighbors vpn-instance to display neighbor information for a specific VPN.

Syntax

display ipv6 neighbors vpn-instance vpn-instance-name [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. The VPN must already exist.

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

Examples

# Display neighbor information for the VPN vpn1.

<Sysname> display ipv6 neighbors vpn-instance vpn1

                       Type: S-Static    D-Dynamic    I-Invalid

IPv6 Address                   Link Layer      VID  Interface      State T  Age

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

Table 6 Command output

Field

Description

IPv6 Address

IPv6 address of a neighbor.

Link-layer

Link layer address (MAC address) of a neighbor.

VID

VLAN to which the interface connected with a neighbor belongs.

Interface

Interface connected with a neighbor.

State

Neighbor state:

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

·       REACHThe neighbor is reachable.

·       STALEWhether the neighbor is reachable is unknown. The device does not verify the reachability any longer unless data is sent to the neighbor.

·       DELAYWhether the neighbor is reachable is unknown. The device sends an NS message after a delay.

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

T

Neighbor information type:

·       SStatically configured.

·       DDynamically obtained.

·       I—Invalid.

Age

A hyphen (-) indicates a static entry.

For a dynamic entry, this field displays the elapsed time in seconds. If the neighbor is never reachable, this field displays a pound sign (#).

 

display ipv6 pathmtu

Use the display ipv6 pathmtu command to display IPv6 Path MTU information.

Syntax

display ipv6 pathmtu [ vpn-instance vpn-instance-name ] { ipv6-address | { all | dynamic | static  } [ count ] }

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays IPv6 Path MTU information for the public network.

ipv6-address: Specifies the destination IPv6 address for which the Path MTU information is to be displayed.

all: Displays all Path MTU information on the public network.

dynamic: Displays all dynamic Path MTU information.

static: Displays all static Path MTU information.

count: Displays the total number of Path MTU entries.

Usage guidelines

Use display ipv6 pathmtu to display the IPv6 Path MTU information, including the dynamic Path MTUs and the static Path MTUs.

Examples

# Display all Path MTU information.

<Sysname> display ipv6 pathmtu all

IPv6 destination address                PathMTU   Age   Type

1:2::3:2                                   1800       -      Static

1:2::4:2                                   1400       10     Dynamic

1:2::5:2                                   1280       10     Dynamic

# Displays the total number of Path MTU entries.

<Sysname> display ipv6 pathmtu all count

Total number of entries: 3

Table 7  Command output

Field

Description

IPv6 Destination Address

Destination IPv6 address.

PathMTU

Path MTU value on the network path to an IPv6 address.

Age

Time for a Path MTU to live. For a static Path MTU, this field displays a hyphen (-).

Type

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

Total number of entries

Total number of Path MTU entries.

 

Related commands

·           ipv6 pathmtu

·           reset ipv6 pathmtu

display ipv6 rawip

Use display ipv6 rawip to display brief information about IPv6 RawIP connections.

Syntax

In standalone mode:

display ipv6 rawip [ slot slot-number ]

In IRF mode:

display ipv6 rawip [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Displays brief information about IPv6 RawIP connections for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays brief information about IPv6 RawIP connections for the specified card for the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

Brief information about IPv6 RawIP connections includes the local and peer IPv6 addresses, protocol number, and PCB.

Examples

# (In standalone mode.) Display brief information about IPv6 RawIP connections.

<Sysname> display ipv6 rawip

Local Addr            Foreign Addr        Protocol Slot   PCB

2001:2002:2003:2     3001:3002:3003:3   58         1      0x0000000000000009

004:2005:2006:20     004:3005:3006:30

07:2008                07:3008

2002::100             2002::138            58         2      0x0000000000000008

::                     ::                     58         5      0x0000000000000002

# (In IRF mode.) Display brief information about IPv6 RawIP connections.

<Sysname> display ipv6 rawip

Local Addr            Foreign Addr        Protocol Chassis Slot   PCB

2001:2002:2003:2     3001:3002:3003:3   58        1         1      0x0000000000000009

004:2005:2006:20     004:3005:3006:30

07:2008                07:3008

2002::100             2002::138            58        1         2      0x0000000000000008

::                     ::                     58        1         5      0x0000000000000002

Table 8 Command output

Field

Description

Local Addr

Local IPv6 address.

Foreign Addr

Peer IPv6 address.

Protocol

Protocol number.

Chassis

ID of the IRF member device.

Slot

Number of the slot that holds the card.

PCB

PCB index.

 

display ipv6 rawip verbose

Use display ipv6 rawip verbose to display detailed information about IPv6 RawIP connections.

Syntax

In standalone mode:

display ipv6 rawip verbose [ slot slot-number [ pcb pcb-index ] ]

In IRF mode:

display ipv6 rawip verbose [ chassis chassis-number slot slot-number [ pcb pcb-index ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

pcb pcb-index: Displays detailed information about IPv6 RawIP connections of the specified PCB. The pcb-index argument specifies the index of the PCB, in the range of 1 to 16.

slot slot-number: Displays detailed information about IPv6 RawIP connections for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays detailed information about IPv6 RawIP connections for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

Detailed information about an IPv6 RawIP connection includes socket's creator, state, option, type, and protocol number, and source and destination IPv6 addresses of the connection.

Examples

# (In standalone mode.) Display detailed information about an IPv6 RawIP connection.

<Sysname> display ipv6 rawip verbose

Total RawIP Socket Number: 1

slot: 1

 creator: ping ipv6[320]

 state: N/A

 options: N/A

 error: 0

 rcvbuf(cc/hiwat/lowat/state): 0 / 9216 / 1 / N/A

 sndbuf(cc/hiwat/lowat/state): 0 / 9216 / 512 / N/A

 type: 3

 protocol: 58

 connection info: src = ::, dst = ::

 inpcb flags: N/A

 inpcb vflag: INP_IPV6

 hop limit: 255 (minimum hop limit: 0)

 send VRF: 0xffff

 receive VRF: 0xffff

# (In IRF mode.) Display detailed information about IPv6 RwaIP connections.

<Sysname> display ipv6 rawip verbose

Total RawIP Socket Number: 1

 chassis: 1 slot: 1

 creator: ping ipv6[320]

 state: N/A

 options: N/A

 error: 0

 rcvbuf(cc/hiwat/lowat/state): 0 / 9216 / 1 / N/A

 sndbuf(cc/hiwat/lowat/state): 0 / 9216 / 512 / N/A

 type: 3

 protocol: 58

 connection info: src = ::, dst = ::

 inpcb flags: N/A

 inpcb vflag: INP_IPV6

 hop limit: 255 (minimum hop limit: 0)

 send VRF: 0xffff

 receive VRF: 0xffff

Table 9 Command output

Field

Description

Total RawIP Socket Number

Total number of IPv6 RawIP sockets.

chassis

ID of the IRF member device.

slot

Number of the slot that holds the card.

creator

Task name of the socket. The process number is displayed in the square brackets.

state

Socket state.

options

Socket options.

rcvbuf(cc/hiwat/lowat/state)

Receiving buffer information: the used space, maximum space, minimum space, and the state in the parentheses.

The state can be:

·       SBS_CANTSENDMOREUnable to send data to the peer.

·       SBS_CANTRCVMOREUnable to receive data from the peer.

·       SBS_RCVATMARKReceiving tag.

·       N/ANone of the above.

sndbuf(cc/hiwat/lowat/state)

Sending buffer information: the used space, maximum space, minimum space, and the state in the parentheses.

The state can be:

·       SBS_CANTSENDMOREUnable to send data to the peer.

·       SBS_CANTRCVMOREUnable to receive data from the peer.

·       SBS_RCVATMARKReceiving tag.

·       N/ANone of the above types.

type

Socket type:

·       SOCK_STREAM1.

·       SOCK_DGRAM2.

·       SOCK_RAW3.

·       SOCK_RDM4.

·       SOCK_SEQPACKET5.

·       N/ANone of the above types.

protocol

Number of protocol using the socket. 58 represents ICMP.

connection info

Connection information, including the source and destination IPv6 addresses.

inpcb flags

Flags in the Internet PCB:

·       INP_RECVOPTSReceives IPv6 options.

·       INP_RECVRETOPTSReceives replied IPv6 options.

·       INP_RECMDCSTADDRReceives destination IPv6 address.

·       INP_HDRINCLProvides the entire IPv6 header.

·       N/ANone of the above flags.

inpcb vflag

IP version flag in the Internet PCB.

hop limit(minimum hop limit)

Hop limit in the Internet PCB. The minimum number of hops is displayed in the parentheses.

send VRF

Sent instances.

receive VRF

Received instances.

 

display ipv6 statistics

Use display ipv6 statistics to display IPv6 and ICMPv6 packet statistics.

Syntax

In standalone mode:

display ipv6 statistics [ slot slot-number ]

In IRF mode:

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

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Displays IPv6 and ICMPv6 packet statistics for the specified card. The slot-number specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays IPv6 and ICMPv6 packet statistics for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

This command displays statistics about received and sent IPv6 and ICMPv6 packets.

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

If you do not specify the slot slot-number option, this command displays IPv6 and ICMPv6 packet statistics of all cards. (In standalone mode.)

If you do not specify the chassis chassis-number slot slot-number option, this command displays IPv6 and ICMPv6 packet statistics of all cards on all IRF member devices. (In IRF mode.)

Examples

# Display IPv6 and ICMPv6 packet statistics.

<Sysname> display ipv6 statistics

  IPv6 statistics:

 

    Sent packets:

      Total:      0

        Sent locally:         0            Forwarded:              0

        Raw packets:          0            Discarded:              0

        Fragments:            0            Fragments failed:      0

        Routing failed:       0

 

    Received packets:

      Total:      0

        Received locally:     0            Hop limit exceeded:  0

        Fragments:             0            Reassembled:           0

        Reassembly failures:  0            Reassembly timeout:  0

        Format errors:         0            Option errors:        0

        Protocol errors:      0

 

  ICMPv6 statistics:

 

    Sent packets:

      Total:      0

        Unreachable:           0             Too big:                0

        Hop limit exceeded:   0             Reassembly timeouts: 0

        Parameter problems:   0

        Echo requests:         0             Echo replies:          0

        Neighbor solicits:    0             Neighbor adverts:     0

        Router solicits:      0             Router adverts:        0

        Redirects:             0

      Send failed:

        Rate limitation:      0             Other errors:          0

 

    Received packets:

      Total:      0

        Checksum errors:      0             Too short:              0

        Bad codes:             0

        Unreachable:           0             Too big:                 0

        Hop limit exceeded:   0             Reassembly timeouts:   0

        Parameter problems:   0             Unknown error types:   0

        Echo requests:         0             Echo replies:           0

        Neighbor solicits:    0             Neighbor adverts:      0

        Router solicits:       0             Router adverts:        0

        Redirects:              0             Router renumbering:   0

        Unknown info types:   0

      Deliver failed:

        Bad length:           0

Related commands

reset ipv6 statistics

display ipv6 tcp

Use display ipv6 tcp to display brief information about IPv6 TCP connections.

Syntax

In standalone mode:

display ipv6 tcp [ slot slot-number ]

In IRF mode:

display ipv6 tcp [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Displays brief information about IPv6 TCP connections for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays brief information about IPv6 TCP connections for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

Brief information about IPv6 TCP connections includes the local IPv6 address and port number, peer IPv6 address and port number, and TCP connection state.

Examples

# (In standalone mode.) Display brief information about IPv6 TCP connections.

<Sysname> display ipv6 tcp

*: TCP MD5 Connection

LAddr->port         FAddr->port       State           Slot  PCB

*2001:2002:2003:2  3001:3002:3003:3 ESTABLISHED   1      0x000000000000c387

004:2005:2006:20   004:3005:3006:30

07:2008->1200       07:3008->1200

2001::1->23         2001::5->1284     ESTABLISHED   2      0x0000000000000008

2003::1->25         2001::2->1283     LISTEN         3      0x0000000000000009

# (In IRF mode.) Display brief information about IPv6 TCP connections.

<Sysname> display ipv6 tcp

*: TCP MD5 Connection

LAddr->port         FAddr->port       State         Chassis Slot  PCB

*2001:2002:2003:2  3001:3002:3003:3 ESTABLISHED 1         1     0x000000000000c387

004:2005:2006:20   004:3005:3006:30

07:2008->1200       07:3008->1200

2001::1->23         2001::5->1284     ESTABLISHED 1         2     0x0000000000000008

2003::1->25         2001::2->1283     LISTEN       1         3     0x0000000000000009

Table 10 Command output

Field

Description

*

Indicates the TCP connection uses MD5 authentication.

LAddr->port

Local IPv6 address and port number.

FAddr->port

Peer IPv6 address and port number.

State

TCP connection state:

·       CLOSED—The server receives a disconnection request's reply from the client.

·       LISTEN—The server is waiting for connection requests.

·       SYN_SENT—The client is waiting for the server to reply to the connection request.

·       SYN_RCMDC—The server receives a connection request.

·       ESTABLISHED—The server and client have established connections and can transmit data bidirectionally.

·       CLOSE_WAITThe server receives a disconnection request from the client.

·       FIN_WAIT_1The client is waiting for the server to reply to a disconnection request.

·       CLOSING—The server and client are waiting for peer's disconnection reply when receiving disconnection requests from each other.

·       LAST_ACKThe server is waiting for the client to reply to a disconnection request.

·       FIN_WAIT_2The client receives a disconnection reply from the server.

·       TIME_WAIT—The client receives a disconnection request from the server.

Chassis

ID of the IRF member device.

Slot

Number of the slot that holds the card.

PCB

PCB index.

 

display ipv6 tcp verbose

Use display ipv6 tcp verbose to display detailed information about IPv6 TCP connections.

Syntax

In standalone mode:

display ipv6 tcp verbose [ slot slot-number [ pcb pcb-index ] ]

In IRF mode:

display ipv6 tcp verbose [ chassis chassis-number slot slot-number [ pcb pcb-index ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

pcb pcb-index: Displays detailed information about IPv6 TCP connections of the specified PCB. The pcb-index argument specifies the index of the PCB, in the range of 1 to 16.

slot slot-number: Displays detailed information about IPv6 TCP connections for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays detailed information about IPv6 TCP connections for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

Detailed information about an IPv6 TCP connection includes socket's creator, state, option, type, protocol number, source IPv6 address and port number, destination IPv6 address and port number, and the connection state.

Examples

# (In standalone mode.) Display detailed information about an IPv6 TCP connection.

<Sysname> display ipv6 tcp verbose

TCP inpcb number: 1(tcpcb number: 1)

 

slot: 1

 creator: telnetd_mips[199]

 state: ISCONNECTED

 options: N/A

 error: 0

 rcvbuf(cc/hiwat/lowat/state): 0 / 65536 / 1 / N/A

 sndbuf(cc/hiwat/lowat/state): 0 / 65536 / 512 / N/A

 type: 1

 protocol: 6

 connection info: src = 2001::1->23 ,  dst = 2001::2->4181

 inpcb flags: N/A

 inpcb vflag: INP_IPV6

 hop limit: 255 (minimum hop limit: 0)

 connection state: ESTABLISHED

 send VRF: 0x0

 receive VRF: 0x0

# (In IRF mode.) Display detailed information about IPv6 TCP connections.

<Sysname> display ipv6 tcp verbose

TCP inpcb number: 1(tcpcb number: 1)

 

slot: 1

 creator: telnetd_mips[199]

 state: ISCONNECTED

 options: N/A

 error: 0

 rcvbuf(cc/hiwat/lowat/state): 0 / 65536 / 1 / N/A

 sndbuf(cc/hiwat/lowat/state): 0 / 65536 / 512 / N/A

 type: 1

 protocol: 6

 connection info: src = 2001::1->23 ,  dst = 2001::2->4181

 inpcb flags: N/A

 inpcb vflag: INP_IPV6

 hop limit: 255 (minimum hop limit: 0)

 connection state: ESTABLISHED

 send VRF: 0x0

 receive VRF: 0x0

Table 11 Command output

Field

Description

TCP inpcb number

Number of IPv6 TCP Internet PCBs.

tcpcb number

Number of IPv6 TCP PCBs (excluding PCBs of TCP in the TIME_WAIT state).

chassis

ID of the IRF member device.

slot

ID of the slot that holds the card.

creator

Task name of the socket. The process number is displayed in the square brackets.

state

Socket state.

options

Socket options.

rcvbuf(cc/hiwat/lowat/state)

Receiving buffer information: the used space, maximum space, minimum space, and state in the parentheses.

The state can be:

·       SBS_CANTSENDMOREUnable to send data to the peer.

·       SBS_CANTRCVMOREUnable to receive data from the peer.

·       SBS_RCVATMARKReceiving tag.

·       N/ANone of the above states.

sndbuf(cc/hiwat/lowat/state)

Sending buffer information: the used space, maximum space, minimum space, and state in the parentheses.

The state can be:

·       SBS_CANTSENDMOREUnable to send data to the peer.

·       SBS_CANTRCVMOREUnable to receive data from the peer.

·       SBS_RCVATMARKReceiving tag.

·       N/ANone of the above states.

type

Socket types:

·       SOCK_STREAM1.

·       SOCK_DGRAM2.

·       SOCK_RAW3.

·       SOCK_RDM4.

·       SOCK_SEQPACKET5.

·       N/ANone of the above types.

protocol

Number of the protocol using the socket. 6 represents TCP.

connection info

Connection information, including source IPv6 address and port number, and destination IPv6 address and port number.

inpcb flags

Flags in the Internet PCB:

·       INP_RECVOPTSReceives IPv6 options.

·       INP_RECVRETOPTSReceives replied IPv6 options.

·       INP_RECMDCSTADDRReceives destination IPv6 address.

·       INP_HDRINCLProvides the entire IPv6 header.

·       N/ANone of the above flags.

inpcb vflag

IP version flags in the Internet PCB.

hop limit(minimum hop limit)

Hop limit in the Internet PCB. The minimum number of hops is displayed in the parentheses.

connection state

TCP connection state:

·       CLOSED—The server receives a disconnection request's reply from the client.

·       LISTEN—The server is waiting for connection requests.

·       SYN_SENT—The client is waiting for the server to reply to the connection request.

·       SYN_RCMDC—The server receives a connection request.

·       ESTABLISHED—The server and client have established connections and can transmit data bidirectionally.

·       CLOSE_WAITThe server receives a disconnection request from the client.

·       FIN_WAIT_1The client is waiting for the server to reply to a disconnection request.

·       CLOSING—The server and client are waiting for peer's disconnection reply when receiving disconnection requests from each other.

·       LAST_ACKThe server is waiting for the client to reply to a disconnection request.

·       FIN_WAIT_2The client receives a disconnection reply from the server.

·       TIME_WAIT—The client receives a disconnection request from the server.

send VRF

Sent instances.

receive VRF

Received instances.

 

display ipv6 udp

Use display ipv6 udp to display brief information about IPv6 UDP connections.

Syntax

In standalone mode:

display ipv6 udp [ slot slot-number ]

In IRF mode:

display ipv6 udp [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Displays brief information about IPv6 UDP connections for the specified card. The slot-number argument specifies the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays brief information about IPv6 UDP connections for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

Brief information about an IPv6 UDP connection includes local IPv6 address and port number, and peer IPv6 address and port number.

Examples

# (In standalone mode.) Displays brief information about IPv6 UDP connections.

<Sysname> display ipv6 udp

LAddr->port         FAddr->port         Slot  PCB

2001:2002:2003:2   3001:3002:3003:3   1      0x000000000000c387

004:2005:2006:20   004:3005:3006:30

07:2008->1200       07:3008->1200

2001::1->23         2001::5->1284       2      0x0000000000000008

2003::1->25         2001::2->1283       3      0x0000000000000009

# (In IRF mode.) Display brief information about IPv6 UDP connections.

<Sysname> display ipv6 udp

LAddr->port         FAddr->port         Chassis Slot  PCB

2001:2002:2003:2   3001:3002:3003:3   1        1      0x000000000000c387

004:2005:2006:20   004:3005:3006:30

07:2008->1200       07:3008->1200

2001::1->23         2001::5->1284       1        2      0x0000000000000008

2003::1->25         2001::2->1283       1        3      0x0000000000000009

Table 12 Command output

Field

Description

LAddr->port

Local IPv6 address and port number.

FAddr->port

Peer IPv6 address and port number.

Chassis

ID of the IRF member device.

Slot

Number of the slot that holds the card.

PCB

PCB index.

 

display ipv6 udp verbose

Use display ipv6 udp verbose to display detailed information about IPv6 UDP connections.

Syntax

In standalone mode:

display ipv6 udp verbose [ slot slot-number [ pcb pcb-index ] ]

In IRF mode:

display ipv6 udp verbose [ chassis chassis-number slot slot-number [ pcb pcb-index ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

pcb pcb-index: Displays detailed information about IPv6 UDP connections of the specified PCB. The pcb-index argument specifies the index of the PCB, in the range of 1 to 16.

slot slot-number: Displays detailed information about IPv6 UDP connections for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Displays detailed information about IPv6 UDP connections for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

Detailed information about an IPv6 UDP connection includes socket's creator, state, option, type, protocol number, source IPv6 address and port number, destination IPv6 address and port number, and the connection state.

Examples

# (In standalone mode.) Display detailed information about an IPv6 UDP connection.

<Sysname> display ipv6 udp verbose

Total UDP Socket Number: 1

 

 slot: 1

 creator: sock_test_mips[250]

 state: N/A

 options: N/A

 error: 0

 rcvbuf(cc/hiwat/lowat/state): 0 / 41600 / 1 / N/A

 sndbuf(cc/hiwat/lowat/state): 0 / 9216 / 512 / N/A

 type: 2

 protocol: 17

 connection info: src = ::->69, dst = ::->0

 inpcb flags: N/A

 inpcb vflag: INP_IPV6

 hop limit: 255 (minimum hop limit: 0)

 send VRF: 0xffff

 receive VRF: 0xffff

# (In IRF mode.) Display detailed information about IPv6 UDP connections.

<Sysname> display ipv6 udp verbose

Total UDP Socket Number: 1

 

 chassis: 1 slot: 1

 creator: sock_test_mips[250]

 state: N/A

 options: N/A

 error: 0

 rcvbuf(cc/hiwat/lowat/state): 0 / 41600 / 1 / N/A

 sndbuf(cc/hiwat/lowat/state): 0 / 9216 / 512 / N/A

 type: 2

 protocol: 17

 connection info: src = ::->69, dst = ::->0

 inpcb flags: N/A

 inpcb vflag: INP_IPV6

 hop limit: 255 (minimum hop limit: 0)

 send VRF: 0xffff

 receive VRF: 0xffff

Table 13 Command output

Field

Description

Total UDP Socket Number

Total number of IPv6 UDP sockets.

chassis

ID of the IRF member device.

slot

Number of the slot that holds the card.

creator

Task name of the socket. The progress number is displayed in the square brackets.

state

Socket state.

options

Socket options.

rcvbuf(cc/hiwat/lowat/state)

Receiving buffer information: the used space, maximum space, minimum space, and state in the parentheses.

The state can be:

·       SBS_CANTSENDMOREUnable to send data to the peer.

·       SBS_CANTRCVMOREUnable to receive data from the peer.

·       SBS_RCVATMARKReceiving tag.

·       N/ANone of the above states.

sndbuf(cc/hiwat/lowat/state)

Sending buffer information, the used space, maximum space, minimum space, and state in the parentheses.

The state can be:

·       SBS_CANTSENDMOREUnable to send data to the peer.

·       SBS_CANTRCVMOREUnable to receive data from the peer.

·       SBS_RCVATMARKReceiving tag.

·       N/ANone of the above states.

type

Socket type:

·       SOCK_STREAM1.

·       SOCK_DGRAM2.

·       SOCK_RAW3.

·       SOCK_RDM4.

·       SOCK_SEQPACKET5.

·       N/ANone of the above types.

protocol

Number of the protocol using the socket. 17 represents UDP.

connection info

Connection information, including source IPv6 address and port number, and destination IPv6 address and port number.

inpcb flags

Flags in the Internet PCB:

·       INP_RECVOPTSReceives IPv6 options.

·       INP_RECVRETOPTSReceives replied IPv6 options.

·       INP_RECMDCSTADDRReceives destination IPv6 address.

·       INP_HDRINCLProvides the entire IPv6 header.

·       N/ANone of the above flags.

inpcb vflag

IP version flags in the Internet PCB.

hop limit(minimum hop limit)

Hop limit in the Internet PCB. The minimum number of hops is displayed in the parentheses.

send VRF

Sent instances.

receive VRF

Received instances.

 

ipv6 address

Use ipv6 address to configure an IPv6 global unicast address for an interface.

Use undo ipv6 address to remove the IPv6 global unicast address of the interface.

Syntax

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

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

Default

No IPv6 global unicast address is configured for an interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv6-address: Specifies an IPv6 address.

prefix-length: Specifies a prefix length in the range of 1 to 128.

Usage guidelines

Like public IPv4 addresses, IPv6 global unicast addresses are assigned to ISPs. This type of address allows for prefix aggregation to reduce the number of global routing entries.

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

If you specify an IPv6 address for an interface that belongs to a VPN, the number of VPNs that can be specified on the device decreases.

Examples

# Set the IPv6 global unicast address of VLAN-interface 100 to 2001::1 with prefix length 64.

Method 1:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Method 2:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 address anycast

Use ipv6 address anycast to configure an IPv6 anycast address for an interface.

Use undo ipv6 address anycast to remove the IPv6 anycast address of the interface.

Syntax

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

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

Default

No IPv6 anycast address is configured for an interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv6-address: IPv6 anycast address.

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

Examples

# Set the IPv6 anycast address of VLAN-interface 100 to 2001::1 with prefix length 64.

Method 1:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Method 2:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 address auto link-local

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

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

Syntax

ipv6 address auto link-local

undo ipv6 address auto link-local

Default

No link-local address is configured on an interface, and a link-local address is automatically generated after an IPv6 global unicast address is configured for the interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Link-local addresses are used for neighbor discovery and stateless autoconfiguration on the local link. Packets using link-local addresses as the source or destination addresses cannot be forwarded to other links.

After an IPv6 global unicast address is configured for an interface, an automatically generated link-local address is the same as the one generated by using the ipv6 address auto link-local command.

Only use the undo ipv6 address auto link-local command to remove the link-local addresses generated through the ipv6 address auto link-local command.

·           After the undo ipv6 address auto link-local command is used on an interface that has an IPv6 global unicast address configured, the interface still has a link-local address.

·           If the interface has no IPv6 global unicast address configured, it has no link-local address.

Manual assignment takes precedence over automatic generation.

·           If you first adopt automatic generation and then manual assignment, the manually assigned link-local address overwrites the automatically generated address.

·           If you first use manual assignment and then automatic generation, the automatically generated link-local address does not take effect and the link-local address of an interface is still the manually assigned address.

If you delete the manually assigned address, the automatically generated link-local address is validated.

For more information about manually assignment of an IPv6 link-local address, see the ipv6 address link-local command.

Examples

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

ipv6 address link-local

ipv6 address eui-64

Use ipv6 address eui-64 to configure an EUI-64 IPv6 address for an interface.

Use undo ipv6 address eui-64 to remove the EUI-64 IPv6 address of the interface.

Syntax

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

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

Default

No EUI-64 IPv6 address is configured for an interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv6-address/prefix-length: Specifies an IPv6 address and IPv6 prefix length. The ipv6-address and prefix-length arguments jointly specify the prefix of an EUI-64 IPv6 address. The prefix-length argument ranges from 1 to 64.

Usage guidelines

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

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

Examples

# Configure an EUI-64 IPv6 address for VLAN-interface 100. The prefix of the address is the same as that of 2001::1/64, and the interface ID is generated based on the MAC address of the device.

Method 1:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Method 2:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

display ipv6 interface

ipv6 address link-local

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

Use undo ipv6 address link-local to remove the link-local address of the interface.

Syntax

ipv6 address ipv6-address link-local

undo ipv6 address ipv6-address link-local

Default

No link-local address is configured for the interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Usage guidelines

Manual assignment takes precedence over automatic generation.

If you adopt automatic generation, and then use manual assignment, the manually assigned link-local address overwrites the one that is automatically generated.

If you adopt manual assignment, and then use automatic generation, the automatically generated link-local address does not take effect and the manually assigned link-local address of an interface remains. After you delete the manually assigned address, the automatically generated link-local address takes effect. For automatic generation of an IPv6 link-local address, see the ipv6 address auto link-local command.

Examples

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

ipv6 address auto link-local

ipv6 hop-limit

Use ipv6 hop-limit to set the Hop Limit field in the IPv6 header.

Use undo ipv6 hop-limit to restore the default.

Syntax

ipv6 hop-limit value

undo ipv6 hop-limit

Default

The hop limit is 64.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

Value: Specifies the number of hops, in the range of 1 to 255.

Usage guidelines

The hop limit determines the number of hops necessary for an IPv6 packet to get to its destination.

If the device advertises the hop limit in RA messages (set with the undo ipv6 nd hop-limit unspecified command), all RA message receivers uses the value set with the ipv6 hop-limit command to fill in the Hop Limit field.

Examples

# Set the maximum number of hops to 100.

<Sysname> system-view

[Sysname] ipv6 hop-limit 100

Related commands

ipv6 nd hop-limit unspecified

ipv6 hoplimit-expires enable

Use ipv6 hoplimit-expires enable to enable sending ICMPv6 Time Exceeded messages.

Use undo ipv6 hoplimit-expires to disable sending ICMPv6 Time Exceeded messages.

Syntax

ipv6 hoplimit-expires enable

undo ipv6 hoplimit-expires enable

Default

Sending ICMPv6 Time Exceeded messages is enabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

ICMPv6 Time Exceeded messages are sent to the source of IPv6 packets after the device discards IPv6 packets because hop or reassembly times out.

To prevent too many ICMPv6 error packets from affecting device performance, disable this function. Even with the function disabled, the device still sends Fragment Reassembly Time Exceeded packets.

Examples

# Disable sending ICMPv6 Time Exceeded packets.

<Sysname> system-view

[Sysname] undo ipv6 hoplimit-expires enable

ipv6 icmpv6 multicast-echo-reply enable

Use ipv6 icmpv6 multicast-echo-reply enable to enable replying to multicast echo requests.

Use undo ipv6 icmpv6 multicast-echo-reply to disable replying to multicast echo requests.

Syntax

ipv6 icmpv6 multicast-echo-reply enable

undo ipv6 icmpv6 multicast-echo-reply enable

Default

The device is disabled from replying to multicast echo requests.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

If a host is configured to reply to multicast echo requests, an attacker can use this mechanism to attack the host. For example, if Host A (an attacker) sends an echo request to a multicast address with Host B as the source, all hosts in the multicast group send echo replies to Host B.

To prevent attacks, do not enable the device to reply to multicast echo requests unless necessary.

Examples

# Enable replying to multicast echo requests.

<Sysname> system-view

[Sysname] ipv6 icmpv6 multicast-echo-reply enable

ipv6 mtu

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

Use undo ipv6 mtu to restore the default MTU.

Syntax

ipv6 mtu mtu-size

undo ipv6 mtu

Default

No MTU is configured for an interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

mtu-size: Specifies the size of the MTUs of an interface, the value ranging from 1280 to 10240 bytes.

Usage guidelines

IPv6 routers do not support packet fragmentation. After an IPv6 router receives an IPv6 packet, if the packet size is greater than the MTU of the forwarding interface, the router discards the packet. Meanwhile, the router sends the MTU to the source host through an ICMPv6 packet — Packet Too Big message. The source host fragments the packet according to the MTU and resends it. To reduce the extra flow overhead resulting from packet drops, configure a appropriate interface MTU for your network.

Examples

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 mtu 1280

ipv6 nd autoconfig managed-address-flag

Use ipv6 nd autoconfig managed-address-flag to set the managed address configuration (M) flag to 1 so that the host can obtain an IPv6 address through stateful autoconfiguration (for example, from a DHCPv6 server).

Use undo ipv6 nd autoconfig managed-address-flag to restore the default.

Syntax

ipv6 nd autoconfig managed-address-flag

undo ipv6 nd autoconfig managed-address-flag

Default

The M flag is set to 0 so that the host can obtain an IPv6 address through stateless autoconfiguration.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The M flag determines whether a host uses stateful autoconfiguration to obtain an IPv6 address.

If the M flag is set to 1, the host uses stateful autoconfiguration (for example, from an DHCPv6 server to obtain an IPv6 address. Otherwise, the host uses stateless autoconfiguration to generate an IPv6 address according to its link-layer address and the prefix information in the RA message.

Examples

# Configure the host to obtain an IPv6 address through stateful autoconfiguration.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 nd autoconfig other-flag

Use ipv6 nd autoconfig other-flag to set the other stateful configuration flag (O) to 1 so that the host can obtain information other than IPv6 address through stateful autoconfiguration (for example, from a DHCPv6 server).

Use undo ipv6 nd autoconfig other-flag to restore the default.

Syntax

ipv6 nd autoconfig other-flag

undo ipv6 nd autoconfig other-flag

Default

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

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The O flag determines whether a host uses stateful autoconfiguration to obtain configuration information other than IPv6 address.

If the O flag is set to 1, the host uses stateful autoconfiguration (for example, from a DHCPv6 server) to obtain configuration information other than IPv6 address. Otherwise, the host uses stateless autoconfiguration.

Examples

# Configure the host to obtain configuration information other than IPv6 address through stateless autoconfiguration.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 nd dad attempts

Use ipv6 nd dad attempts to configure the number of attempts to send an NS message for DAD.

Use undo ipv6 nd dad attempts to restore the default.

Syntax

ipv6 nd dad attempts value

undo ipv6 nd dad attempts

Default

The number of attempts to send an NS message for DAD is 1.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

value: Number of attempts to send an NS message for DAD, in the range of 0 to 600. If it is set to 0, DAD is disabled.

Usage guidelines

An interface sends an NS message for DAD after obtaining an IPv6 address.

If the interface does not receive a response within a specific time (set by the ipv6 nd ns retrans-timer command), it continues to send an NS message.

If the interface still does not receive a response after the number of attempts reaches the threshold (set by the ipv6 nd dad attempts command), the obtained address is considered usable.

Examples

# Set the number of attempts to send an NS message for DAD to 20.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

·           display ipv6 interface

·           ipv6 nd ns retrans-timer

ipv6 nd ns retrans-timer

Use ipv6 nd ns retrans-timer to set the interval for retransmitting an NS message.

Use undo ipv6 nd ns retrans-timer to restore the default.

Syntax

ipv6 nd ns retrans-timer value

undo ipv6 nd ns retrans-timer

Default

The local interface sends NS messages at an interval of 1000 milliseconds, and the Retrans Timer field in the RA messages sent is 0, so that the interval for retransmitting an NS message is determined by the receiving device.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Usage guidelines

If a device does not receive a response from the peer within the specified interval, the device re-sends an NS message.

The value specified by this command serves as the interval for the local interface to retransmit an NS message. It also serves as the value in the Retrans Timer field in RA messages sent by the local interface.

Examples

# Specify VLAN-interface 100 to retransmit NS messages at an interval of 10000 milliseconds.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

display ipv6 interface

ipv6 nd nud reachable-time

Use ipv6 nd nud reachable-time to set the neighbor reachable time on an interface.

Use undo ipv6 nd nud reachable-time to restore the default.

Syntax

ipv6 nd nud reachable-time value

undo ipv6 nd nud reachable-time

Default

The neighbor reachable time on the local interface is 30000 milliseconds and the value of the Reachable Time field in RA messages is 0, so that the reachable time is determined by the receiving device.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Usage guidelines

If the neighbor reachability detection shows that a neighbor is reachable, the device considers the neighbor reachable within the specified reachable time. If the device must send a packet to the neighbor after the specified reachable time expires, the device reconfirms whether the neighbor is reachable.

The value specified by this command serves as the neighbor reachable time on the local interface. It also serves as the value in the Reachable Time field in RA messages sent by the local interface.

Examples

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

display ipv6 interface

ipv6 nd ra halt

Use ipv6 nd ra halt to suppress an interface from advertising RA message.

Use undo ipv6 nd ra halt to disable this function.

Syntax

ipv6 nd ra halt

undo ipv6 nd ra halt

Default

An interface is suppressed from sending RA messages.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Suppress VLAN-interface 100 from advertising RA messages.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 nd ra halt

ipv6 nd ra hop-limit unspecified

Use ipv6 nd ra hop-limit unspecified to specify unlimited hops in RA messages.

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

Syntax

ipv6 nd ra hop-limit unspecified

undo ipv6 nd ra hop-limit unspecified

Default

The maximum number of hops in the RA messages is limited to 64.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To set the maximum number of hops to a value rather than the default setting, use the ipv6 hop-limit command.

Examples

# Specify unlimited hops in the RA messages on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ipv6 nd ra hop-limit unspecified

Related commands

ipv6 hop-limit

ipv6 nd ra interval

Use ipv6 nd ra interval to set the maximum and minimum intervals for advertising RA messages.

Use undo ipv6 nd ra interval to restore the default.

Syntax

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

undo ipv6 nd ra interval

Default

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

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

max-interval-value: Specifies the maximum interval for advertising RA messages in seconds, in the range of 4 to 1800.

min-interval-value: Specifies the minimum interval for advertising RA messages in seconds, in the range of 3 to three-fourths of the maximum interval.

Usage guidelines

The device advertises RA messages at intervals of a random value between the maximum interval and the minimum interval.

The maximum interval for sending RA messages should be less than or equal to the router lifetime in RA messages.

Examples

# Set the maximum interval for advertising RA messages to 1000 seconds and the minimum interval to 700 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

ipv6 nd ra router-lifetime

ipv6 nd ra no-advlinkmtu

Use ipv6 nd ra no-advlinkmtu to turn off the MTU option in RA messages.

Use undo ipv6 nd ra no-advlinkmtu to restore the default.

Syntax

ipv6 nd ra no-advlinkmtu

undo ipv6 nd ra no-advlinkmtu

Default

RA messages contain the MTU option.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The MTU option in the RA messages specifies the link MTU to make sure all nodes on the link use the same MTU.

Examples

# Turn off the MTU option in RA messages on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 nd ra no-advlinkmtu

ipv6 nd ra prefix

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

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

Syntax

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

undo ipv6 nd ra prefix { ipv6-prefix | ipv6-prefix/prefix-length }

Default

No prefix information is configured for RA messages. Instead, the IPv6 address of the interface sending RA messages is used as the prefix information.

If the IPv6 address is manually configured, the prefix uses the fixed valid lifetime 2592000 seconds (30 days) and preferred lifetime 604800 seconds (seven days).

If the IPv6 address is automatically obtained (through DHCP, for example), the prefix uses the valid and preferred lifetime of the IPv6 address.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv6-prefix: Specifies the IPv6 prefix.

prefix-length: Specifies the prefix length of the IPv6 address.

valid-lifetime: Specifies the valid lifetime of a prefix, in the range of 0 to 4294967295 seconds.

preferred-lifetime: Specifies the preferred lifetime of a prefix used for stateless autoconfiguration, in the range of 0 to 4294967295 seconds. The preferred lifetime cannot be greater than the valid lifetime.

no-autoconfig: Specifies a prefix not to be used for stateless autoconfiguration. If this keyword is not specified, the prefix is used for stateless autoconfiguration.

off-link: Indicates that the address with the prefix is not directly reachable on the link. If this keyword is not specified, the address with the prefix is directly reachable on the link.

Usage guidelines

After hosts on the same link receive RA messages, they can use the prefix information in the RA messages for stateless autoconfiguration.

Examples

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

Method 1:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Method 2:

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 nd ra router-lifetime

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

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

Syntax

ipv6 nd ra router-lifetime value

undo ipv6 nd ra router-lifetime

Default

The router lifetime in RA messages is 1800 seconds.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

value: Specifies the router lifetime in the range of 0 to 9000 seconds. If the value is set to 0, the router does not serve as the default router.

Usage guidelines

The router lifetime in RA messages specifies how long the router sending the RA messages serves as the default router. Hosts receiving the RA messages check this value to determine whether using the sending router as the default router. If router lifetime is 0, the router cannot be used as the default router.

The router lifetime in RA messages must be greater than or equal to the advertising interval.

Examples

# Set the router lifetime in RA messages on VLAN-interface 100 to 1000 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

Related commands

ipv6 nd ra interval

ipv6 nd router-preference

Use ipv6 nd router-preference to set a router preference in RA messages.

Use undo ipv6 nd router-preference to restore the default.

Syntax

ipv6 nd router-preference { high | low | medium }

undo ipv6 nd router-preference

Default

The router preference is medium.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

high: Sets the router preference to the highest.

low: Sets the router preference to the lowest.

medium: Sets the router preference to the medium.

Usage guidelines

A hosts selects a router with the highest preference as the default router.

When router preferences are the same in RA messages, a host selects the router corresponding to the first received RA message as the default gateway.

Examples

# Set the router preference in RA messages to the highest on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 nd router-preference high

ipv6 neighbor

Use ipv6 neighbor to configure a static neighbor entry.

Use undo ipv6 neighbor to remove a static neighbor entry.

Syntax

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

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

Default

No static neighbor entry is configured.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv6-address: Specifies the IPv6 address of the static neighbor entry.

mac-address: Specifies the MAC address (48 bits) of the static neighbor entry, in the format of H-H-H.

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

port-type port-number: Specifies a Layer 2 port of the static neighbor entry by its type and number.

interface interface-type interface-number: Specifies a Layer 3 interface of the static neighbor entry by its type and number.

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

Usage guidelines

The IPv6 address of a neighboring node can be resolved into a link-layer address either dynamically through NS and NA messages, or through a manually configured static neighbor entry.

The device uniquely identifies a static neighbor entry by the neighbor's IPv6 address and the local Layer 3 interface number. You can configure a static neighbor entry by using either of the following methods:

·           Method 1—Associate a neighbor IPv6 address and link-layer address with the Layer 3 interface of the local node.

·           Method 2—Associate a neighbor IPv6 address and link-layer address with a port in a VLAN containing the local node.

You can use either of the previous configuration methods to configure a static neighbor entry for a VLAN interface.

·           If Method 1 is used, the neighbor entry is in INCMP state. After the device obtains the corresponding Layer 2 port information, the neighbor entry goes into REACH state.

·           If Method 2 is used, the corresponding VLAN interface must already exist and the port specified by port-type port-number must belong to the VLAN specified by vlan-id. After the static neighbor entry is configured, the device associates the VLAN interface with the IPv6 address to uniquely identify the static neighbor entry and the entry will be in REACH state.

To remove a static neighbor entry for a VLAN interface, only specify the corresponding VLAN interface.

Examples

# Configure a static neighbor entry for Layer 3 interface GigabitEthernet 3/0/1.

<Sysname> system-view

[Sysname] ipv6 neighbor 2000::1 fe-e0-89 interface GigabitEthernet 3/0/1

Related commands

·           display ipv6 neighbors

·           reset ipv6 neighbors

ipv6 neighbor link-local minimize

Use ipv6 neighbor link-local minimize to minimize link-local ND entries.

Use undo ipv6 neighbor link-local minimize to restore the default.

Syntax

ipv6 neighbor link-local minimize

undo ipv6 neighbor link-local minimize

Default

All ND entries are assigned to the driver.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Perform this command to minimize link-local ND entries assigned to the driver. Link-local ND entries refer to ND entries comprising link-local addresses.

By default, the device assigns all ND entries to the driver. With this feature enabled, the device does not add newly learned link-local ND entries whose link local addresses are not the next hop of any route to the driver, saving driver resources.

This feature affects only newly learned link-local ND entries rather than existing ND entries.

Examples

# Minimize link-local ND entries.

<Sysname> system-view

[Sysname] ipv6 neighbor link-local minimize

ipv6 neighbor stale-aging

Use ipv6 neighbor stale-aging to set the age timer for ND entries in stale state.

Use undo ipv6 neighbor stale-aging to restore the default.

Syntax

ipv6 neighbor stale-aging aging-time

undo ipv6 neighbor stale-aging

Default

The age timer for ND entries in the stale state is four hours.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Usage guidelines

ND entries in stale state have an age timer. If an ND entry in stale state is not refreshed before the timer expires, it moves to the delay state. If it is still not refreshed in five seconds, the ND entry moves to the probe state, and the device sends an NS message for detection for a maximum of three times. If no response is received, the device deletes the ND entry.

Examples

# Set the age timer for ND entries in the stale state to two hours.

<Sysname> system-view

[Sysname] ipv6 neighbor stale-aging 2

ipv6 neighbors max-learning-num

Use ipv6 neighbors max-learning-num to configure the maximum number of neighbors that an interface can dynamically learn.

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

Syntax

ipv6 neighbors max-learning-num number

undo ipv6 neighbors max-learning-num

Default

The maximum number of neighbors that an Ethernet interface can learn dynamically is the maximum capacity of the system.

Views

Layer 2 interface view, Layer 3 interface view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies the maximum number of neighbors that the interface can dynamically learn.

Usage guidelines

The device can dynamically acquire the link-layer address of a neighboring node through NS and NA messages and add it into the neighbor table. A large table can reduce the forwarding performance of the device.

You can restrict the size of the neighbor table by setting the maximum number of neighbors that an interface can dynamically learn. When the number of dynamically learned neighbors reaches the threshold, the interface stops learning neighbor information.

Examples

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

<Sysname> system-view

[Sysname] interface vlan-interface 100

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

ipv6 pathmtu

Use ipv6 pathmtu to configure a static Path MTU for a specific IPv6 address.

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

Syntax

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

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

Default

No static Path MTU is configured.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

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

ipv6-address: IPv6 address.

value: Specifies the Path MTU of a specific IPv6 address, in the range of 1280 to 10240 bytes.

Usage guidelines

You can configure a static Path MTU for a specific destination IPv6 address. When a source host sends a packet through an interface, it compares the interface MTU with the static Path MTU of the specified destination IPv6 address. If the packet size is larger than the smaller one of the two values, the host fragments the packet according to the smaller value.

Examples

# Configure a static Path MTU for a specific IPv6 address.

<Sysname> system-view

[Sysname] ipv6 pathmtu fe80::12 1300

Related commands

·           display ipv6 pathmtu

·           reset ipv6 pathmtu

ipv6 pathmtu age

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

Use undo ipv6 pathmtu age to restore the default.

Syntax

ipv6 pathmtu age age-time

undo ipv6 pathmtu age

Default

The aging time for dynamic Path MTU is 10 minutes.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

age-time: Specifies the aging time for Path MTU in minutes, in the range of 10 to 100.

Usage guidelines

After the path MTU from a source host to a destination host is dynamically determined, the source host sends subsequent packets to the destination host based on this MTU. After the aging time expires, the dynamic Path MTU is removed and the source host re-determines a dynamic path MTU through the Path MTU mechanism.

The aging time is invalid for a static Path MTU.

Examples

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

<Sysname> system-view

[Sysname] ipv6 pathmtu age 40

Related commands

display ipv6 pathmtu

ipv6 redirects enable

Use ipv6 redirects enable to enable sending ICMPv6 redirect messages.

Use undo ipv6 redirects enable to disable sending ICMPv6 redirect messages.

Syntax

ipv6 redirects enable

undo ipv6 redirects enable

Default

Sending ICMPv6 redirect messages is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The default gateway sends an ICMPv6 redirect message to the source of an IPv6 packet to inform of a better first hop.

Sending ICMPv6 redirect messages enables hosts that hold few routes to establish routing tables and find the best route. Because this function adds host route into the routing tables, host performance degrades when there are too many host routes. As a result, sending ICMPv6 redirect messages is disabled by default.

Examples

# Enable sending ICMPv6 redirect messages.

<Sysname> system-view

[Sysname] ipv6 redirects enable

ipv6 unreachables enable

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

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

Syntax

ipv6 unreachables enable

undo ipv6 unreachables enable

Default

Sending ICMPv6 destination unreachable packets is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

If the device fails to forward a received IPv6 packet because of a destination unreachable error, it drops the packet and sends a corresponding ICMPv6 Destination Unreachable error message to the source.

If the device is generating ICMPv6 destination unreachable messages abnormally, disable the sending ICMPv6 destination unreachable packets to prevent attack risks.

Examples

# Enable sending ICMPv6 destination unreachable packets.

<Sysname> system-view

[Sysname] ipv6 unreachables enable

reset ipv6 neighbors

Use reset ipv6 neighbors to clear IPv6 neighbor information.

Syntax

In standalone mode:

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

In IRF mode:

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

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

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

dynamic: Clears dynamic neighbor information on all interfaces.

interface interface-type interface-number: Clears dynamic neighbor information on the interface specified by its type and number.

slot slot-number: Clears the dynamic neighbor information for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Clears the dynamic neighbor information for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

static: Clears static neighbor information on all interfaces.

Usage guidelines

You can use the display ipv6 neighbors command to display IPv6 neighbor information.

Examples

# Clear neighbor information on all interfaces.

<Sysname> reset ipv6 neighbors all

This will delete all the entries. Continue? [Y/N]:Y

# Clear dynamic neighbor information on all interfaces.

<Sysname> reset ipv6 neighbors dynamic

This will delete all the dynamic entries. Continue? [Y/N]:Y

# Clear all neighbor information on GigabitEthernet 3/0/1.

<Sysname> reset ipv6 neighbors interface GigabitEthernet 3/0/1

This will delete all the dynamic entries by the interface you specified. Contin

ue? [Y/N]:Y

Related commands

·           display ipv6 neighbors

·           ipv6 neighbor

reset ipv6 pathmtu

Use reset ipv6 pathmtu to clear the Path MTU information.

Syntax

reset ipv6 pathmtu { all | dynamic | static }

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

all: Clears all Path MTUs.

dynamic: Clears all dynamic Path MTUs.

static: Clears all static Path MTUs.

Examples

# Clear all Path MTUs.

<Sysname> reset ipv6 pathmtu all

Related commands

display ipv6 pathmtu

reset ipv6 statistics

Use reset ipv6 statistics to clear IPv6 and ICMPv6 packet statistics.

Syntax

In standalone mode:

reset ipv6 statistics [ slot slot-number ]

In IRF mode:

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

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Clears IPv6 and ICMPv6 packet statistics for the specified card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.)

chassis chassis-number slot slot-number: Clears IPv6 and ICMPv6 packet statistics for the specified card on the specified IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)

Usage guidelines

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

If you do not specify the slot slot-number option, this command clears IPv6 and ICMPv6 packet statistics of all cards. (In standalone mode.)

If you do not specify the chassis chassis-number slot slot-number option, this command clears IPv6 and ICMPv6 packet statistics of all cards on all IRF member devices. (In IRF mode.)

Examples

# Clear IPv6 and ICMPv6 packet statistics.

<Sysname> reset ipv6 statistics

Related commands

display ipv6 statistics

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
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
新华三官网