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.


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 Static DNS Client

Example for Configuring Static DNS Client

This section describes how to configure static DNS.

Networking Requirements

As shown in Figure 6-2, Device A frequently uses the domain name "" to visit the host. To improve the efficiency of domain name resolution, you can establish a static mapping between the host name "" and IP address in the static domain name resolution table of Device A.

Figure 6-2 Configuring static DNS

Configuration Roadmap

The configuration roadmap is as follows:

  • Establish a static mapping between the host name "" and IP address on Device A.

Data Preparation

To complete the configuration, you need the following data:

  • IP addresses of Device A and the host

  • Domain name of the host


  1. Configure a static mapping between the host name "" and IP address

    <HUAWEI> system-view
    [~HUAWEI]sysname DeviceA
    [~DeviceA] ip host
    [*DeviceA] commit

  2. Verify the configuration.

    # Run the ping command on Device A. The host can be pinged. The destination IP address for the ping operation is
    <DeviceA> ping
      ping ( data bytes, press CTRL_C to break
         Reply from bytes=56 Sequence=1 ttl=128 time=1 ms
         Reply from bytes=56 Sequence=2 ttl=128 time=4 ms
         Reply from bytes=56 Sequence=3 ttl=128 time=3 ms
         Reply from bytes=56 Sequence=4 ttl=128 time=2 ms
         Reply from bytes=56 Sequence=5 ttl=128 time=3 ms
        --- ping statistics ---
         5 packet(s) transmitted
         5 packet(s) received
         0.00% packet loss
         round-trip min/avg/max = 1/2/4 ms
    # Run the display ip host command on Device A to check static DNS entry information, including mappings between domain names and IP addresses.
    <DeviceA> display ip host
    Host          Age       Flags           Address
    Host            0         static

Configuration Files

  • Configuration file of Device A

     sysname DeviceA
     ip host Host
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 15184

Downloads: 33

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