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

Set up a DHCP+DNS server in Linux and simulate access to the web server

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

Share

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

This blog mainly introduces a small experiment in the following figure. To explain this experiment, the middle Linux server provides DHCP and DHS services, then simulates the external network to build a web service, and then the lower Windowsxp and Windows--7 clients can access the web service built by Windows 10.

The client Windows xp and Windows-7 get the network segment addresses of 10 and 20 provided by vlan30's Linux, respectively, and then access two websites with different domain names of 14.0.0.14, the web server, through the layer 3 switching routing function.

According to the topology diagram, we first set up layer 2 switching and layer 3 switching, and the first is layer 2 switching.

Next is the setting of layer 3 switching.

The next step is to set up the router that connects to the web service.

Get the IP address on the client Windows xp, and you have obtained the IP address of the 10 segment of 192.168.10.2.

Then 20 URL segments of 192.168.20.2 were obtained on the client Windows-7.

The function of using nslookup to detect domain name resolution has been successfully realized.

Next, configure the web server Windows 10 with a fixed IP address.

Use the ping command to detect whether the target web service can be connected or not.

Build a site with two websites on the Windows 10web service.

Then add the Web service function to the program options in the control panel.

Add a new website with a binding IP of 14.0.0.14 and a binding host name of www.abc.com.

Add website binding 14.0.0.14IP address, bind www123.com hostname.

Then add some content to the site.

Then use the client Windows xp and Windows-7 to visit the two websites, both of which have successfully accessed the site.

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: 220

*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