• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C低端以太网交换机 典型配置指导(V1.01)

38-DNS典型配置指导

本章节下载  (122.72 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/E/E328[E352]/Configure/Typical_Configuration_Example/E328[E352]_Typical_Configuration_Example(V1.01)/200808/614458_30005_0.htm

38-DNS典型配置指导


第1章  域名解析典型配置指导

1.1  静态域名解析典型配置指导

静态域名解析就是手工建立域名和IP地址之间的对应关系。当用户使用域名进行某些应用(如telnet应用)时,系统查找静态域名解析表,从中获取指定域名对应的IP地址。

1.1.1  组网图

图1-1 静态域名解析配置组网图

1.1.2  应用要求

交换机利用静态域名解析功能,实现通过主机名host.com访问IP地址为10.1.1.2的主机Host。

1.1.3  适用产品、版本

表1-1 配置适用的产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1510、Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release 2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1510、Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-C-SI系列

S3100-T-SI系列

Release 0011、Release 2102、Release 2107软件版本

全系列硬件版本

S3100-TP-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

(除S3100-52TP-SI)

S3100-52TP-SI

Release 2106、Release 2107软件版本

S3100-52TP-SI

S3100-52P

Release 1500、Release 1602软件版本

S3100-52P

S2126-EI

Release 2102、Release 2106、Release 2107软件版本

S2126-EI

S2000-EA系列

Release 2107软件版本

全系列硬件版本

E352&E328

Release 1510、Release 1602软件版本

E352&E328

E152

Release 1500、Release 1602软件版本

E152

E126

Release 0011、Release 2102、Release 2107软件版本

E126

E126A

Release 2104、Release 2107软件版本

E126A

 

1.1.4  配置过程和解释

# 配置主机名host.com对应的IP地址为10.1.1.2。

<Switch> system-view

[Switch] ip host host.com 10.1.1.2

# 执行ping host.com命令,Switch通过静态域名解析可以解析到host.com对应的IP地址为10.1.1.2。

[Switch] ping host.com

  PING host.com (10.1.1.2): 56  data bytes, press CTRL_C to break

    Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=127 time=3 ms

    Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=127 time=3 ms

    Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=127 time=2 ms

    Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=127 time=5 ms

    Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=127 time=3 ms

 

  --- host.com ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 2/3/5 ms

1.1.5  完整配置

#

 ip host host.com 10.1.1.2

#

1.2  动态域名解析典型配置指导

域名系统(DNS,Domain Name System)是一种用于TCP/IP应用程序的分布式数据库,提供域名与IP地址之间的转换。通过域名系统,用户进行某些应用时,可以直接使用便于记忆的、有意义的域名,由网络中的域名解析服务器解析为正确的IP地址。

1.2.1  组网图

图1-2 动态域名解析组网图

1.2.2  应用要求

l              交换机作为DNS客户端,使用动态域名解析功能,实现通过域名(host)访问IP地址为3.1.1.1/16的主机。

l              域名服务器的IP地址是2.1.1.2/16,配置域名后缀为com。

1.2.3  适用产品、版本

表1-2 配置适用的产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1510、Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release 2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1510、Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-52P

Release 1500、Release 1602软件版本

S3100-52P

S2000-EA系列

Release 2107软件版本

全系列硬件版本

E352&E328

Release 1510、Release 1602软件版本

E352&E328

E152

Release 1500、Release 1602软件版本

E152

E126A

Release 2104、Release 2107软件版本

E126A

 

1.2.4  配置过程和解释

# 启动动态域名解析功能。

<Switch> system-view

[Switch] dns resolve

# 配置域名服务器的IP地址为2.1.1.2。

[Switch] dns server 2.1.1.2

# 配置域名后缀com。

[Switch] dns domain com

在设备上执行ping host的命令,可以ping通主机,且对应的目的地址为3.1.1.1。

[Switch] ping host

 Trying DNS server (2.1.1.2)

  PING host.com (3.1.1.1): 56  data bytes, press CTRL_C to break

    Reply from 3.1.1.1: bytes=56 Sequence=1 ttl=125 time=4 ms

    Reply from 3.1.1.1: bytes=56 Sequence=2 ttl=125 time=4 ms

    Reply from 3.1.1.1: bytes=56 Sequence=3 ttl=125 time=4 ms

    Reply from 3.1.1.1: bytes=56 Sequence=4 ttl=125 time=4 ms

    Reply from 3.1.1.1: bytes=56 Sequence=5 ttl=125 time=5 ms

 

--- host.com ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 4/4/5 ms

1.2.5  完整配置

#

 dns resolve

 dns server 2.1.1.2

 dns domain com

#

1.2.6  配置注意事项

l              在开始配置之前,需要确认DNS server、交换机和Host之间的路由可达,各设备都已经配置完毕。

l              在DNS Server上已经有域名为host、IP地址为3.1.1.1/16的映射项,DNS Server工作正常。

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们