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

CLI-based Configuration Guide - IP Service

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R010

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.
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 the DHCPv6 Relay Function

Configuring the DHCPv6 Relay Function

Context

The device supports the following methods of configuring the DHCPv6 relay function:
  • Configure an IPv6 address for a DHCPv6 server or next-hop relay agent on an interface. This method applies to the scenario in which the peer of the DHCPv6 relay is connected to one DHCPv6 server or next-hop relay agent.
  • Bind a DHCPv6 server group to an interface. The detailed procedure is as follows: Create a DHCPv6 server group in the system view, add IPv6 addresses of multiple DHCPv6 servers or next-hop relay agents to the DHCPv6 server group, and specify the DHCPv6 server group for the DHCPv6 relay on an interface. This method applies to the scenario in which the peer of the DHCPv6 relay is connected to multiple DHCPv6 servers or next-hop relay agents. In this way, the DHCPv6 relay can flexibly select and uniformly manage the DHCPv6 servers or next-hop relay agents.

Multiple DHCPv6 relays can be connected between the DHCPv6 client and server. If the device functions as a DHCPv6 relay and the peer are connected to the DHCPv6 server, you must specify the IPv6 address for the DHCPv6 server when enabling the DHCPv6 relay. If the peer is connected to the next-hop relay agent, you must specify the IPv6 address for the next-hop relay agent and specify the IPv6 address for the peer DHCPv6 server or next-hop relay agent on the next-hop relay agent.

Procedure

  • Configure an IPv6 address for a DHCPv6 server or next-hop relay agent on an interface.
    1. Run system-view

      The system view is displayed.

    2. Run dhcp enable

      The DHCP service is enabled.

    3. Run ipv6

      The IPv6 packet forwarding function is enabled.

    4. Run interface interface-type interface-number

      The interface view is displayed.

    5. Run ipv6 enable

      The IPv6 packet forwarding function is enabled.

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

      The IPv6 address for the interface is configured.

    7. Run dhcpv6 relay destination ipv6-address

      The DHCPv6 relay function is enabled on the interface, and the IPv6 address for the DHCPv6 server or next-hop relay agent is configured.

      By default, the DHCPv6 relay function is disabled on an interface.

      The configured IPv6 address is a global unicast address or unique local address. The device finds the route and sends relay packets to the configured IPv6 address.

      If the peer of the DHCPv6 relay is connected to multiple DHCPv6 servers or next-hop relay agents, you must repeat this step. The device supports a maximum of eight DHCPv6 servers or next-hop relay agents.

    8. (Optional) Run dhcpv6 relay source-interface interface-type interface-number

      The IPv6 address of an interface is configured as the source IPv6 address of packets.

      By default, the IPv6 address of an interface is not configured as the source IPv6 address of packets.

      Currently, only the IPv6 address of a loopback interface can be configured as the source IPv6 address of packets.

  • Bind a DHCPv6 server group to an interface.
    1. Run system-view

      The system view is displayed.

    2. Run dhcp enable

      The DHCP service is enabled.

    3. Run ipv6

      The IPv6 packet forwarding function is enabled.

    4. Run dhcpv6 server group group-name

      The DHCPv6 server group is created.

      By default, no DHCPv6 server group is created.

    5. Run dhcpv6-server ipv6-address

      The member address of the DHCPv6 server or next-hop relay agent is added to the DHCPv6 server group.

      By default, no member of the DHCPv6 server or next-hop relay agent is configured in the DHCPv6 server group.

      If the peer of the DHCPv6 relay is connected to multiple DHCPv6 servers or next-hop relay agents, you must repeat this step. The device supports a maximum of 20 DHCPv6 servers or next-hop relay agents.

    6. Run quit

      Return to the system view.

    7. Run interface interface-type interface-number

      The interface view is displayed.

    8. Run ipv6 enable

      The IPv6 packet forwarding function is enabled.

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

      The IPv6 address for the interface is configured.

    10. Run dhcpv6 relay server-select group-name

      The DHCPv6 server group is specified for the DHCPv6 relay.

      By default, no DHCPv6 server group is specified.

    11. (Optional) Run dhcpv6 relay source-interface interface-type interface-number

      The IPv6 address of an interface is configured as the source IPv6 address of packets.

      By default, the IPv6 address of an interface is not configured as the source IPv6 address of packets.

      Currently, only the IPv6 address of a loopback interface can be configured as the source IPv6 address of packets.

Follow-up Procedure

When the DHCPv6 relay agent functions as the gateway for clients, you need to configure the M/O flag of RA messages on the DHCPv6 relay-enabled interface to make the clients obtain IPv6 addresses or other network configuration parameters using DHCPv6.

NOTE:

After the M flag of RA messages is configured, the clients can obtain IPv6 addresses using DHCPv6. After the O flag of RA messages is configured, the clients can obtain other network configuration parameters using DHCPv6.

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run undo ipv6 nd ra halt

    The RA message advertisement function is enabled on the device.

    By default, the RA message advertisement function is disabled on a device.

  4. Run ipv6 nd autoconfig managed-address-flag

    The M flag of stateful address autoconfiguration in an RA message is configured.

    By default, the M flag of stateful address autoconfiguration in an RA message is not configured.

  5. Run ipv6 nd autoconfig other-flag

    The O flag of stateful autoconfiguration of other information in an RA message is configured.

    By default, the O flag of stateful autoconfiguration of other information in an RA message is not configured.

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034231

Views: 78992

Downloads: 51

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