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

Linux Centos7 Comprehensive experiment (DNS+DHCP+WEB)

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

Share

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

1. Linux Centos7 Comprehensive experiment (DNS+DHCP+WEB) 1. The equipment needed for the experiment: two clients, a layer 2 switch, a layer 3 switch, a Centos7 as a dhcp and dns server, a router, a web server (sever2016) 2. Experimental purpose

1.sw2 is a layer 2 switch with three vlan10,vlan20,vlan100 vlan,f1/1-3 access links.

F1ap0 is the trunk link.

2.sw1 is a layer 3 switch, which provides gateways for three vlan, vlan10:192.168.10.1/24, vlan20:192.168.20.1/24, vlan100:192.168.100.1/24, and the external network interface is f1Uniplex 12.0.0.1Unix 24.

3. Local area network internal Linux server sets up dhcp service function to provide address and address range for vlan10,vlan20 and vlan100

Vlan10:192.168.10.100~192.168.10.200 subnet mask: 255.255.255.0 gateway 192.168.10.1Univer 24

Vlan20:192.168.20.100~192.168.20.200 subnet mask: 255.255.255.0 gateway 192.168.20.1 Universe 24

Vlan100:192.168.100.100~192.168.100.200 subnet mask: 255.255.255.0 gateway 192.168.100.1 Universe 24

The address of the dns server is: 192.168.100.100Universe 24

In which the PC1 host always gets the 192.168.10.18 Universe 24 address.

4. Local area Network Linux Server sets up DNS Service function to analyze www.kgc.com and www.yun.com

The resolution address is 14.0.0.14amp 24 public network WEB server, while providing pan-domain name resolution function, the resolution address is 8.8.8.8

5. In the public network, there is a WEB server built by server2016, and a virtual machine host is established to provide two websites, namely www.kgc.com and www.yun.com, to customize the differential display of home page content.

6. Interworking of whole network

3. Experimental diagram

1.Centos7 installs two packages first

two。 Set to host-only mode

3. Bind a network card to our device

4. Configure layer 2 switch in GNS3 sw2## I. Linux Centos7 Comprehensive Lab 4.1 configure trunk Link

5. Configure layer 3 switch sw1 in GNS3

5.1 configure a virtual URL for vlan

5.2Relay vlan

5.3 replace layer 3 interface with layer 2 interface, input rate and full duplex mode

5.4 configure a default route and view the routing table

5.5 configure static rout

6. Configure fixed IP addr

7. Restart the network service and check the URL

8. Copy the template to the main configuration file

9. Configure the server to resolve the address in the main configuration file, and the content of our network service

10. Copy the mac address of our win10-1

1 fill in the main configuration file

twelve。 Restart the dhcp service

13. Go to the client to see if you can get the address

14. Let's start configuring the dns resolution server

15. Configure area profile

Vim / etc/named.rfc1912.zones

16. Configure the data area profile

17. Turn off firewalls, enhance features, and turn on services

18. Let's parse the address and see if it works.

19. Let's build the WEB website.

20. Let's try to see if the whole network can be interconnected.

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

*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