No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring IPv6 Addresses for Interfaces

Configuring IPv6 Addresses for Interfaces

Assigning IPv6 addresses to a network device enables the device to communicate with other devices on the network.

Usage Scenario

IPv6 addresses must be configured for router interfaces so that the routers can communicate with IPv6 devices.

Each interface can be configured with at most 16 global unicast and one link-local addresses.

Link-local addresses are used in neighbor discovery and in the communication between nodes on the local link during stateless address autoconfiguration. The packets with link-local addresses as source or destination addresses are only forwarded on the local link.

Link-local addresses can be automatically generated or manually configured.

  • After the IPv6 function is enabled on an interface, the system automatically generates a link-local address for the interface.

  • The link-local address that is manually configured must be valid (usually with the FE80::/10 prefix).

Link-local addresses are used for the communication between link-local nodes. It means that link-local addresses are usually used for the communication between protocols, and are not directly related to the communication between users. Therefore, automatic generation of link-local addresses is recommended.

Global unicast addresses, equivalent to public IPv4 addresses, are used for data forwarding on a public network and are necessary for the communication between users.

EUI-64 addresses function the same as global unicast addresses. The difference is that only the network bits need to be specified for an EUI-64 address, and the host bits are derived from the interface MAC address; for a global unicast address, all the 128 bits must be specified. You must note that the prefix length of the network bits of an EUI-64 address cannot be more than 64 bits.

Both or either of EUI-64 addresses and global unicast addresses can be configured on an interface for communications. The addresses that are configured on the same interface, however, must belong to different network segments.

IPv6 addresses are classified into unicast addresses, multicast addresses, and anycast addresses.

  • Multicast address: assigned to a group of interfaces that belong to different nodes and is similar to an IPv4 multicast address. A packet destined for a multicast address is delivered to all the interfaces identified by that address.
  • Anycast address: assigned to a group of interfaces that generally belong to different nodes. A packet destined for an anycast address is delivered to only one of the member interfaces, typically the nearest to the sender based on the distance vector in the interface group identified by the anycast address. Currently, anycast addresses are applicable to a few scenarios. In typical applications, anycast addresses are used by a large number of 6to4 relay routers in a 6to4 tunnel to enhance the network expandability.

Pre-configuration Tasks

Before configuring IPv6 addresses for interfaces, complete the following tasks:

  • Connect interfaces and configure physical parameters for the interfaces to ensure that the physical status of the interfaces is Up.

  • Configure link layer protocol parameters for the interfaces to ensure that the link layer protocol status of the interfaces is Up.

Configuration Procedures

Figure 12-1 Flowchart for configuring IPv6 addresses

Enabling IPv6

You can perform IPv6-related configurations on an interface only when IPv6 is enabled in the interface view.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ipv6 enable

    IPv6 is enabled on the interface.

  4. Run commit

    The configuration is committed.

Configuring a Link-local Address for an Interface

Link-local addresses are used in neighbor discovery and in the communication between nodes on the local link during stateless address autoconfiguration. Link-local addresses are valid only on local links, meaning that packets with link-local addresses as source or destination addresses are not forwarded to other links.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Perform either of the following operations according to on-site requirements:

    • To automatically configure the link-local address of the interface, run the ipv6 address auto link-local command.

    • To manually configure the link-local address of the interface, run the ipv6 address ipv6-address link-local command.

  4. Run commit

    The configuration is committed.

Configuring a Global Unicast Address for an Interface

Global unicast addresses function the same as public IPv4 addresses. They are used for links whose route prefixes can be aggregated, reducing the number of routing entries.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

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

    A global unicast address is configured for the interface.

    An interface can be configured with a maximum of 16 global unicast addresses.

    A global unicast address cannot be the same as its network prefix because an IPv6 address which is the same as its network prefix is a subnet-router anycast address reserved for a device. However, this rule does not apply to an IPv6 address with a 127-bit network prefix.

  4. Run commit

    The configuration is committed.

Configuring an IPv6 Anycast Address for an Interface

An anycast address is used to identify a group of interfaces.

Context

