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

Configuration Guide - IP Service

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DHCP policy VLAN, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel, and IPv4 over IPv6 tunnel.
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 PD Server Function

Enabling the DHCPv6 PD Server Function

Context

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

    Enable the DHCPv6 PD server function and specify the IPv6 PD 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 address prefixes or DNS server addresses to the DHCPv6 clients from the IPv6 address pool bound to the interface.

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

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

  • Enable the DHCPv6 PD server function in the system view.

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

    The configuration method of enabling the DHCPv6 PD server function in the interface view is affected by the physical interface status. If the interface status is Down, the DHCPv6 PD server cannot successfully assign network configuration parameters to clients through the DHCPv6 relay. If the DHCPv6 PD server function is enabled in the system view and there are multiple reachable routes between the DHCPv6 relay and DHCPv6 PD server, configuration parameters such as IPv6 address prefixes can be assigned to clients through the DHCPv6 relay as long as one route between the DHCPv6 relay and DHCPv6 PD 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 PD server function is enabled in the system view, the configuration information takes effect on all interfaces of the device.

    • If the DHCPv6 PD 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 PD 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. (Optional) On an Ethernet interface, run undo portswitch

      The interface is switched to Layer 3 mode.

      By default, an Ethernet interface works in Layer 2 mode.
      NOTE:

      Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

    6. Run ipv6 enable

      The IPv6 service is enabled on the interface.

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

      The global unicast IPv6 address is configured for the interface.

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

      The DHCPv6 PD server function is enabled on the interface.

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

  • Enable the DHCPv6 PD 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 PD server function is enabled in the system view.

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

      When functioning as a DHCPv6 PD server, the device may be configured with multiple IPv6 address pools. After receiving the DHCPv6 request packets, the DHCPv6 server chooses the IPv6 PD address pool based on the following rules:
      • If a relay exists, choose the address pool in the same link scope with the configured network prefix (using the link-address 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 DHCPv6 PD server function cannot be enabled in the system view.

Follow-up Procedure

The uplink interface of the DHCPv6 PD client, namely, the interface connecting to the DHCPv6 PD server or relay agent, needs to automatically generate global unicast IPv6 addresses through RA messages and further generate routes destined for the DHCPv6 PD server. Therefore, the RA message advertisement function needs to be configured on the interface of the DHCPv6 PD server or relay agent connected to the uplink interface of the DHCPv6 PD client.

  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.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065678

Views: 25009

Downloads: 163

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