02-IP Services Volume

HomeSupportSwitchesH3C S7500E Switch SeriesConfigure & DeployConfiguration GuidesH3C S7500E Series Ethernet Switches Operation Manual(Release 6300 series V1.03)02-IP Services Volume
08-IPv6 Basics Configuration
Title Size Download
08-IPv6 Basics Configuration 310.77 KB

When configuring IPv6 basics, go to these sections for information you are interested in:

l          IPv6 Overview

l          IPv6 Basics Configuration Task List

l          Configuring Basic IPv6 Functions

l          Configuring IPv6 NDP

l          Configuring PMTU Discovery

l          Configuring IPv6 TCP Properties

l          Configuring ICMPv6 Packet Sending

l          Configuring IPv6 DNS Client

l          Displaying and Maintaining IPv6 Basics Configuration 

l          IPv6 Configuration Example

l          Troubleshooting IPv6 Basics Configuration

 

l          EA boards (such as LSQ1GP12EA and LSQ1TGX1EA) do not support IPv6 features.

l          The term “router” or the router icon in this document refers to a router in a generic sense or a Layer 3 Ethernet switch running a routing protocol.

 

IPv6 Overview

Internet Protocol Version 6 (IPv6), also called IP next generation (IPng), was designed by the Internet Engineering Task Force (IETF) as the successor to Internet Protocol Version 4 (IPv4). The significant difference between IPv6 and IPv4 is that IPv6 increases the IP address size from 32 bits to 128 bits. This section covers the following:

l          IPv6 Features

l          Introduction to IPv6 Address

l          Introduction to IPv6 Neighbor Discovery Protocol

l          IPv6 PMTU Discovery

l          Introduction to IPv6 DNS

l          Protocols and Standards

IPv6 Features

Header format simplification

IPv6 cuts down some IPv4 header fields or move them to the IPv6 extension headers to reduce the length of the basic IPv6 header. IPv6 uses the basic header with a fixed length, thus making IPv6 packet handling simple and improving the forwarding efficiency. Although the IPv6 address size is four times the IPv4 address size, the basic IPv6 header size is 40 bytes and is only twice the IPv4 header size (excluding the Options field).

Figure 1-1 Comparison between IPv4 packet header format and basic IPv6 packet header format

 

Adequate address space

The source and destination IPv6 addresses are both 128 bits (16 bytes) long. IPv6 can provide 3.4 x 1038 addresses to fully meet the requirements of hierarchical address division as well as allocation of public and private addresses.

Hierarchical address structure

IPv6 adopts the hierarchical address structure to quicken route search and reduce the system sources occupied by the IPv6 routing table by route aggregation.

Automatic address configuration

To simplify host configuration, IPv6 supports stateful and stateless address configuration.

l          Stateful address configuration means that a host acquires an IPv6 address and related information from a server (for example, a DHCP server).

l          Stateless address configuration means that a host automatically generates an IPv6 address and related information on the basis of its own link-layer address and the prefix information advertised by a router.

In addition, a host can generate a link-local address on the basis of its own link-layer address and the default prefix (FE80::/10) to communicate with other hosts on the same link.

Built-in security

IPv6 uses IPSec as its standard extension header to provide end-to-end security. This feature provides a standard for network security solutions and enhances the interoperability between different IPv6 applications.

QoS support

The Flow Label field in the IPv6 header allows the device to label packets of a flow and provide special handling for these packets.

Enhanced neighbor discovery mechanism

The IPv6 neighbor discovery protocol is implemented through a group of Internet Control Message Protocol Version 6 (ICMPv6) messages that manage the information exchange between neighbor nodes on the same link. The group of ICMPv6 messages takes the place of Address Resolution Protocol (ARP) messages, Internet Control Message Protocol version 4 (ICMPv4) router discovery messages, and ICMPv4 redirection messages and provides a series of other functions.

Flexible extension headers

IPv6 cancels the Options field in the IPv4 header but introduces multiple extension headers to provide scalability while improving efficiency. The Options field contains 40 bytes at most, while the size of IPv6 extension headers is restricted to the maximum size of IPv6 packets.

Introduction to IPv6 Address

IPv6 address format

An IPv6 address is represented as a set of 16-bit hexadecimals, separated by colons. An IPv6 address is divided into eight groups, and the 16 bits of each group are represented by four hexadecimal numbers, for example, 2001:0000:130F:0000:0000:09C0:876A:130B.

To simplify the representation of IPv6 addresses, zeros in IPv6 addresses can be handled as follows:

l          Leading zeros in each group can be removed. For example, the above-mentioned address can be represented in a shorter format as 2001:0:130F:0:0:9C0:876A:130B.

l          If an IPv6 address contains two or more consecutive groups of zeros, they can be replaced by a double-colon ::. For example, the above-mentioned address can be represented in the shortest format as 2001:0:130F::9C0:876A:130B.

 

A double-colon can be used only once in an IPv6 address. Otherwise, the device is unable to determine how many zeros that double-colons represent when converting them to zeros to restore a 128-bit IPv6 address.

 

An IPv6 address consists of two parts: address prefix and interface ID. The address prefix and the interface ID are respectively equivalent to the network ID and the host ID in an IPv4 address.

