Figure 4-1 Network diagram
Loopback0
4.1.1.1/32
Loopback0
4.1.1.2/32
Eth1/0/0
1.1.1.2/16
1.1.1.1/16
2.1.1.1/16
2.1.1.2/16
3.1.1.1/16
RouterA
RouterB RouterC
huawei.com
2.1.1.3/16
DNS Server
3.1.1.2/16
DNS Client
Eth2/0/0 Eth2/0/0
Eth1/0/0
Configuration Roadmap
The configuration roadmap is as follows:
1. Create static DNS entries.
2. Enable DNS resolution.
3. Configure an IP address for the DNS server.
4. Configure a domain name suffix.
5. Configure OSPF.
Data Preparation
To complete the configuration, you need the following data:
l Number and IP address of the interface connecting RouterA and RouterB.
l Domain names of RouterB and RouterC.
l IP address of the DNS server.
l Domain name suffix.
Procedure
Step 1 Configure RouterA.
# Configure an IP address for Eth1/0/0.
<Huawei> system-view
[Huawei] sysname RouterA
[RouterA] interface Ethernet 1/0/0
[RouterA-Ethernet1/0/0] ip address 1.1.1.2 255.255.0.0
[RouterA-Ethernet1/0/0] quit
# Configure OSPF.
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 1.1.0.0 0.0.255.255
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service 4 DNS Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
95