Anycast addresses and unicast addresses are in the same address range. An anycast address is used to identify a group of interfaces on different nodes.

  • Similar to a multicast address, an anycast address is listened to by multiple nodes. Therefore, it is only used as a destination address.
  • The packets destined for an anycast address are transmitted to an interface that is in the interface group identified by the anycast address and is closest to the source node. (The distance between an interface and the source node is calculated based on the routing protocol). The packets destined for a multicast address are transmitted to a group of interfaces with the multicast address.

When the 6to4 tunnel is used for the communication between the 6to4 network and the native IPv6 network, the NE20E supports the configuration of an anycast address with the prefix of 2002:c058:6301/48 on the tunnel interface of the 6to4 relay route device.

Alternatively, you can configure a 6to4 address on the tunnel interface of the 6to4 relay route device. When multiple 6to4 relay route devices are configured on the network, the difference between the two methods is as follows:

  • If an 6to4 address is used, you need to configure different addresses for tunnel interfaces of all devices.
  • If an anycast address is used, you need to configure the same address for the tunnel interfaces of all devices. In this manner, the number of addresses is reduced.
NOTE:
Before configuring an IPv6 anycast address, ensure that the system has been configured with a 6to4 tunnel whose source interface has been configured with an IPv4 anycast address on the network segment 192.88.99.0/24.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } anycast

    An IPv6 anycast address is assigned to an interface.

    An anycast address is not necessarily a subnet-router anycast address and can be a global unicast address configured using the ipv6 address anycast command.

  4. Run commit

    The configuration is committed.

Verifying the Configuration of IPv6 Addresses

After configuring IPv6 addresses, verify the configuration.

Prerequisites

IPv6 addresses have been configured.

Procedure

  1. Run the display ipv6 interface [ interface-type interface-number | brief ] command to check IPv6 configurations on an interface.
  2. Run the display ipv6 statistics [ interface interface-type interface-number ] command to check IPv6 statistics on an interface.

Example

Run the display ipv6 interface command. The command output shows the IPv6 addresses configured on an interface.

<HUAWEI> display ipv6 interface gigabitethernet 0/1/0
GigabitEthernet0/1/0 current state : UP
IPv6 protocol current state : UP
link-local address is FE80::3A6F:12FF:FE10:300
  Global unicast address(es):
    1::1, subnet is 1::/64
  Joined group address(es):
    FF02::1:FF10:300
    FF02::1:FF00:1
    FF02::1
    FF02::2
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1.
  ND reachable time is 1200000 milliseconds.
  ND retransmit interval is 1000 milliseconds.
  Hosts use stateless autoconfig for addresses.

Run the display ipv6 interface brief command. The command output shows the IPv6 addresses configured on interfaces and the interface status.

<HUAWEI> display ipv6 interface brief
*down: administratively down
!down: FIB overload down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol VPN
GigabitEthernet0/2/2         up                    up      --
[IPv6 Address] 2030::101:101

Run the display ipv6 statistics command. The command output shows statistics about IPv6 packets.

<HUAWEI> display ipv6 statistics
IPv6 Protocol:
  Sent packets:
    Total                : 2
    Local sent out       : 2           Forwarded            : 0
    Raw packets          : 0           Discarded            : 0
    Fragmented           : 0           Fragments            : 0
    Fragments failed     : 0           Multicast            : 2
  Received packets:
    Total                : 0           Local host           : 0
    Hop count exceeded   : 0           Header error         : 0
    Too big              : 0           Routing failed       : 0
    Address error        : 0           Protocol error       : 0
    Truncated            : 0           Option error         : 0
    Fragments            : 0           Reassembled          : 0
    Reassembly timeout   : 0           Multicast            : 0
    Extension header:
     Hop-by-hop options    : 1            Mobility header        : 0
     Destination options   : 0            Routing header         : 0
     Fragment header       : 0            Authentication header  : 0
     Encapsulation header  : 0            No header              : 0
     TLV length error      : 0            Header length error    : 0
     Unkonwn header type   : 0            Unknown TLV type       : 0
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 15818

Downloads: 33

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next