.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
1.Centos7 install two packages
2. only the host mode set to
3. Give us the card device binding
4. GNS3 configuration of a switcher sw2 ## .Linux Centos7 comprehensive experiment
4.1 Configuring trunk link
The configuration of the three switches sw1 GNS3
5.1 to vlan configure virtual Web site
5.2 made vlan relay
5.3 Interface Layer into two interface input rate and duplex mode
5.4 Configuring the default route, check the routing table
5.5 Configuring Static Routes
6. A fixed IP address
7. Restart network services, see the website
8. Copy the template to the master configuration file
9. Configure the server to resolve addresses in the main configuration file, and the content of our web services
10. A copy down our win10-1 mac address
1 Fill to the main configuration file.
12. restart the dhcp service
13. The client to try to get the address can not be
14. We start parsing configuration dns server
15. Configure area Profile
vim /etc/named.rfc1912.zones