DHCP + DNS + WEB triple micro-architecture build

Windows server

The experiment used a Windows server is Microsoft's server operating system in 2003, April 24 launch of Windows, which is the core of Microsoft Windows Server System (WSS), each with its Windows Server are home (workstation) version of the corresponding (2003 except R2).

DHCP Service

DHCP is the Dynamic Host Configuration Protocol service is a local area network protocol. Controlled by the server refers to the range of IP addresses, it can automatically obtain an IP address and subnet mask assigned by the server when the client logs server. First, DHCP server must be a computer with a Windows 2000 Server / Advanced Server system; Secondly, as the DHCP server computer to install TCP / IP protocol, and set a static IP address, subnet mask, default gateway, etc. content.

DNS service

DNS (Domain Name Server, Domain Name Server) is the domain name (domain name) and server with the corresponding IP address (IP address) conversion. DNS is saved in a domain name and an IP address corresponding thereto (IP address) of the table (domain name), the message to resolve the domain name. 

WEB Service

Web servers generally refers to the web server, refers to some type of computer program that resides on the Internet, can provide documents to end Web browser, customers can also place the website files, so that the world view; placing the data file, so that the whole Download the world. The three most mainstream Web server is Apache, Nginx, IIS. Web server used in this experiment for IIS.

purpose

On a different host server architecture are DNS, DHCP and WEB services, and enable the interconnection. At the same time, be able to allow third-party client to access the site.

Prepared

1, three virtual machines, install Sever2016 as two servers, one for the client;
2, three virtual machines is important to keep the "Host-only mode", and three virtual machines shut down firewall.

First, the architecture on both DHCP servers, DNS services and WEB services

(1) complete the DHCP and DNS services on the server side 1 (Sever2016-1) architecture

Select VM14 open Sever2016-1, as shown:
DHCP + DNS + WEB triple micro-architecture build
through the Start menu, enter the Server Manager, click on the "Add Roles and Features" add DNS, DHCP services, as:
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
the Add Roles and Features Wizard, first select the DHCP server and click Next to open in the secondary menu, and then select the same DNS server click Next, go to the select features page (because here we do not need other features it is possible to direct the next step) Continue to click Next until the installation is complete, install FIG step:
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
after installation is complete, select "network and the Internet" in the setting change Windws adapter settings, set a fixed ip for the server, as shown:
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build

Right-click IPV4, select "New Scope" from the Start menu to enter the DHCP Manager
DHCP + DNS + WEB triple micro-architecture build

DHCP sequentially input the name, assign ip address range, and adding the DNS server provided good ip, other settings as necessary, this experiment does not fill, specifically shown:
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
This completes the DHCP settings on server1.

(2) the completion of WEB services on the server side 2 (Sever2016-2) architecture

打开第二台服务器端(Sever2016-2),同理进行WEB服务的安装,如图
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
为了实现通过不同ip访问不同网站这一方式,选中Sever2016-2右击选择设置添加第二张虚拟网卡,同样设置为仅主机模式
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
添加完第二张虚拟网卡后,在搜索栏输入“cmd”接着输入“ipconfig”查询当前两张网卡的ip
DHCP + DNS + WEB triple micro-architecture build
接着通过开始菜单,进入IIS管理器进行Web网站的管理
DHCP + DNS + WEB triple micro-architecture build
进入IIS管理器,在下拉菜单中右键选取“网站”,点击添加网站,建立第二个网站
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
接着选中第一个自带的网站,在右边菜单栏中选择绑定,将第一个网站与另一块网卡进行绑定
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
接着打开文件管理器找到这两个网站所在文件夹,并建立两张网页。
完成网页的建立后,返回Sever2016-1中,通过开始菜单进入DNS管理器,进行DNS服务器的设置,具体如图:
DHCP + DNS + WEB triple micro-architecture build
右击“正向查找区域”选择新建区域
DHCP + DNS + WEB triple micro-architecture build
将第一个DNS服务器设置为主要区域,接下来设置区域名称,最后点击下一步直至设置完成
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
主要区域设置完成后接着右键点击选择新建该区域内的第一台主机
DHCP + DNS + WEB triple micro-architecture build
因为DNS通过解析网址来获取该网站的ip,因此这里的ip地址必须填构架该网站的ip,点击添加主机后完成DNS的设置
DHCP + DNS + WEB triple micro-architecture build

同理为第二个网页建立区域及主机
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
至此,在两台服务器上完成所有DHCP、DNS以及WEB服务的架构。

二、验证与客户机进行互通,并且通过客户机对这两个网页进行成功域名解析

Open the Win10 client in the search field, enter "cmd" into the command prompt as shown:
DHCP + DNS + WEB triple micro-architecture build
Enter "ipconfig / renew" in the command prompt retrieve ip address, ip address obtained in the address pool,
DHCP + DNS + WEB triple micro-architecture build
enter "ping 192.168.200.150" to ip ip i.e. where the DHCP server to send packets, as shown in the results:
DHCP + DNS + WEB triple micro-architecture build
last input "nslookup www.first.com", "nslookup www.second.com " tool use DNS resolves the domain name, the DNS obtained ip consistent set. It can be seen, DHCP and DNS server architecture and can successfully achieve interoperability with the client.
DHCP + DNS + WEB triple micro-architecture build

Third, the experimental set up WEB service virtual host three different ways

(1) different IP access

Enter the client, respectively, in the browser enter "192.168.200.22", "192.168.200.23"
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build

(2) the same IP, on multiple port access

Enter Sever2016-2 Open IIS Manager, select the binding. The two binding sites on the same ip at different ports
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
returned to the client, enter "192.168.200.22", "192.168.200.22:100" in the browser separately
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build

(3) the same ip, same port, different host name

DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build
At the same time in order to successfully accessed by the host name, enter Sever2016-1, open DNS Manager. The "www.second.com" corresponding host ip address changes
DHCP + DNS + WEB triple micro-architecture build
Finally, go to the client, enter the corresponding URL in your browser
DHCP + DNS + WEB triple micro-architecture build
DHCP + DNS + WEB triple micro-architecture build

Guess you like

Origin blog.51cto.com/14484404/2426807