This document describes the configurations of IP service, including IP address, ARP, DHCP, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel and IPv4 over IPv6 tunnel.
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 Client Function
Enabling the DHCPv6 PD Client Function
Context
When the uplink interface of
the device is configured as the DHCPv6 PD client, the client uses
the DHCPv6 protocol to dynamically obtain an IPv6 address prefix from
the DHCPv6 PD server. The downlink interface is bound to the obtained
IPv6 address prefix, so that the IPv6 address can be automatically
generated for the user in route advertising mode.
Procedure
Configure the IPv6 function on the uplink interface.
Run system-view
The system view is displayed.
Run ipv6
The device is enabled to forward IPv6 unicast packets.
By default, the device is disabled from forwarding IPv6 unicast
packets.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
(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.
Run ipv6 enable
IPv6 is enabled on the interface.
By default, IPv6
is disabled on an interface.
Configure a global unicast IPv6 address manually or
automatically.
Manually configuring a global unicast IPv6 address:
Run
the ipv6 address { ipv6-address prefix-length |ipv6-address/prefix-length } command
to configure the global unicast IPv6 address for the interface.
Automatically generating
a global unicast IPv6 address:
Run the ipv6 address auto
link-local or ipv6 addressipv6-addresslink-local command to automatically or manually configure the link-local address
on the interface.
By default, no link-local address is configured
for an interface.
Run the ipv6 address auto global [ default ] command to enable the function of automatically
generating global unicast IPv6 addresses through stateless autoconfiguration.
By default, the device is disabled from automatically generating
global unicast IPv6 addresses through stateless autoconfiguration.
Configure the DHCPv6 PD client on the uplink interface.
Run system-view
The system view is displayed.
Run dhcpv6 duid { ll | llt | duid }
A DUID is configured for the device.
By default, the device generates a DUID based on the link-layer
(LL) address.
You can
specify the rapid-commit parameter to set
the DHCPv6 PD client to request an IPv6 address prefix using the two-message
exchange. The service can use two-message exchange to assign IPv6
address prefix to client only when two-message exchange is enabled
on the DHCPv6 PD client and server. Otherwise, the server assigns
IPv6 address prefix to the client using the four-message exchange
method.
Verifying the Configuration
Run the display dhcpv6 client prefix [ nameprefix-name ] command to check the IPv6 address
prefix on the device that functions as the DHCPv6 PD client.
Follow-up Procedure
Bind the downlink interface to the obtained IPv6 address
prefix and enable the downlink interface to send RA packets, so that
the IPv6 address can be automatically generated for the user in route
advertising mode.
Run the system-view command to enter the system view.
Run the interfaceinterface-typeinterface-number command to enter the interface view.
(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.
Run the ipv6 enable command to enable the IPv6
function on the interface.
By default, the IPv6 function is
disabled on an interface.
Run the ipv6 address auto
link-local or ipv6 addressipv6-addresslink-local command to automatically or manually configure the link-local address
on the interface.
By default, no link-local address is configured
for an interface.
Run the ipv6 addressdhcpv6-prefix { ipv6-addressprefix-length | ipv6-address/prefix-length } command
to bind the interface to the IPv6 address prefix obtained by the DHCPv6
PD client.
By default, the interface is not bound to the IPv6
address prefix obtained by the DHCPv6 PD client.
The value of prefix-length for the IPv6 address prefix bound to the interface must be greater
than the length of the prefix obtained by the DHCPv6 PD client; otherwise,
the interface cannot generate the global unicast IPv6 address based
on the bound IPv6 address prefix and record the log DHCP/4/PREF_LENCHK.
You can run the display dhcpv6 client prefix [ nameprefix-name ] command to check the length of
the prefix obtained by the DHCPv6 PD client.
Run the undo ipv6 nd ra halt command to enable the interface
to send RA packets.
By default, the interface is disabled from
sending RA packets.