An IPv6 address prefix is written in IPv6-address/prefix-length notation, where the IPv6-address is in any of the notations above mentioned, and prefix-length is a decimal number indicating how many bits from the left-most of an IPv6 address is the address prefix.

IPv6 address classification

IPv6 addresses fall into three types: unicast address, multicast address, and anycast address.

l          Unicast address: An identifier for a single interface, similar to an IPv4 unicast address. A packet sent to a unicast address is delivered to the interface identified by that address.

l          Multicast address: An identifier for a set of interfaces (typically belonging to different nodes), similar to an IPv4 multicast address. A packet sent to a multicast address is delivered to all interfaces identified by that address.

l          Anycast address: An identifier for a set of interfaces (typically belonging to different nodes). A packet sent to an anycast address is delivered to one of the interfaces identified by that address (the target interface is nearest to the source, according to a routing protocol’s measure of distance).

 

There are no broadcast addresses in IPv6. Their function is replaced by multicast addresses.

 

The type of an IPv6 address is designated by the first several bits called format prefix. Table 1-1 lists the mappings between address types and format prefixes.

Table 1-1 Mappings between address types and format prefixes

Type

Format prefix (binary)

IPv6 prefix ID

Unicast address

Unassigned address

00...0  (128 bits)

::/128

Loopback address

00...1  (128 bits)

::1/128

Link-local address

1111111010

FE80::/10

Site-local address

1111111011

FEC0::/10

Global unicast address

other forms

Multicast address

11111111

FF00::/8

Anycast address

Anycast addresses are taken from unicast address space and are not syntactically distinguishable from unicast addresses.

 

Unicast address

There are several types of unicast addresses, including aggregatable global unicast address, link-local address, and site-local address.

l          The aggregatable global unicast addresses, equivalent to public IPv4 addresses, are provided for network service providers. This type of address allows efficient prefix aggregation to restrict the number of global routing entries.

l          The link-local addresses are used for communication between link-local nodes in neighbor discovery and stateless autoconfiguration. Packets with link-local source or destination addresses are not forwarded to other links.

l          IPv6 unicast site-local addresses are similar to private IPv4 addresses. Packets with site-local source or destination addresses are not forwarded out of the local site (a private network).

l          Loopback address: The unicast address 0:0:0:0:0:0:0:1 (represented in the shortest format as ::1) is called the loopback address and may never be assigned to any physical interface. Like the loopback address in IPv4, it may be used by a node to send an IPv6 packet to itself.

l          Unassigned address: The unicast address "::” is called the unassigned address and may not be assigned to any node. Before acquiring a valid IPv6 address, a node may fill this address in the source address field of an IPv6 packet. It cannot be used as a destination IPv6 address.

Multicast address

IPv6 multicast addresses listed in Table 1-2 are reserved for special purpose.

Table 1-2 Reserved IPv6 multicast addresses

Address

Application

FF01::1

Node-local scope all nodes multicast address

FF02::1

Link-local scope all nodes multicast address

FF01::2

Node-local scope all routers multicast address

FF02::2

Link-local scope all routers multicast address

FF05::2

Site-local scope all routers multicast address

 

Besides, there is another type of multicast address: solicited-node address. A solicited-node multicast address is used to acquire the link-layer address of a neighbor node on the same link, and is also used for duplicate address detection (DAD). Each IPv6 unicast or anycast address has a corresponding solicited-node address. The format of a solicited-node multicast address is as follows:

FF02:0:0:0:0:1:FFXX:XXXX

Where, FF02:0:0:0:0:1:FF is permanent and consists of 104 bits, and XX:XXXX is the last 24 bits of an IPv6 unicast or anycast address.

Interface identifier in IEEE EUI-64 format

An interface identifier is used to identify a unique interface on a link and is 64 bits long. An interface identifier in IEEE EUI-64 format is derived from the link-layer address (MAC) of an interface. A MAC address is 48 bits long and therefore, to get the interface identifier, the hexadecimal number FFFE needs to be inserted in the middle of the MAC address (behind the 24 high-order bits). To ensure the interface identifier obtained from a MAC address is unique, it is necessary to set the universal/local (U/L) bit (the seventh high-order bit) to “1”. Thus, an interface identifier in IEEE EUI-64 format is obtained.

Figure 1-2 Convert a MAC address into an EUI-64 interface identifier

 

Introduction to IPv6 Neighbor Discovery Protocol

The IPv6 Neighbor Discovery Protocol (NDP) uses five types of ICMPv6 messages to implement the following functions:

l          Address resolution

l          Neighbor reachability detection

l          Duplicate address detection

l          Router/prefix discovery and address autoconfiguration

l          Redirection

Table 1-3 lists the types and functions of ICMPv6 messages used by the NDP.

Table 1-3 Types and functions of ICMPv6 messages

ICMPv6 message

Number

Function

Neighbor solicitation (NS) message

135

Used to acquire the link-layer address of a neighbor

Used to verify whether the neighbor is reachable

Used to perform a duplicate address detection

Neighbor advertisement (NA) message

136

Used to respond to an NS message

When the link layer changes, the local node initiates an NA message to notify neighbor nodes of the node information change.

Router solicitation (RS) message

