Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Construction of DHCP+DNS+WEB three-in-one Micro Architecture

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Windows server

The Windows Server operating system used in this experiment is Microsoft Windows Server System (WSS), which was launched on April 24, 2003. Each Windows Server corresponds to its home (workstation) version (except 2003 R2).

DHCP service

DHCP is a network protocol for a local area network. A range of IP addresses controlled by the server. When a client logs on to the server, it automatically obtains the IP address and subnet mask assigned by the server. First, the DHCP server must be a computer with Windows 2000 Server/Advanced Server installed; second, the computer acting as the DHCP server needs to install TCP/IP protocol and set up static IP address, subnet mask, default gateway, etc. for it.

DNS service

DNS (Domain Name Server) is a server that converts domain names and corresponding IP addresses. DNS stores a table of domain names and corresponding IP addresses to resolve the domain names of messages.

WEB service

Web server generally refers to the website server, refers to a certain type of computer program residing on the Internet, can provide documents to Web clients such as browsers, can also place website files, so that the world browses; can place data files, so that the world downloads. The three most popular Web servers are Apache, Nginx and IIS. The Web server used in this lab is IIS.

objective

DNS, DHCP and WEB services are constructed on different server hosts respectively, and they can be interconnected. At the same time, third-party clients can be allowed to access the website.

prepared in advance

1. Three virtual machines, two installed with Server 2016 as servers and one as a client;

2. The three virtual machines must be kept in "host-only mode" and the firewalls of the three virtual machines must be turned off.

1. Construct DHCP, DNS service and WEB service on two servers (1) Complete the architecture of DHCP and DNS service on server 1 (Server 2016-1)

Select Sever2016-1 in VM14, as shown in the figure:

Enter Server Manager through the Start menu and click Add Roles and Functions to add DNS and DHCP services, as shown in the figure below:

In the Add Role and Function Wizard, first select DHCP Server and click Next in the open secondary menu, then select DNS Server and click Next to enter the Select Function page (because we do not need other functions here, we can directly click Next). Click Next until the installation is completed. The installation steps are as follows:

After installation, select "Network and Internet" in Windws settings to change adapter settings and set fixed ip for the server, as shown in the figure:

Go to DHCP Manager via Start Menu, right-click IPV4, select "New Scope"

Enter DHCP name, IP address range assigned and DNS server IP set in turn. Other settings may not be filled in because they are not required in this experiment, as shown in the figure:

This completes DHCP setup on Sever1.

(2) Complete the architecture of WEB service on server 2 (Sever2016-2)

Open the second server (Sever2016-2) and install the WEB service in the same way, as shown in the figure.

In order to access different websites through different IPs, select Sever2016-2, right-click and select Settings to add a second virtual network card, and also set it to host-only mode.

After adding the second virtual network card, enter "cmd" and then "ipconfig" in the search bar to query the ip of the current two network cards.

Then through the Start menu, enter IIS Manager for Web site management

Enter IIS Manager, right-click "Website" in the drop-down menu, click Add Website, and create a second website.

Then select the first website that comes with it, and select Binding in the menu bar on the right to bind the first website to another NIC.

Then open the file manager to find the folder where the two websites are located, and create two web pages.

After completing the establishment of the web page, return to Sever2016-1, enter the DNS manager through the Start menu, and set the DNS server, as shown in the figure below:

Right-click Forward Search Region and select New Region

Set the first DNS server as the primary zone, then set the zone name, and finally click Next until the setup is complete

After the main area is set, right-click and select the first host in the new area

Because DNS obtains the IP of the website by resolving the URL, the IP address here must be filled in the IP of the website. Click Add Host to complete the DNS settings.

Create a zone and host for the second page

At this point, all DHCP, DNS, and Web services are architected on both servers.

2. Verify interoperability with the client, and successfully resolve the domain names of the two web pages through the client.

Open Win10 client, enter "cmd" in search bar to enter command prompt as shown in figure:

Enter "ipconfig/renew" in the command prompt to retrieve the ip address. The ip address obtained is in the address pool.

Enter "ping 192.168.200.150" to send a packet to the ip where the DHCP server is located. The result is as shown in the figure:

Finally, enter "nslookup www.first.com" and "nslookup www.second.com" to use the domain name resolution tool to resolve the domain name. The ip obtained is consistent with the DNS settings. It can be seen that DHCP and DNS server architecture is successful and can communicate with clients.

Three, three different ways to build a WEB service virtual host (1) different IP access

Enter the client and enter "192.168.200.22" and "192.168.200.23" in the browser respectively.

(2) Same IP, different ports, access

Enter Server 2016-2 to open IIS Manager and select Bindings. Bind two websites to different ports under the same ip

Go back to the client and enter "192.168.200.22" and "192.168.200.22:100" respectively in the browser.

(3) Same IP, same port, different hostname

At the same time, in order to access the hostname smoothly, enter Sever2016-1 and open DNS Manager. Change the host ip address corresponding to" www.second.com"

Finally, enter the client and enter the corresponding URL in the browser.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report