Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

.Linux Centos7 a comprehensive experimental (DNS + DHCP + WEB)

1. Experimental Equipment required: two clients, a switcher, a three switches, as a Centos7 dhcp and dns server, a router, a web server (sever2016)

2. Purpose

1.sw2 is switcher, there vlan10, vlan20 respectively, three VLANs 100 vlan, f1 / 1-3 is an access link,
F1 / 0 for the relay link.
2.sw1 of three switches, gateways are provided for the three vlan, vlan10: 192.168.10.1/24,vlan20: 192.168.20.1/24,vlan100: 192.168.100.1/24, external network interface f1 / 1: 12.0. 0.1 / 24
3. Linux servers set up internal LAN dhcp service functions vlan10, vlan20 and vlan100 provide an address, the address of
192.168.10.100 ~ 192.168.10.200 Subnet Mask:: vlan10 255.255.255.0 gateway 192.168.10.1/24
vlan20: 192.168 .20.100 ~ 192.168.20.200 Subnet Mask: 255.255.255.0 gateway 192.168.20.1/24
Vlan100: ~ 192.168.100.200 192.168.100.100 Subnet Mask: 255.255.255.0 gateway 192.168.100.1/24
dns server address is: 192.168. 100.100 / 24
wherein the host PC1 fixed address obtained 192.168.10.18/24
4. Linux servers built inside a local area network services DNS parsing and www.yun.com www.kgc.com
resolve external network address 14.0.0.14/24 WEB server, providing pan-domain name resolution to resolve the address to 8.8.8.8
5. WEB server outside the network has built a server2016, the establishment of a virtual machine host offers two websites, namely www.kgc.com and www.yun.com, custom Home coded display content
6. whole network interworking

Figure 3. Experiment

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

1.Centos7 install two packages

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)
Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

2. only the host mode set to

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

3. Give us the card device binding

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)
Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

4. GNS3 configuration of a switcher sw2 ## .Linux Centos7 comprehensive experiment

4.1 Configuring trunk link

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

The configuration of the three switches sw1 GNS3

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

5.1 to vlan configure virtual Web site

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

5.2 made vlan relay

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

5.3 Interface Layer into two interface input rate and duplex mode

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

5.4 Configuring the default route, check the routing table

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

5.5 Configuring Static Routes

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

6. A fixed IP address

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

7. Restart network services, see the website

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

8. Copy the template to the master configuration file

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

9. Configure the server to resolve addresses in the main configuration file, and the content of our web services

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

10. A copy down our win10-1 mac address

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

1 Fill to the main configuration file.

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

12. restart the dhcp service

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

13. The client to try to get the address can not be

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

14. We start parsing configuration dns server

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

15. Configure area Profile

vim /etc/named.rfc1912.zones

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

16. The configuration data area Profile

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

17. Turn off the firewall, enhanced functions, open service

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

18. We try to resolve addresses can not succeed

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

19. Let's build WEB site

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)
Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)
Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

20. We can not try to communicate the whole network

Linux Centos7 comprehensive experimental (DNS + DHCP + WEB)

Guess you like

Origin blog.51cto.com/14449524/2435941