133

After started, a node sends an RS message to request the router for an address prefix and other configuration information for the purpose of autoconfiguration.

Router advertisement (RA) message

134

Used to respond to an RS message

With the RA message suppression disabled, the router regularly sends an RA message containing information such as prefix information options and flag bits.

Redirect message

137

When a certain condition is satisfied, the default gateway sends a redirect message to the source host so that the host can reselect a correct next hop router to forward packets.

 

The NDP mainly provides the following functions:

Address resolution

Similar to the ARP function in IPv4, a node acquires the link-layer addresses of neighbor nodes on the same link through NS and NA messages. Figure 1-3 shows how node A acquires the link-layer address of node B.

Figure 1-3 Address resolution

 

The address resolution procedure is as follows:

1)        Node A multicasts an NS message. The source address of the NS message is the IPv6 address of the sending interface of node A and the destination address is the solicited-node multicast address of node B. The NS message contains the link-layer address of node A.

2)        After receiving the NS message, node B judges whether the destination address of the packet is its solicited-node multicast address. If yes, node B learns the link-layer address of node A, and then unicasts an NA message containing its link-layer address.

3)        Node A acquires the link-layer address of node B from the NA message.

Neighbor reachability detection

After node A acquires the link-layer address of its neighbor node B, node A can verify whether node B is reachable according to NS and NA messages.

1)        Node A sends an NS message whose destination address is the IPv6 address of node B.

2)        If node A receives an NA message from node B, node A considers that node B is reachable. Otherwise, node B is unreachable.

Duplicate address detection

After node A acquires an IPv6 address, it will perform duplicate address detection (DAD) to determine whether the address is being used by any other node (similar to the gratuitous ARP function of IPv4). DAD is accomplished through NS and NA messages. Figure 1-4 shows the DAD procedure.

Figure 1-4 Duplicate address detection

 

The DAD procedure is as follows:

1)        Node A sends an NS message whose source address is the unassigned address :: and destination address is the corresponding solicited-node multicast address of the IPv6 address to be detected. The NS message contains the IPv6 address.

2)        If node B uses this IPv6 address, node B returns an NA message. The NA message contains the IPv6 address of node B.

3)        Node A learns that the IPv6 address is being used by node B after receiving the NA message from node B. Otherwise, node B is not using the IPv6 address and node A can use it.

Router/prefix discovery and address autoconfiguration

Router/prefix discovery means that a node locates the neighboring routers, and learns the prefix of the network where the host is located, and other configuration parameters from the received RA message.

Stateless address autoconfiguration means that a node automatically generates an IPv6 address according to the information obtained through router/prefix discovery.

The router/prefix discovery is implemented through RS and RA messages. The router/prefix discovery procedure is as follows:

1)        After started, a node sends an RS message to request the router for the address prefix and other configuration information for the purpose of autoconfiguration.

2)        The router returns an RA message containing information such as prefix information option. (The router also regularly sends an RA message.)

3)        The node automatically generates an IPv6 address and other information for its interface according to the address prefix and other configuration parameters in the RA message.

 

l          In addition to an address prefix, the prefix information option also contains the preferred lifetime and valid lifetime of the address prefix. After receiving a periodic RA message, the node updates the preferred lifetime and valid lifetime of the address prefix accordingly.

l          An automatically generated address is applicable within the valid lifetime and is removed when the valid lifetime times out.

 

Redirection

When a host is started, its routing table may contain only the default route to the gateway. When certain conditions are satisfied, the gateway sends an ICMPv6 redirect message to the source host so that the host can select a better next hop to forward packets (similar to the ICMP redirection function in IPv4).

The gateway sends an IPv6 ICMP redirect message when the following conditions are satisfied:

l          The receiving interface is the forwarding interface.

l          The selected route itself is not created or modified by an IPv6 ICMP redirect message.

l          The selected route is not the default route.

l          The forwarded IPv6 packet does not contain any routing extension header.

IPv6 PMTU Discovery

The links that a packet passes from the source to the destination may have different MTUs. In IPv6, when the packet size exceeds the path MTU ( the minimum MTU of all links), the packet will be fragmented at the source end so as to reduce the processing pressure of forwarding devices and utilize network resources properly.

The path MTU (PMTU) discovery mechanism is to find the minimum MTU of all links in the path from the source to the destination. Figure 1-5 shows the working procedure of PMTU discovery.

Figure 1-5 Working procedure of PMTU discovery

 

The working procedure of the PMTU discovery is as follows:

1)        The source host uses its MTU to send packets to the destination host.

2)        If the MTU supported by a forwarding interface is smaller than the packet size, the forwarding device will discard the packet and return an ICMPv6 error packet containing the interface MTU to the source host.

3)        After receiving the ICMPv6 error packet, the source host uses the returned MTU to send packets to the destination.

4)        Step 2 to step 3 are repeated until the destination host receives the packet. In this way, the minimum MTU of all links in the path from the source host to the destination host is determined.

Introduction to IPv6 DNS

IPv6 Domain Name System (DNS) is responsible for translating domain names into IPv6 addresses, instead of IPv4 addresses.

