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).
Enabling the DHCPv6 Server Function

Enabling the DHCPv6 Server Function

Context

When the device functions as a DHCPv6 server, the DHCPv6 server function can be enabled in the system view or interface view.
  • Enable the DHCPv6 server function in the interface view.

    Enable the DHCPv6 server function and specify the IPv6 address pool on the interface that connects the device to the DHCPv6 clients. After receiving the DHCPv6 request packets sent by the clients from the interface, the device assigns configuration parameters such as IPv6 addresses or DNS server addresses to the DHCPv6 clients from the IPv6 address pool bound to the interface.

    • If the DHCPv6 server and DHCPv6 clients are in the same link scope (that is, no DHCPv6 relay exists), configuration parameters such as IPv6 addresses or DNS server addresses are assigned to the DHCPv6 clients on the interface of the DHCPv6 server.
    • If the DHCPv6 server and DHCPv6 clients are in different link scopes (that is, a DHCPv6 relay exists), configuration parameters such as IPv6 addresses or DNS server addresses are assigned to the DHCPv6 clients in one network segment connected to the DHCPv6 relay.
    NOTE:
    • Only one IPv6 address pool can be specified on an interface.

    • If the DHCPv6 server function is enabled in the interface view, the configuration information only takes effect on the interface.

  • Enable the DHCPv6 server function in the system view.

    The DHCPv6 server and DHCPv6 clients are in different link scopes (that is, the DHCPv6 relay exists). If the DHCPv6 server function is enabled in the interface view, configuration parameters such as IPv6 addresses are assigned only to the clients in one network segment connected to the DHCPv6 relay, because only one IPv6 address pool can be specified on an interface. If configuration parameters such as IPv6 addresses need to be assigned to the DHCPv6 clients in multiple network segments through the DHCPv6 relay, enable the DHCPv6 server function in the system view.

    The configuration method of enabling the DHCPv6 server function in the interface view is affected by the physical interface status. If the interface status is Down, the DHCPv6 server cannot successfully assign network configuration parameters to clients through the DHCPv6 relay. When the DHCPv6 server function is enabled in the system view and there are multiple reachable routes between the DHCPv6 relay and DHCPv6 server, configuration parameters such as IPv6 addresses can be assigned to clients through the DHCPv6 relay as long as one route between the DHCPv6 relay and DHCPv6 server is reachable. This improves reliability of the configuration information obtained by the clients. In addition, no configuration is required on the interface, which reduces the administrator's maintenance workload.

    NOTE:
    • If the DHCPv6 server function is enabled in the system view, the configuration information takes effect on all interfaces of the device.

    • If the DHCPv6 server function is enabled concurrently in the system view and interface view, the configuration in the interface view takes precedence over that in the system view.

Procedure

  • Enable the DHCPv6 server function in the interface view.
    1. Run system-view

      The system view is displayed.

    2. Run dhcp enable

      The DHCP service is enabled.

    3. Run ipv6

      The IPv6 function is enabled globally.

    4. Run interface interface-type interface-number

      The interface view is displayed.

    5. Run ipv6 enable

      The IPv6 service is enabled on the interface.

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

      The global unicast IPv6 address is configured for the interface.

    7. Run dhcpv6 server pool-name [ allow-hint | preference preference-value | rapid-commit | unicast ] *

      The DHCPv6 server function is enabled on the interface.

      By default, the DHCPv6 server function is disabled in the interface view.

  • Enable the DHCPv6 server function in the system view.
    1. Run system-view

      The system view is displayed.

    2. Run dhcp enable

      The DHCP service is enabled.

    3. Run ipv6

      The IPv6 function is enabled globally.

    4. (Optional) Run dhcpv6 server { allow-hint | preference preference-value | rapid-commit | unicast } *

      The DHCPv6 server function is enabled in the system view.

      By default, the DHCPv6 server function is disabled in the system view.

      When functioning as a DHCPv6 server, the device may be configured with multiple IPv6 address pools. After receiving the DHCPv6 request packets, the DHCPv6 server chooses the IPv6 address pool based on the following rules:

      • If a relay exists, the server chooses the address pool that belongs to the same link scope with the configured network prefix (using the link-address command) or IPv6 address prefix (using the address prefix command) based on the first link-address field that is not 0. The link-address field identifies the link scope of the DHCPv6 clients.

      • If no relay exists, the device that functions as the DHCPv6 server only assigns configuration parameters to clients in DHCPv6 stateless mode. This indicates that the DHCPv6 server only assigns configuration parameters excluding IPv6 addresses and including DNS, NIS, and SNTP servers, and the IPv6 addresses for clients are automatically generated based on the Route Advertisement (RA) packets. To enable the DHCPv6 server to assign network parameters in DHCPv6 stateful mode, enable the DHCPv6 server function in the interface view.

Follow-up Procedure

For clients (such as PCs) that automatically obtain IPv6 addresses based on IPv6 RA packets by default, flags in RA messages need to be configured on the client gateways so that the clients can obtain IPv6 addresses using DHCPv6.

  • When the DHCPv6 relay does not exist and the device function as the client gateway:

    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 packet sending function is enabled on the device.

      By default, the switch for sending the RA packets is disabled.

    4. Run ipv6 nd autoconfig managed-address-flag

      The managed address configuration flag (M flag) of stateful auto-configuration in an RA packet is configured.

      By default, the M flag in the RA packet is not configured.

    5. Run ipv6 nd autoconfig other-flag

      The other flag (O flag) of stateful auto-configuration in an RA packet is configured.

      By default, the O flag in the RA packet is not configured.

      After the M flag and O flag of stateful autoconfiguration in the RA packet are configured, the client can obtain an IPv6 address using DHCPv6.

  • When the DHCPv6 relay exists and functions as the client gateway, the configuration needs to be performed on the DHCPv6 relay device. Perform configuration based on the preceding steps.

    NOTE:
    When the device functions as the DHCPv6 client, flags in RA messages do not need to be configured on gateways. You can run the ipv6 address auto dhcp command to configure the clients to automatically obtain IPv6 addresses and other network configuration parameters using DHCPv6.
Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034231

Views: 83071

Downloads: 54

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