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 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 "host.com" to visit the host. To improve the efficiency of domain name resolution, you can establish a static mapping between the host name "host.com" and IP address 10.100.1.2 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 "host.com" and IP address 10.100.1.2 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

Procedure

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

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

  2. Verify the configuration.

    # Run the ping host.com command on Device A. The host can be pinged. The destination IP address for the ping operation is 10.100.1.2.
    <DeviceA> ping host.com
      ping host.com (10.100.1.2):56 data bytes, press CTRL_C to break
         Reply from 10.100.1.2: bytes=56 Sequence=1 ttl=128 time=1 ms
         Reply from 10.100.1.2: bytes=56 Sequence=2 ttl=128 time=4 ms
         Reply from 10.100.1.2: bytes=56 Sequence=3 ttl=128 time=3 ms
         Reply from 10.100.1.2: bytes=56 Sequence=4 ttl=128 time=2 ms
         Reply from 10.100.1.2: bytes=56 Sequence=5 ttl=128 time=3 ms
    
        --- host.com 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          10.100.1.2
    

Configuration Files

  • Configuration file of Device A

    #
     sysname DeviceA
    #
     ip host Host 10.100.1.2
    #
    return
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 15184

Downloads: 33

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