Like IPv4 DNS, IPv6 DNS also involves static domain name resolution and dynamic domain name resolution. The function and implementation of these two types of domain name resolution are the same as those of IPv4 DNS. For details, refer to DNS Configuration in the IP Services Volume.

Usually, the DNS server connecting IPv4 and IPv6 networks not only contains A records (IPv4 addresses), but also AAAA records (IPv6 addresses). The DNS server can convert domain names into IPv4 addresses or IPv6 addresses. In this way, the DNS server implements the functions of both IPv6 DNS and IPv4 DNS.

Protocols and Standards

Protocols and standards related to IPv6 include:

l          RFC 1881: IPv6 Address Allocation Management

l          RFC 1887: An Architecture for IPv6 Unicast Address Allocation

l          RFC 1981: Path MTU Discovery for IP version 6

l          RFC 2375: IPv6 Multicast Address Assignments

l          RFC 2460: Internet Protocol, Version 6 (IPv6) Specification.

l          RFC 2461: Neighbor Discovery for IP Version 6 (IPv6)

l          RFC 2462: IPv6 Stateless Address Autoconfiguration

l          RFC 2463: Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification

l          RFC 2464: Transmission of IPv6 Packets over Ethernet Networks

l          RFC 2526: Reserved IPv6 Subnet Anycast Addresses

l          RFC 3307: Allocation Guidelines for IPv6 Multicast Addresses

l          RFC 3513: Internet Protocol Version 6 (IPv6) Addressing Architecture

l          RFC 3596: DNS Extensions to Support IP Version 6

IPv6 Basics Configuration Task List

Complete the following tasks to perform IPv6 basics configuration:

Task

Remarks

Configuring Basic IPv6 Functions

Required

Configuring IPv6 NDP

Optional

Configuring PMTU Discovery

Optional

Configuring IPv6 TCP Properties

Optional

Configuring ICMPv6 Packet Sending

Optional

Configuring IPv6 DNS Client

Optional

 

Configuring Basic IPv6 Functions

Enabling IPv6

Before performing IPv6-related configurations, you need to Enable IPv6. Otherwise, an interface cannot forward IPv6 packets even if it has an IPv6 address configured.

Follow these steps to Enable IPv6:

To do...

Use the command...

Remarks

Enter system view

system-view

Enable IPv6

ipv6

Required

Disabled by default.

 

Configuring an IPv6 Unicast Address

IPv6 site-local addresses and aggregatable global unicast addresses can be configured in the following ways:

l          EUI-64 format: When the EUI-64 format is adopted, the IPv6 address prefix of an interface is the configured prefix, and the interface identifier is derived from the link-layer address of the interface.

l          Manual configuration: IPv6 site-local addresses or aggregatable global unicast addresses are configured manually.

IPv6 link-local addresses can be configured in either of the following ways:

l          Automatic generation: The device automatically generates a link-local address for an interface according to the link-local address prefix (FE80::/10) and the link-layer address of the interface.

l          Manual assignment: IPv6 link-local addresses can be assigned manually.

Follow these steps to configure an IPv6 unicast address:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter interface view

interface interface-type interface-number

Configure an IPv6 aggregatable global unicast address or site-local address

Manually assign an IPv6 address

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

One of the two commands is required.

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

Adopt the EUI-64 format to form an IPv6 address

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

Configure an IPv6 link-local address

Automatically generate a link-local address for the interface

ipv6 address auto link-local

Optional

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

Manually assign a link-local address for the interface

ipv6 address ipv6-address link-local

 

l          After an IPv6 site-local address or aggregatable global unicast address is configured for an interface, a link-local address is generated automatically. The automatically generated link-local address is the same as the one generated by using the ipv6 address auto link-local command. If a link-local address is manually assigned to an interface, this manual link-local address takes effect. If the manually assigned link-local address is removed, the automatically generated link-local address takes effect.

l          Manual assignment takes precedence over automatic generation. That is, if you first adopt automatic generation and then manual assignment, the manually assigned link-local address will overwrite the automatically generated one. If you first adopt manual assignment and then automatic generation, the automatically generated link-local address will not take effect and the link-local address of an interface is still the manually assigned one. If you delete the manually assigned address, the automatically generated link-local address is validated.

l          The undo ipv6 address auto link-local command can only remove the link-local addresses generated through the ipv6 address auto link-local command. However, if an IPv6 site-local address or aggregatable global unicast address is already configured for an interface, the interface still has a link-local address because the system automatically generates one for the interface. If no IPv6 site-local address or aggregatable global unicast address is configured, the interface has no link-local address.

 

Configuring IPv6 NDP

Configuring a Static Neighbor Entry

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

The device uniquely identifies a static neighbor entry according to the neighbor IPv6 address and the local Layer 3 interface ID. Currently, there are two configuration methods:

l          Associate a neighbor IPv6 address and link-layer address with a Layer 3 interface.

l          Associate a neighbor IPv6 address and link-layer address with a port in a VLAN.

Follow these steps to configure a static neighbor entry:

To do...

Use the command...

Remarks

Enter system view

system-view

Configure a static neighbor entry

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

Required

 

You can adopt either of the two methods above to configure a static neighbor entry.

l          After a static neighbor entry is configured by using the first method, the device needs to resolve the corresponding Layer 2 port information of the VLAN interface.

