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

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DNS, IP performance optimization, IPv6, DHCPv6, and IPv6 DNS.
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

You can enable the DHCPv6 relay function on an interface of the switch, set the IPv6 address of the DHCPv6 server or the next hop relay agent.

Procedure

  1. Configure DHCPv6 relay in the intra-VPN scenario.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. 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.

      The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.

      NOTE:

      If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.

    4. Run ipv6 enable

      The IPv6 packet forwarding function is enabled.

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

      An IPv6 address is configured for the interface.

    6. Run dhcpv6 relay { interface interface-type interface-number | destination ipv6-address }

      The outbound interface or destination IPv6 address is specified for DHCPv6 messages.

      By default, the outbound interface or destination IPv6 address is not specified for DHCPv6 messages.

    7. (Optional) Run dhcpv6 relay source-ip-address ipv6-address

      The source IPv6 address is specified for DHCPv6 messages on the interface.

      By default, a DHCPv6 relay agent uses the IPv6 address of the outbound interface as the source IPv6 address for packets.

    8. Run quit

      Return to the system view.

    9. (Optional) Run dhcpv6 source-ip-address format adaptive enable

      The source IPv6 address type of the response packets sent by the DHCPv6 relay to the DHCPv6 client is configured as link-local.

      By default, the source IPv6 address of the response packets sent by the DHCPv6 relay to the DHCPv6 client is a global address. If the source IPv6 address type of the request packets sent by a DHCPv6 client is link-local, use this command to configure the source IPv6 address type for the response packets as link-local.

    10. Run commit

      The configuration is committed.

  2. Configure DHCPv6 relay in the inter-VPN scenario.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. 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.

      The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.

      NOTE:

      If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.

    4. Run ipv6 enable

      The IPv6 packet forwarding function is enabled.

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

      An IPv6 address is configured for the interface.

    6. Run dhcpv6 relay destination ipv6-address { vpn-instance vpn-instance-name | public-net }

      The destination IPv6 address is specified for DHCPv6 messages.

      By default, the destination IPv6 address is not specified for DHCPv6 messages.

      • If the server is on the public network, specify the public-net parameter.
      • If the server is on a VPN, the vpn-instance vpn-instance-name parameter specifies the name of the VPN.
      NOTE:

      Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6856HI, CE6860EI, CE6870EI, CE6880EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support the command.

    7. Run dhcpv6 vss-control insert enable

      The function of inserting the vss-control option into Relay-forward messages is enabled on a DHCPv6 relay interface.

      The vss-control option can carry information about the VPN where the DHCPv6 client resides. The DHCPv6 server searches for the corresponding address pool for address allocation based on the vss-control option.

      By default, the function of inserting the vss-control option into Relay-forward messages is disabled on a DHCPv6 relay interface.

      NOTE:

      Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6860EI, CE6870EI, CE6880EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support the command.

    8. Run dhcpv6 relay source-ip-address ipv6-address

      The source IPv6 address is specified for DHCPv6 messages on the interface.

      By default, a DHCPv6 relay agent uses the IPv6 address of the outbound interface as the source IPv6 address for packets.

      NOTE:
      You must configure this command if the DHCPv6 server and client are in different VPNs. Because the destination IP address in the response message that the DHCPv6 server sends back to the DHCPv6 relay is the source IP address of the request message, the source IP address of the DHCPv6 relay message must be the IP address of the outbound interface on the DHCPv6 relay in order to ensure that the destination IP address is reachable in the VPN.

    9. Run quit

      Return to the system view.

    10. (Optional) Run dhcpv6 source-ip-address format adaptive enable

      The source IPv6 address type of the response packets sent by the DHCPv6 relay to the DHCPv6 client is configured as link-local.

      By default, the source IPv6 address of the response packets sent by the DHCPv6 relay to the DHCPv6 client is a global address. If the source IPv6 address type of the request packets sent by a DHCPv6 client is link-local, use this command to configure the source IPv6 address type for the response packets as link-local.

    11. Run commit

      The configuration is committed.

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 device functions as the client gateway, perform the following steps:

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ipv6 nd ra halt disable

    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 autoconfiguration 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 autoconfiguration 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.

  6. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166635

Views: 137549

Downloads: 287

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