设置 DHCP 和 DNS 服务器

设置 DHCP 和 DNS 服务器

这是我正在使用的拓扑:

在此处输入图片描述

我已经像这样配置了路由器:

Router_1_Mikrotik

ip address
add address=192.168.10.10/25 interface=ether1
add address=192.168.10.130/26 interface=ether2
add address=192.168.10.161/30 interface=ether4
ip route
add dst-address=192.168.10.224/27 gateway=192.168.10.162
------------------------------------------------------------
[admin@MikroTik] /ip dhcp-server> setup
Select interface to run DHCP server on

dhcp server interface: ether1
Select network for DHCP addresses

dhcp address space: 192.168.10.0/25
Select gateway for given network

gateway for dhcp network: 192.168.10.10
Select pool of ip addresses given out by DHCP server

addresses to give out: 192.168.10.1-192.168.10.9,192.168.10.11-192.168.10.126
Select DNS servers

dns servers: 192.168.10.227
Select lease time

lease time: 99999m
------------------------------------------------------------
[admin@MikroTik] /ip dhcp-server> setup
Select interface to run DHCP server on

dhcp server interface: ether2
Select network for DHCP addresses

dhcp address space: 192.168.10.128/26
Select gateway for given network

gateway for dhcp network: 192.168.10.130
Select pool of ip addresses given out by DHCP server

addresses to give out: 192.168.10.129,192.168.10.131-192.168.10.190
Select DNS servers

dns servers: 192.168.10.227
Select lease time

lease time: 99999m

Router_2_Cisco

interface FastEthernet0/0
ip address 192.168.10.162 255.255.255.252
no shutdown

interface Ethernet1/0
ip address 192.168.10.230 255.255.255.224
no shutdown

ip route 192.168.10.128 255.255.255.192 192.168.10.161
ip route 192.168.10.0   255.255.255.128 192.168.10.161

还有 3 个服务器:

DHCP
ip address
add address=192.168.10.225/27 interface=ether1
ip route
add gateway=192.168.10.230

WEB
ip address
add address=192.168.10.226/27 interface=ether1
ip route
add gateway=192.168.10.230
ip dns static 
add name=www.example.com address=10.1.1.1

DNS
ip address
add address=192.168.10.227/27 interface=ether1
ip route
add gateway=192.168.10.230

问题 1:

我使用DHCP自动Router_1_MikrotikVPC_LAN_A和分配 IP 地址VPC_LAN_B。这工作正常,因为 LANS 有 IP 地址,我可以从 LAN_A 和 LAN_B ping 到服务器。但它配置正确吗?

问题2:

我希望能够从 LANS 访问 www.company.com。我已Mikrotik_CHR_Web按上述方法配置,但我无法从服务器 ping 通该域?

相关内容