l          If you adopt the second method, you should ensure that the corresponding VLAN interface exists and that the Layer 2 port specified by port-type port-number belongs to the VLAN specified by vlan-id. After a static neighbor entry is configured, the device relates the VLAN interface to the IPv6 address to uniquely identify a static neighbor entry.

 

Configuring the Maximum Number of Neighbors Dynamically Learned

The device can dynamically acquire the link-layer address of a neighbor node through NS and NA messages and add it into the neighbor table. Too large a neighbor table may 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 will stop learning neighbor information.

Follow these steps to configure the maximum number of neighbors dynamically learned:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter interface view

interface interface-type interface-number

Configure the maximum number of neighbors dynamically learned by an interface

ipv6 neighbors max-learning-num number

Optional

2048 by default.

 

Configuring Parameters Related to RA Messages

You can enable an interface to send RA messages, and configure the interval for sending RA messages and parameters in RA messages. After receiving an RA message, a host can use these parameters to perform corresponding operations. Table 1-4 lists the configurable parameters in an RA message and their descriptions.

Table 1-4 Parameters in an RA message and their descriptions

Parameters

Description

Cur hop limit

When sending an IPv6 packet, a host uses the value to fill the Cur Hop Limit field in IPv6 headers. The value is also filled into the Cur Hop Limit field in response messages of a device.

Prefix information options

After receiving the prefix information advertised by the device, the hosts on the same link can perform stateless autoconfiguration.

M flag

This field determines whether hosts use the stateful autoconfiguration to acquire IPv6 addresses.

If the M flag is set to 1, hosts use the stateful autoconfiguration to acquire IPv6 addresses (for example, through a DHCP server). Otherwise, hosts use the stateless autoconfiguration to acquire IPv6 addresses, that is, hosts generate IPv6 addresses according to their own link-layer addresses and the prefix information issued by the router.

O flag

This field determines whether hosts use the stateful autoconfiguration to acquire information other than IPv6 addresses.

If the O flag is set to 1, hosts use the stateful autoconfiguration to acquire information other than IPv6 addresses (for example, through a DHCP server). Otherwise, hosts use the stateless autoconfiguration to acquire information other than IPv6 addresses.

Router lifetime

This field is used to set the lifetime of the router that sends RA messages to serve as the default router of hosts. According to the router lifetime in the received RA messages, hosts determine whether the router sending RA messages can serve as the default router.

Retrans timer

If the device fails to receive a response message within the specified time after sending an NS message, the device will retransmit the NS message.

Reachable time

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 needs to send a packet to a neighbor after the specified reachable time expires, the device will reconfirm whether the neighbor is reachable.

 

The values of the Retrans Timer and the Reachable Time configured for an interface are sent to hosts via RA messages. Furthermore, this interface sends NS messages at the interval of Retrans Timer and considers a neighbor reachable within the Reachable Time.

 

Follow these steps to configure parameters related to an RA message:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the hop limit

ipv6 nd hop-limit value

Optional

64 by default.

Enter interface view

interface interface-type interface-number

Disable the RA message suppression

undo ipv6 nd ra halt

Required

By default, RA messages are suppressed.

Configure the maximum and minimum intervals for sending RA messages

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

Optional

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

The device sends RA messages at random intervals between the maximum interval and the minimum interval.

The minimum interval should be less than or equal to 0.75 times the maximum interval.

Configure the prefix information in RA messages

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

Optional

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

Set the M flag bit to 1

ipv6 nd autoconfig managed-address-flag

Optional

By default, the M flag bit is set to 0, that is, hosts acquire IPv6 addresses through stateless autoconfiguration.

Set the O flag bit to 1

ipv6 nd autoconfig other-flag

Optional

By default, the O flag bit is set to 0, that is, hosts acquire other information through stateless autoconfiguration.

Configure the router lifetime in RA messages

ipv6 nd ra router-lifetime value

Optional

1800 seconds by default.

Set the NS retransmission timer

ipv6 nd ns retrans-timer value

Optional

By default, the local interface sends NS messages at an interval of 1000 milliseconds, and the value of the Retrans Timer field in RA messages sent by the local interface is 0.

Set the reachable time

ipv6 nd nud reachable-time value

Optional

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

 

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

 

Configuring the Maximum Number of Attempts to Send an NS Message for DAD

An interface sends a neighbor solicitation (NS) message for duplicate address detection after acquiring an IPv6 address. If the interface does not receive a response within a specified time (determined by the ipv6 nd ns retrans-timer command), it continues to send an NS message. If it still does not receive a response after the number of sent attempts reaches a configurable threshold, the acquired address is considered usable.

Follow these steps to configure the attempts to send an NS message for DAD:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter interface view

interface interface-type interface-number

Configure the number of attempts to send an NS message for DAD

ipv6 nd dad attempts value

Optional

1 by default. When the value argument is set to 0, DAD is disabled.

 

Configuring PMTU Discovery

Configuring a Static PMTU for a Specified IPv6 Address

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

Follow these steps to configure a static PMTU for a specified address:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a static PMTU for a specified IPv6 address

ipv6 pathmtu ipv6-address [ value ]

Required

