思科模拟器配置 DNS 服务器,将 example.edu 域名解析到 authority.example.edu 和 server.example.edu 的 IP 地址。
时间: 2024-02-13 09:05:37 浏览: 50
好的,以下是在思科模拟器上配置 DNS 服务器并将 example.edu 域名解析到 authority.example.edu 和 server.example.edu 的 IP 地址的步骤:
1. 进入全局配置模式:
```
configure terminal
```
2. 配置 DNS 服务器:
```
ip dns server
```
3. 配置 DNS 域名:
```
ip domain-name example.edu
```
4. 配置 DNS 解析记录:
```
ip host authority.example.edu 192.168.1.1
ip host server.example.edu 192.168.1.2
```
5. 保存配置:
```
end
copy running-config startup-config
```
这样,当主机请求解析 example.edu 域名时,DNS 服务器将返回 authority.example.edu 和 server.example.edu 的 IP 地址。
相关问题
展示思科模拟器上的拓扑图网络共划分为 5 个网段,共设置 3 台 DNS 服务器,1 台 Web 服务器。 example.edu 域由学校的 authority.example.edu 服务器负责解析,学校 WWW 站点对外域 名为 www.example.edu,其有一个别名 server.example.edu。外部主机 PC1 想请求域名解 析,需先请求本地 DNS 服务器,再请求根域名服务器,注意观察实验过程。其 IP 地址 规划如下表所示。 设备名称 端口 IP 地址 网关 备注 路由器 School Fa0/0 10.0.0.1/24 Se0/0/0(DCE) 10.1.0.1/24 需配置时钟频率 路由器 Internet Fa0/0 10.2.0.1/24 Se0/0/0 10.1.0.2/24 Se0/0/1(DCE) 10.3.0.1/24 需配置时钟频率 路由器 Example Se0/0/0 10.3.0.2/24 Fa0/0 10.4.0.1/24 PC1 Fa0 10.0.0.2/24 10.0.0.1/24 Local DNS Server Fa0 10.0.0.3/24 10.0.0.1/24 Root DNS Server. Fa0 10.2.0.2/24 10.2.0.1/24 authority.example.edu Fa0 10.4.0.2/24 10.4.0.1/24 server.example.edu Fa0 10.4.0.3/24 10.4.0.1/24 2. 合理配置路由,并由 PC1 分别 ping 通 4 台服务器。
要实现 PC1 分别 ping 通 4 台服务器,需要进行以下操作:
1. 配置路由器间的静态路由
在路由器 School 上,配置静态路由,将 10.3.0.0/24 网段的流量转发到 10.1.0.2。
```
School(config)#ip route 10.3.0.0 255.255.255.0 10.1.0.2
```
在路由器 Example 上,配置静态路由,将 10.0.0.0/24 和 10.2.0.0/24 网段的流量转发到 10.3.0.1。
```
Example(config)#ip route 10.0.0.0 255.255.255.0 10.3.0.1
Example(config)#ip route 10.2.0.0 255.255.255.0 10.3.0.1
```
在路由器 Internet 上,配置静态路由,将 10.0.0.0/24 和 10.4.0.0/24 网段的流量转发到 10.3.0.2。
```
Internet(config)#ip route 10.0.0.0 255.255.255.0 10.3.0.2
Internet(config)#ip route 10.4.0.0 255.255.255.0 10.3.0.2
```
2. 配置 DNS 服务器
在 Local DNS Server 上,配置 DNS 服务器,将 example.edu 域名解析到 authority.example.edu 和 server.example.edu 的 IP 地址。
```
Local DNS Server(config)#ip dns server
Local DNS Server(config)#ip domain name example.edu
Local DNS Server(config)#ip host authority.example.edu 10.4.0.2
Local DNS Server(config)#ip host server.example.edu 10.4.0.3
```
在 Root DNS Server 上,配置 DNS 服务器,将 example.edu 域名解析到 Local DNS Server 的 IP 地址。
```
Root DNS Server(config)#ip dns server
Root DNS Server(config)#ip domain name edu
Root DNS Server(config)#ip domain-lookup
Root DNS Server(config)#ip name-server 10.0.0.3
```
3. 测试连接
现在,PC1 可以通过 Local DNS Server 解析 example.edu 域名,并访问学校的 WWW 站点和 Web 服务器。在 PC1 上,执行以下命令进行测试:
```
PC1>ping www.example.edu
PC1>ping server.example.edu
PC1>ping 10.4.0.2
PC1>ping 10.4.0.3
```
如果所有的 ping 测试都通过,说明 PC1 已经成功连接了 4 台服务器。
1. 布置拓扑,展示拓扑图。 要求:网络共划分为 5 个网段,共设置 3 台 DNS 服务器,1 台 Web 服务器。 example.edu 域由学校的 authority.example.edu服务器负责解析,学校 WWW站点对外域 名为 www.example.edu,其有一个别名 server.example.edu。外部主机 PC1想请求域名解 析,需先请求本地 DNS服务器,再请求根域名服务器,注意观察实验过程。其 IP地址 规划如下表所示。 设备名称 端口 IP地址 网关 备注 路由器 School Fa0/0 10.0.0.1/24 Se0/0/0(DCE) 10.1.0.1/24 需配置时钟频率 路由器 Internet Fa0/0 10.2.0.1/24 Se0/0/0 10.1.0.2/24 Se0/0/1(DCE) 10.3.0.1/24 需配置时钟频率 路由器 Example Se0/0/0 10.3.0.2/24 Fa0/0 10.4.0.1/24 PC1 Fa0 10.0.0.2/24 10.0.0.1/24 Local DNS Server Fa0 10.0.0.3/24 10.0.0.1/24 Root DNS Server. Fa0 10.2.0.2/24 10.2.0.1/24 authority.example.edu Fa0 10.4.0.2/24 10.4.0.1/24 server.example.edu Fa0 10.4.0.3/24 10.4.0.1/24
好的,以下是该网络的拓扑图:
```
+-----------------------+
| School Router |
| (10.0.0.1) |
| Fa0/0 |
+-----------+-----------+
|
|
|
|
|
|
+-------------------+---------------------+
| | |
+----------+---------+ +-------+--------+ +---------+-------+
| Local DNS Server | | Root DNS Server | | authority.example |
| (10.0.0.3) | | (10.2.0.2) | | (10.4.0.2) |
| Fa0 | | Fa0 | | Fa0 |
+----------+---------+ +-------+--------+ +---------+-------+
| | |
| | |
| | |
+----------+---------+ +-------+--------+
| PC1 | | server.example |
| (10.0.0.2) | | (10.4.0.3) |
| Fa0 | | Fa0 |
+-------------------+ +-----------------+
```
其中,School Router连接了本地网络10.0.0.0/24和Internet网络10.1.0.0/24,Root DNS Server连接了Internet网络10.2.0.0/24和authority.example.edu网络10.4.0.0/24,authority.example.edu网络中的server.example.edu则连接了authority.example.edu网络10.4.0.0/24和PC1所在的本地网络10.0.0.0/24。本地DNS服务器连接了PC1所在的本地网络10.0.0.0/24。
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)