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

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services
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 IPv6 DNS Client

Example for Configuring IPv6 DNS Client

This section provides an example for configuring IPv6 DNS.

Networking Requirements

On the network shown in Figure 7-2, Device A functions as an IPv6 DNS client. To allow Device A to use the domain name huawei.com to access the host with the IPv6 address 2001:db8:2::1/64 through an IPv6 DNS server, configure dynamic DNS.

In addition, to allow Device A to use the domain name to manage Device B and Device C, configure static IPv6 DNS entries for Device B and Device C on Device A.

Figure 7-2 IPv6 DNS networking

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure static IPv6 DNS entries.

  2. Enable dynamic DNS.

  3. Specify a DNS server IPv6 address.

  4. Configure a domain name suffix.

Data Preparation

To complete the configuration, you need the following data:

  • Domain names of Device B and Device C

  • DNS server IPv6 address

  • Domain name suffix

Procedure

  1. Configure Device A.

    # Configure static IPv6 DNS entries.

    <DeviceA> system-view
    [~DeviceA] ipv6 host DeviceB 2001:db8:1::2
    [*DeviceA] ipv6 host DeviceC 2001:db8:2::3

    # Enable dynamic DNS.

    [*DeviceA] dns resolve

    # Specify a DNS server IPv6 address.

    [*DeviceA] dns server ipv6 2001:db8:3::2

    # Configure the domain name suffix net.

    [*DeviceA] dns domain net

    # Configure the domain name suffix com.

    [*DeviceA] dns domain com
    [*DeviceA] commit
    [~DeviceA] quit
    NOTE:

    To implement DNS, a route from Device A to the IPv6 DNS server is also required. For details on how to configure routes, see NE20E Configuration Guide - IP Routing.

  2. Verify the configuration.

    # Run the ping ipv6 huawei.com command on Device A. The ping operation is successful, and the resolved destination IPv6 address is 2001:db8:2::1.

    <DeviceA> ping ipv6 huawei.com
      Resolved Host ( huawei.com -> 2001:db8:2::1)
      PING huawei.com : 56  data bytes, press CTRL_C to break
        Reply from 2001:db8:2::1: bytes=56 Sequence=1 ttl=126 time=6 ms
        Reply from 2001:db8:2::1: bytes=56 Sequence=2 ttl=126 time=4 ms
        Reply from 2001:db8:2::1: bytes=56 Sequence=3 ttl=126 time=4 ms
        Reply from 2001:db8:2::1: bytes=56 Sequence=4 ttl=126 time=4 ms
        Reply from 2001:db8:2::1: bytes=56 Sequence=5 ttl=126 time=4 ms
      --- huawei.com ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 4/4/6 ms

    # Run the display ipv6 host command on Device A. The command output shows the mapping between the host name and IPv6 address in static IPv6 DNS entries.

    <DeviceA> display ipv6 host
    Host                 Age        Flags  Address
    DeviceB              0          static 2001:db8:1::2
    DeviceC              0          static 2001:db8:2::3

    # Run the display dns ipv6 dynamic-host command on Device A. The command output shows dynamic IPv6 DNS entries in the domain name cache.

    <DeviceA> display dns ipv6 dynamic-host
    No   Domain Name           Ipv6address                              TTL          Alias
    1    huawei.com            2001:db8:2::1                            3579  
    NOTE:

    The TTL field in the command output shows the lifetime of a dynamic IPv6 DNS entry, expressed in seconds.

Configuration Files

  • Device A configuration file

    #
     sysname DeviceA
    #
     ipv6 host DeviceB 2001:db8:1::2
     ipv6 host DeviceC 2001:db8:2::3
    #
     dns resolve
     dns server ipv6 2001:db8:3::2
     dns domain net
     dns domain com
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::1/64
     ripng 1 enable
    #
    ripng 1
    #
    return
    
  • Device B configuration file

    #
     sysname DeviceB
    #
    interface GigabitEthernet0/1/1
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2::2/64
     ripng 1 enable
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::2/64
     ripng 1 enable
    #
    ripng 1
    #
    return
    
  • Device C configuration file

    #
     sysname DeviceC
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 address 2001:db8:2::3/64
     ripng 1 enable
    #
    interface GigabitEthernet0/1/1
     undo shutdown
     ipv6 address 2001:db8:3::1/64
     ripng 1 enable
    #
    ripng 1
    #
    return
    
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 17586

Downloads: 35

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