By default, no static PMTU is configured.

 

Configuring the Aging Time for Dynamic PMTUs

After the path MTU from a source host to a destination host is dynamically determined (refer to IPv6 PMTU Discovery), the source host sends subsequent packets to the destination host on basis of this MTU. After the aging time expires, the dynamic PMTU is removed and the source host re-determines a dynamic path MTU through the PMTU mechanism.

The aging time is invalid for a static PMTU.

Follow these steps to configure the aging time for dynamic PMTUs:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the aging time for dynamic PMTUs

ipv6 pathmtu age age-time

Optional

10 minutes by default.

 

Configuring IPv6 TCP Properties

The IPv6 TCP properties you can configure include:

l          synwait timer: When a SYN packet is sent, the synwait timer is triggered. If no response packet is received before the synwait timer expires, the IPv6 TCP connection establishment fails.

l          finwait timer: When the IPv6 TCP connection status is FIN_WAIT_2, the finwait timer is triggered. If no packet is received before the finwait timer expires, the IPv6 TCP connection is terminated. If a FIN packet is received, the IPv6 TCP connection status becomes TIME_WAIT. If non-FIN packets are received, the finwait timer is reset upon receipt of the last non-FIN packet and the connection is terminated after the finwait timer expires.

l          Size of the IPv6 TCP sending/receiving buffer.

Follow these steps to configure IPv6 TCP properties:

To do…

Use the command…

Remarks

Enter system view

system-view

Set the finwait timer

tcp ipv6 timer fin-timeout wait-time

Optional

675 seconds by default.

Set the synwait timer

tcp ipv6 timer syn-timeout wait-time

Optional

75 seconds by default.

Set the size of the IPv6 TCP sending/receiving buffer

tcp ipv6 window size

Optional

8 KB by default.

 

Configuring ICMPv6 Packet Sending

Configuring the Maximum ICMPv6 Error Packets Sent in an Interval

If too many ICMPv6 error packets are sent within a short time in a network, network congestion may occur. To avoid network congestion, you can control the maximum number of ICMPv6 error packets sent within a specified time, currently by adopting the token bucket algorithm.

You can set the capacity of a token bucket, namely, the number of tokens in the bucket. In addition, you can set the update interval of the token bucket, namely, the interval for restoring the configured capacity. One token allows one ICMPv6 error packet to be sent. Each time an ICMPv6 error packet is sent, the number of tokens in a token bucket decreases by one. If the number of ICMPv6 error packets successively sent exceeds the capacity of the token bucket, the additional ICMPv6 error packets cannot be sent out until the capacity of the token bucket is restored.

Follow these steps to configure the capacity and update interval of the token bucket:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the capacity and update interval of the token bucket

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

Optional

By default, the capacity of a token bucket is 10 and the update interval is 100 milliseconds. That is, at most 10 IPv6 ICMP error packets can be sent within 100 milliseconds.

The update interval “0” indicates that the number of ICMPv6 error packets sent is not restricted.

 

Enable Sending of Multicast Echo Replies

If hosts are capable of answering multicast echo requests, Host A can attack Host B by sending an echo request with the source being Host B to a multicast address, then all the hosts in the multicast group will send echo replies to Host B. Therefore, to prevent such an attack, a device is disabled from replying multicast echo requests by default.

Follow these steps to enable sending of multicast echo replies:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable sending of multicast echo replies

ipv6 icmpv6 multicast-echo-reply enable

Not enabled by default.

 

Enabling Sending of ICMPv6 Time Exceeded Packets

A device sends an ICMPv6 time exceeded packet in the following cases.

l          If a received IPv6 packet’s destination IP address is not the local address and its hop count is 1, the device sends an ICMPv6 time-to-live count exceeded packet to the source.

l          Upon receiving the first fragment of an IPv6 datagram with the destination IP address being the local address, the device starts a timer. If the timer expires before all the fragments arrive, an ICMPv6 fragment reassembly time exceeded packet is sent to the source.

If large amounts of malicious packets are received, the performance of a device degrades greatly because it has to send back ICMP time exceeded packets. You can disable sending of ICMPv6 time-to-live count exceeded packets.

Follow these steps to enable sending of ICMPv6 time exceeded packets:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable sending of ICMPv6 time exceeded packets

ipv6 hoplimit-expires enable

Optional

Enabled by default.

 

Configuring IPv6 DNS Client

Configuring Static IPv6 Domain Name Resolution

Configuring static IPv6 domain name resolution is to establish the mapping between a host name and an IPv6 address. When using such applications as Telnet, you can directly input a host name and the system will resolve the host name into an IPv6 address. Each host name can correspond to only one IPv6 address.

Follow these steps to configure static IPv6 domain name resolution:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a host name to IPv6 address mapping

ipv6 host hostname ipv6-address

Required

 

Configuring Dynamic IPv6 Domain Name Resolution

You can use the following command to enable the dynamic domain name resolution function. In addition, you need to configure a DNS server so that a query request message can be sent to the correct server for resolution. The system can support at most six DNS servers.

You can configure a DNS suffix so that you only need to enter part of a domain name, and the system can automatically add the preset suffix for address resolution. The system can support at most 10 DNS suffixes.

