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).
Examples for Configuring a DHCPv6 Server to Assign IPv6 Addresses and Other Configuration Parameters to Clients

Examples for Configuring a DHCPv6 Server to Assign IPv6 Addresses and Other Configuration Parameters to Clients

Networking Requirements

On the network shown in Figure 8-20, Device A functions as the DHCPv6 server and Device B is a user access device. The following describes how to configure a DHCPv6 server to dynamically assign IPv6 addresses and other configuration parameters to clients on the same network segment.

Figure 8-20  Configuring a DHCPv6 server

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable the DHCPv6 function.

  2. Create an IPv6 address pool and configure its attributes.

  3. Enable the DHCPv6 server function on the VLANIF interface.

Data Preparation

To complete the configuration, you need the following data:

  • IPv6 address pool: pool1
  • IPv6 address of the DHCPv6 server's VLANIF interface: 2001:db8:1::1/64
  • Network segment of the IPv6 address pool: 2001:db8:1::/64.
  • DNS server address: 2001:db8:2::1/64

Procedure

  1. Enable the DHCPv6 function on Device A.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceA
    [*HUAWEI] commit
    [~DeviceA] dhcpv6 enable
    [~DeviceA] commit

  2. Enable the IPv6 function on the interface.

    [~DeviceA] vlan 10
    [*DeviceA-vlan10] quit
    [*DeviceA] interface 10GE 1/0/1
    [*DeviceA-10GE1/0/1] port link-type access
    [*DeviceA-10GE1/0/1] port default vlan 10
    [*DeviceA-10GE1/0/1] quit
    [*DeviceA] interface vlanif 10
    [*DeviceA-Vlanif10] ipv6 enable
    [*DeviceA-Vlanif10] ipv6 address 2001:db8:1::1/64
    [*DeviceA-Vlanif10] quit
    [*DeviceA] commit

  3. Create an IPv6 address pool on Device A and configure its attributes.

    [~DeviceA] dhcpv6 pool pool1
    [*DeviceA-dhcpv6-pool-pool1] address prefix 2001:db8:1::/64
    [*DeviceA-dhcpv6-pool-pool1] excluded-address 2001:db8:1::1
    [*DeviceA-dhcpv6-pool-pool1] dns-server 2001:db8:2::1
    [*DeviceA-dhcpv6-pool-pool1] dns-domain-name huawei.com
    [*DeviceA-dhcpv6-pool-pool1] commit
    [~DeviceA-dhcpv6-pool-pool1] quit

  4. Enable the DHCPv6 server function on the VLANIF interface of Device A.

    [~DeviceA] interface vlanif 10
    [~DeviceA-Vlanif10] dhcpv6 server pool1
    [*DeviceA-Vlanif10] commit
    [~DeviceA-Vlanif10] quit

  5. Verify the configuration.

    # Run the display dhcpv6 pool command on Device A to view the IP address pool configuration.

    [~DeviceA] display dhcpv6 pool
    DHCPv6 pool: pool1 
      Address prefix: 2001:DB8:1::/64                                                     
        Lifetime 172800 seconds, preferred 86400 seconds                      
        0 in use, 0 conflicts                                                       
      Excluded-address 2001:DB8:1::1
      1 excluded addresses
      Information refresh time: 86400                                               
      DNS server address: 2001:DB8:2::1                               
      DNS server domain name: huawei.com                                               
      Conflict-address expire-time: 172800                                           
      renew-time-percent : 50                                                       
      rebind-time-percent : 80             
      Active normal clients: 0       

    # Run the display dhcpv6 server command on Device A to view the DHCPv6 server information.

    [~DeviceA] display dhcpv6 server
     Database write enable: disable
     Recover from files after reboot: disable
     File saving lease items: --
     File saving conflict items: --
     Save interval: 86400 (seconds)
     Message statistics of Global:
     Message                  Received
     Solicit                  17
     Request                  2
     Confirm                  0
     Renew                    1
     Rebind                   0
     Release                  0
     Decline                  0
     Information-request      0
     Relay-forward            0
     Leasequery               0
     UnknownType              0
     Message                  Sent
     Advertise                17
     Reply                    2
     Relay-reply              0
     Leasequery-reply         0
     Reconfigure              0
     Message statistics of interface Vlanif10
     Message                  Received
     Solicit                  17
     Request                  2
     Confirm                  0
     Renew                    1
     Rebind                   0
     Release                  0
     Decline                  0
     Information-request      0
     Relay-forward            0
     Leasequery               0
     UnknownType              0
     Message                  Sent
     Advertise                17
     Reply                    2
     Relay-reply              0
     Leasequery-reply         0
     Reconfigure              0

Configuration Files

  • Device A configuration file

    #
    sysname DeviceA
    #
    vlan batch 10
    #
    dhcpv6 enable
    #
    dhcpv6 pool pool1
     address prefix 2001:DB8:1::/64
     excluded-address 2001:DB8:1::1
     dns-server 2001:DB8:2::1
     dns-domain-name huawei.com
    #
    interface Vlanif10
     ipv6 enable
     ipv6 address 2001:DB8:1::1/64
     dhcpv6 server pool1
    #
    interface 10GE1/0/1
     port default vlan 10
    #
    return
    
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166635

Views: 131357

Downloads: 285

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