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


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - IP Service

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

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).
Example for Configuring a DHCPv6 Server

Example for Configuring a DHCPv6 Server

Networking Requirements

If a large number of IPv6 addresses need to be manually configured, the workload on configuration will be huge, and the manually configured addresses have poor manageability. The administrator requires that IPv6 addresses and network configuration parameters be obtained automatically to facilitate centralized management and hierarchical IPv6 network deployment.

Figure 9-15  Networking diagram for configuring the DHCPv6 server

Configuration Roadmap

The configuration roadmap is as follows:
  1. Enable IPv6 functions on the interface so that devices can communicate using IPv6.

  2. Enable the DHCPv6 Server function so that devices can assign IPv6 addresses using DHCPv6.


  1. Enable the DHCP service.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] dhcp enable

  2. Configure a DHCPv6 server.

    [RouterA] dhcpv6 pool pool1 
    [RouterA-dhcpv6-pool-pool1] address prefix fc00:3::/64  
    [RouterA-dhcpv6-pool-pool1] dns-server fc00:3::1 
    [RouterA-dhcpv6-pool-pool1] excluded-address fc00:3::1 
    [RouterA-dhcpv6-pool-pool1] quit

  3. Configure IPv6 functions on an interface.

    [RouterA] ipv6
    [RouterA] interface gigabitethernet 0/0/1
    [RouterA-GigabitEthernet0/0/1] ipv6 enable
    [RouterA-GigabitEthernet0/0/1] ipv6 address fc00:3::1/64

  4. Enable the DHCPv6 server function on the interface.

    [RouterA-GigabitEthernet0/0/1] dhcpv6 server pool1 

  5. Configure M and O flag bits of RA messages through which the DHCPv6 client learns the route to the IPv6 gateway.

    [RouterA-GigabitEthernet0/0/1] undo ipv6 nd ra halt 
    [RouterA-GigabitEthernet0/0/1] ipv6 nd autoconfig managed-address-flag
    [RouterA-GigabitEthernet0/0/1] ipv6 nd autoconfig other-flag
    [RouterA-GigabitEthernet0/0/1] quit
    [RouterA] quit

  6. Verify the configuration.

    # Run the display dhcpv6 pool command on the router to check information about the DHCPv6 address pool.

    <RouterA> display dhcpv6 pool pool1
    DHCPv6 pool: pool1
      Address prefix: FC00:3::/64                                                     
        Lifetime valid 172800 seconds, preferred 86400 seconds                      
        0 in use, 0 conflicts                                                       
      Excluded-address FC00:3::1                                                      
      1 excluded addresses 
      Information refresh time: 86400                                               
      DNS server address: FC00:3::1                                                   
      Conflict-address expire-time: 172800                                          
      Active normal clients: 0       

    # Run the display dhcpv6 server command on the router to check information about the DHCPv6 server.

    <RouterA> display dhcpv6 server
      Interface                                DHCPv6 pool                           
      GigabitEthernet0/0/1                     pool1   

Configuration File

Configuration file of RouterA

 sysname RouterA
dhcp enable   
dhcpv6 pool pool1                                                               
 address prefix FC00:3::/64
 excluded-address FC00:3::1                                                   
 dns-server FC00:3::1                                                             
interface GigabitEthernet0/0/1                                                  
 ipv6 enable                                                                    
 ipv6 address FC00:3::1/64                                                    
 undo ipv6 nd ra halt
 ipv6 nd autoconfig managed-address-flag
 ipv6 nd autoconfig other-flag
 dhcpv6 server pool1   
Updated: 2019-03-06

Document ID: EDOC1100069333

Views: 33695

Downloads: 169

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