Follow these steps to configure dynamic IPv6 domain name resolution:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable the dynamic domain name resolution function

dns resolve

Required

Disabled by default.

Configure an IPv6 DNS server

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

Required

If the IPv6 address of the DNS server is a link-local address, you need to specify the interface-type and interface-number argument.

Configure a DNS suffix

dns domain domain-name

Required

By default, no domain name suffix is configured, that is, the domain name is resolved according to the input information.

 

The dns resolve and dns domain commands are the same as those of IPv4 DNS. For details about the commands, refer to DNS Commands in the IP Services Volume.

 

Displaying and Maintaining IPv6 Basics Configuration

To do…

Use the command…

Remarks

Display IPv6 dynamic domain name cache information

display dns ipv6 dynamic-host

Available in any view

Display IPv6 DNS server information

display dns ipv6 server [ dynamic ]

Display the IPv6 FIB entries

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

Display the host name to IPv6 address mappings in the static DNS database

display ipv6 host

Display the IPv6 interface settings

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

Display neighbor information

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

Display the total number of neighbor entries satisfying the specified conditions

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

Available in any view

Display the PMTU information of an IPv6 address

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

Display socket information

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

Display the statistics of IPv6 packets and ICMPv6 packets

display ipv6 statistics [ slot slot-number ]

Display the IPv6 TCP connection statistics

display tcp ipv6 statistics

Display the IPv6 TCP connection status information

display tcp ipv6 status

Display the IPv6 UDP connection statistics

display udp ipv6 statistics

Clear IPv6 dynamic domain name cache information

reset dns ipv6 dynamic-host

Available in user view

Clear IPv6 neighbor information

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

Clear the specified PMTU values

reset ipv6 pathmtu { all | static | dynamic}

Clear the statistics of IPv6 and ICMPv6 packets

reset ipv6 statistics [ slot slot-number ]

Clear all IPv6 TCP connection statistics

reset tcp ipv6 statistics

Clear the statistics of all IPv6 UDP packets

reset udp ipv6 statistics

 

The display dns domain command is the same as the one of IPv4 DNS. For details about the commands, refer to DNS Commands in the IP Services Volume.

 

IPv6 Configuration Example

Network requirements

l          Host, Switch A and Switch B are directly connected through Ethernet ports. Add the Ethernet ports into corresponding VLANs, configure IPv6 addresses for the VLAN interfaces and verify the connectivity between them.

l          The aggregatable global unicast addresses of VLAN-interface 2 and VLAN-interface 1 on Switch A are 3001::1/64 and 2001::1/64 respectively.

l          The aggregatable global unicast address of VLAN-interface 2 on Switch B is 3001::2/64, and a route to Host is available.

l          IPv6 is enabled for Host to automatically get an IPv6 address through IPv6 NDP.

Network diagram

Figure 1-6 Network diagram for IPv6 address configuration (on switches)

 

The VLAN interfaces have been created on the switch.

 

Configuration procedure

l          Configure Switch A

# Enable IPv6.

<SwitchA> system-view

[SwitchA] ipv6

# Specify an aggregatable global unicast address for VLAN-interface 2.

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ipv6 address 3001::1/64

[SwitchA-Vlan-interface2] quit

# Specify an aggregatable global unicast address for VLAN-interface 1, and allow it to advertise RA messages (no interface advertises RA messages by default).

[SwitchA] interface vlan-interface 1

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

[SwitchA-Vlan-interface1] undo ipv6 nd ra halt

l          Configure Switch B

# Enable IPv6.

<SwitchB> system-view

[SwitchB] ipv6

# Configure an aggregatable global unicast address for VLAN-interface 2.

[SwitchB] interface vlan-interface 2

[SwitchB-Vlan-interface2] ipv6 address 3001::2/64

# Configure an IPv6 static route with destination IP address 2001::/64 and next hop address 3001::1.

[SwitchB-Vlan-interface2] ipv6 route-static 2001:: 64 3001::1

l          Configure Host

Enable IPv6 for Host to automatically get an IPv6 address through IPv6 NDP.

[SwitchA-Vlan-interface1] display ipv6 neighbors interface gigabitethernet 2/0/2

                Type: S-Static    D-Dynamic

IPv6 Address                 Link-layer      VID  Interface    State T Age

FE80::215:E9FF:FEA6:7D14      0015-e9a6-7d14  1      GE2/0/2       STALE D 1238

2001::15B:E0EA:3524:E791      0015-e9a6-7d14  1     GE2/0/2      STALE D 1248

The above information shows that the IPv6 aggregatable global unicast address that Host obtained is 2001::15B:E0EA:3524:E791.

Verification

# Display the IPv6 interface settings on Switch A.

[SwitchA-Vlan-interface1] display ipv6 interface vlan-interface 2 verbose

Vlan-interface2 current state :UP

Line protocol current state :UP

IPv6 is enabled, link-local address is FE80::20F:E2FF:FE00:2

  Global unicast address(es):

    3001::1, subnet is 3001::/64

  Joined group address(es):

    FF02::1:FF00:0

    FF02::1:FF00:1

    FF02::1:FF00:2

    FF02::2

    FF02::1

  MTU is 1500 bytes

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND retransmit interval is 1000 milliseconds

  Hosts use stateless autoconfig for addresses

