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

Comprehensive actual combat of DHCP and DNS

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

Share

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

Preface

The comprehensive experiment of DHCH relay service and DNS domain name resolution integrates DHCP relay service, DNS domain name resolution, layer 3 switching configuration and httpd installation and configuration.

1. Experimental environment

We need to use GNS3 and four virtual machines in this experiment. One centos 7 as the DHCP server and one centos 7 as the DNS and web servers. The other two Windows are used as clients.

2. Experimental topology diagram

The experimental procedure.

Configure the network cards of two Windows and two servers

Ensure that windows automatically acquires the IP address

Bind the network card to the host mode only

2. After configuring the network card, we go to GNS3 to configure DHCP service.

1. Configuration of layer 2 switch sw_2

Don't forget to turn off the routing function!

two。 Configuration of layer 3 switch sw

Don't forget to configure the default route from sw to ISP, with only one link

Ip route 0.0.0.0 0.0.0.0 11.0.0.2

3. Install DHCP service, modify dhcp configuration file

Installed on the dhcp service, yum install dhcp*-y

Modify the network card settings of the dhcp server and dns server

Check whether the IP address is configured successfully

The DHCP configuration is complete! Go to the client to check if the IP address is assigned!

4. Configure ISP public network

5. Configure the DNS_web server

Check whether the IP address of DNS is configured successfully

Modify the configuration file of the dns server

Get the IP address after setting "kgc.com" parsing

Check if port 53 is open

At this point, all the client and server configurations are complete!

Check whether the client has obtained the dns address

And successfully get the address, domain name resolution completed!

Open a browser to search for "kgc.com"

Success!

Summary

In the comprehensive experiment of DHCP and DNS, we should pay attention to a lot of details! Now think about the train of thought of the experiment clearly, as long as the train of thought is clear, there will be no problem. It is important to note that when you modify the configuration file, many configuration file directories and the modified format are in small details, but if something goes wrong, the experiment will not be successful, so we can take one step at a time and make sure that every step is correct. The experimental environment should also be configured to ensure that there is no problem before starting to do the experiment, the firewall can not forget to turn off!

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