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

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 Client

Example for Configuring a DHCPv6 Client

Networking Requirements

In Figure 9-20, the router is required to function as a DHCPv6 client and obtain an IPv6 address and other configuration parameters from the DHCPv6 server. The address of the DHCPv6 server is fc00:3::1/64. The DHCPv6 server and client are on the same link.

Figure 9-20  Networking diagram for configuring a DHCPv6 client

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 client function so that devices can obtain IPv6 addresses using DHCPv6.

Procedure

  1. Enable the DHCP service.

    <Huawei> system-view
    [Huawei] sysname Router A
    [Router A] dhcp enable

  2. Configure IPv6 functions on an interface.

    [Router A] ipv6
    [Router A] interface gigabitethernet 0/0/1
    [Router A-GigabitEthernet0/0/1] ipv6 enable
    [Router A-GigabitEthernet0/0/1] ipv6 address auto link-local

  3. Enable the DHCPv6 client function.

    # Enable the DHCPv6 client function on GE 0/0/1.

    [Router A-GigabitEthernet0/0/1] ipv6 address auto dhcp

  4. Verify the configuration.

    # Run the display dhcpv6 client command on the Router A to check the DHCPv6 client configurations.

    <Router A> display dhcpv6 client
    GigabitEthernet0/0/1 is in stateful DHCPv6 client mode.                         
    State is BOUND.                                                                 
    Preferred server DUID   : 000300060819A6CDA894                                  
      Reachable via address : FE80::A19:A6FF:FECD:A897                              
    IA NA IA ID 0x00000051 T1 43200 T2 69120                                        
      Obtained     : 2012-12-22 09:15:54                                            
      Renews       : 2012-12-22 21:15:54                                            
      Rebinds      : 2012-12-23 04:27:54                                            
      Address      : FC00:3::2                                                        
        Lifetime valid 172800 seconds, preferred 86400 seconds                      
        Expires at 2012-12-24 09:15:54(172795 seconds left)                         
    

    # Run the display dhcpv6 client statistics command on the Router A to check message statistics on the DHCPv6 client.

    <Router A> display dhcpv6 client statistics
     Message statistics of interface GigabitEthernet0/0/1:                          
       Message                  Received                                            
       Advertise                1                                                   
       Reply                    1                                                   
       Reconfigure              0                                                   
       Invalid                  0                                                   
                                                                                    
       Message                  Sent                                                
       Solicit                  1                                                   
       Request                  1                                                   
       Confirm                  0                                                   
       Renew                    0                                                   
       Rebind                   0                                                   
       Release                  0                                                   
       Decline                  0                                                   
       Information-request      0  

Configuration File

Configuration file of Router A

#
 sysname Router A
#                                                                               
ipv6                                                                            
#                                                                               
dhcp enable                                                                   
#                                                                               
interface GigabitEthernet0/0/1                                                  
 ipv6 enable                                                                    
 ipv6 address auto link-local                                                   
 ipv6 address auto dhcp                                                                  
#  
return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069333

Views: 44397

Downloads: 204

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next