IPv6 Packet statistics:

  InReceives:                    25829

  InTooShorts:                   0

  InTruncatedPkts:               0

  InHopLimitExceeds:             0

  InBadHeaders:                  0

  InBadOptions:                  0

  ReasmReqds:                    0

  ReasmOKs:                      0

  InFragDrops:                   0

  InFragTimeouts:                0

  OutFragFails:                  0

  InUnknownProtos:               0

  InDelivers:                    47

  OutRequests:                   89

  OutForwDatagrams:              48

  InNoRoutes:                    0

  InTooBigErrors:                0

  OutFragOKs:                    0

  OutFragCreates:                0

  InMcastPkts:                   6

  InMcastNotMembers:             25747

  OutMcastPkts:                  48

  InAddrErrors:                  0

  InDiscards:                    0

  OutDiscards:                   0

[SwitchA-Vlan-interface1] display ipv6 interface vlan-interface 1 verbose

Vlan-interface1 current state :UP

Line protocol current state :UP

IPv6 is enabled, link-local address is FE80::20F:E2FF:FE00:1C0

  Global unicast address(es):

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

  Joined group address(es):

    FF02::1:FF00:0

    FF02::1:FF00:1

    FF02::1:FF00:1C0

    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

  ND advertised reachable time is 0 milliseconds

  ND advertised retransmit interval is 0 milliseconds

  ND router advertisements are sent every 600 seconds

  ND router advertisements live for 1800 seconds

  Hosts use stateless autoconfig for addresses

IPv6 Packet statistics:

  InReceives:                    272

  InTooShorts:                   0

  InTruncatedPkts:               0

  InHopLimitExceeds:             0

  InBadHeaders:                  0

  InBadOptions:                  0

  ReasmReqds:                    0

  ReasmOKs:                      0

  InFragDrops:                   0

  InFragTimeouts:                0

  OutFragFails:                  0

  InUnknownProtos:               0

  InDelivers:                    159

  OutRequests:                   1012

  OutForwDatagrams:              35

  InNoRoutes:                    0

  InTooBigErrors:                0

  OutFragOKs:                    0

  OutFragCreates:                0

  InMcastPkts:                   79

  InMcastNotMembers:             65

  OutMcastPkts:                  938

  InAddrErrors:                  0

  InDiscards:                    0

  OutDiscards:                   0

# Display the IPv6 interface settings on Switch B.

[SwitchB-Vlan-interface2] display ipv6 interface vlan-interface 2 verbose

Vlan-interface2 current state :UP

Line protocol current state :UP

IPv6 is enabled, link-local address is FE80::20F:E2FF:FE00:1234

  Global unicast address(es):

    3001::2, subnet is 3001::/64

  Joined group address(es):

    FF02::1:FF00:0

    FF02::1:FF00:2

    FF02::1:FF00:1234

    FF02::2

    FF02::1

  MTU is 1500 bytes

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND retransmit interval is 1000 milliseconds

  Hosts use stateless autoconfig for addresses

IPv6 Packet statistics:

  InReceives:                    117

  InTooShorts:                   0

  InTruncatedPkts:               0

  InHopLimitExceeds:             0

  InBadHeaders:                  0

  InBadOptions:                  0

  ReasmReqds:                    0

  ReasmOKs:                      0

  InFragDrops:                   0

  InFragTimeouts:                0

  OutFragFails:                  0

  InUnknownProtos:               0

  InDelivers:                    117

  OutRequests:                   83

  OutForwDatagrams:              0

  InNoRoutes:                    0

  InTooBigErrors:                0

  OutFragOKs:                    0

  OutFragCreates:                0

  InMcastPkts:                   28

  InMcastNotMembers:             0

  OutMcastPkts:                  7

  InAddrErrors:                  0

  InDiscards:                    0

  OutDiscards:                   0

# Ping Switch A and Switch B on Host, and ping Switch A and Host on Switch B to verify the connectivity between them.

 

When you ping a link-local address, you should use the “–i” parameter to specify an interface for the link-local address.

 

[SwitchB-Vlan-interface2] ping ipv6 -c 1 3001::1

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

    Reply from 3001::1

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

 

  --- 3001::1 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 2/2/2 ms

[SwitchB-Vlan-interface2] ping ipv6 -c 1 2001::15B:E0EA:3524:E791

  PING 2001::15B:E0EA:3524:E791 : 56  data bytes, press CTRL_C to break

    Reply from 2001::15B:E0EA:3524:E791

    bytes=56 Sequence=1 hop limit=63  time = 3 ms

 

  --- 2001::15B:E0EA:3524:E791 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 3/3/3 ms

As shown in the output information, Host can ping Switch B and Switch A.

Troubleshooting IPv6 Basics Configuration

Symptom

The peer IPv6 address cannot be pinged.

Solution

l          Use the display current-configuration command in any view or the display this command in system view to verify that IPv6 is enabled.

l          Use the display ipv6 interface command in any view to verify that the IPv6 address of the interface is correct and the interface is up.

l          Use the debugging ipv6 packet command in user view to enable the debugging for IPv6 packets to help locate the cause.

 

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