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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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 DHCPv6

Configuring DHCPv6

Configuring a DHCPv6 Relay Agent

A DHCPv6 relay agent enables the DHCPv6 client and server on different links to exchange DHCPv6 messages.

Pre-configuration Tasks

Before configuring the DHCPv6 relay agent, complete the following tasks:

  • Configuring the peer DHCPv6 server or DHCPv6 PD server

  • Configuring a route from the switch modules to the DHCPv6 server or DHCPv6 PD server

Enable DHCPv6

Context

The DUID identifies a DHCPv6 device. Each DHCPv6 server or client has a unique DUID. DHCPv6 servers use DUIDs to identify DHCPv6 clients and DHCPv6 clients use DUIDs to identify DHCPv6 servers. The DUID is optional for DHCPv6 relay agents.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dhcpv6 enable

    DHCPv6 is enabled.

    By default, the DHCPv6 function is disabled.

  3. (Optional) Run:

    dhcpv6 duid { duid-value | ll | llt }

    A DUID is configured for the device.

    By default, the device generates a DUID based on the link-layer (LL) address.

  4. Run:

    commit 

    The configuration is committed.

Configuring the DHCPv6 Relay Function

Context

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

Procedure

  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.

    If an Ethernet interface already has Layer 2 configuration, this command fails to be executed on the interface. Before running this command on the interface, delete all the Layer 2 configuration of the interface.

    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 on the interface.

    By default, neither outbound interface nor destination IPv6 address is specified for DHCPv6 messages on an interface.

  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:

    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.

(Optional) Configuring DHCPv6 Relay Options

Context

Some DHCPv6 servers can allocate IPv6 addresses and other network parameters to clients according to the client location information. The DHCPv6 protocol defines the Interface-ID option and Remote-ID option that can record the client location information, including the inbound interface on the device that receives DHCPv6 Request packets and DUID information of clients. If the device functions as a DHCPv6 relay agent, the Interface-ID option or Remote-ID option can be added in DHCPv6 packets.

After the Interface-ID option or Remote-ID option is configured to be added in DHCPv6 packets, the device adds the Interface-ID option or Remote-ID option in DHCPv6 Request packets sent by clients according to the configuration, constructs Relay-Forward packets, and sends the packets to the DHCPv6 server. The DHCPv6 server allocates IPv6 addresses and other network parameters to clients according to the options, and sends Relay-Reply packets to the DHCPv6 relay agent. After receiving the Relay-Reply packets, the DHCPv6 relay agent removes the Interface-ID option or Remote-ID option, and forwards the packets to clients or other relay agents.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dhcpv6 remote-id format { default | user-defined text }

    The Remote-Id option format is configured.

    By default, the Remote-ID option uses the default format.

  3. Run:

    interface interface-type interface-number

    The interface view is displayed.

  4. Run:

    dhcpv6 { interface-id | remote-id } insert enable

    The interface is enabled to add relay options to DHCPv6 messages.

    By default, DHCPv6 relay agents do not add relay options to DHCPv6 messages.

  5. Run:

    commit

    The configuration is committed.

Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 61247

Downloads: 3623

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