In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First, the experimental environment:
GNS3 topology: a layer 3 switch, a layer 2 switch, a router, a CentOS 7 virtual server providing DHCP+DNS services, a Server 2016 virtual server providing WEB services, and two Windows 10 virtual clients.
Second, the purpose of the experiment:
1) sw2 is a layer 2 switch, with three vlan,f1/1-3 of vlan10,vlan20,vlan100 as the access link and f1ap0 as the trunk link.
2) sw1 is a layer 3 switch, which provides gateways for three vlan, namely vlan10:192.168.10.1/24, vlan20:192.168.20.1/24 and vlan100:192.168.100.1/24. The public network interface is f1Uniplex 12.0.0.1Unix 24.
3) the Linux server within the local area network sets up the dhcp service function to provide addresses and address ranges 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
The PC1 host always gets the address of 192.168.10.18 Universe 24.
4) the local area network Linux server sets up the 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) there is a WEB server built by server2016 in the public network, and the 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) realize the final interworking of the whole network, and the function access is sound.
Third, the experimental process:
1. Use yum to install the dhcp package on the CentOS 7 server.
2. Use yum to install the bind package of DNS service.
3. After the download and installation, turn off the DNCP function of the virtual machine and change the CentOS 7 server network connection mode to a custom mode and bind the VMnet8 network card according to the requirements of the topology diagram.
4. Change the network connection mode of two clients and Server 2016 server to host-only mode, and assign network cards VMnet1, 2, 3 respectively.
Double-click the switch icon in GNS3 to enter the configuration. First execute "conf t" to enter the global mode, then create three vlan10,20100 vlan;, and then set port F1 _ prime _ 1 _ 2 _ 3 as the access link and put it into the vlan10,20100; then set the port _ 0 as the trunk link and encapsulate the 802.1q protocol. Finally, turn off the routing function.
6. Double-click the three-layer slow down and icon to enter the configuration. Execute the "conf t" command to enter global mode, set port f1max 0 as the trunk link and encapsulate the 802.1q protocol; create three vlan for vlan10,20100.
7. Continue to enter vlan10, configure IP address, subnet mask and IP address of DHCP relay service segment in 20100, and enable port service.
8. Then go to port F1 to convert layer 2 interface to layer 3 interface, configure gateway IP address and subnet mask, turn on full duplex mode at 100% rate, and specify default route entry.
Double-click the router icon to enter the configuration. Configure the IP address subnet mask for ports f0gam0 and f0ap1, respectively, and turn on the port service, and then specify a static route entry.
10. Go back to our CentOS 7 server and execute the "vim / etc/sysconfig/network-scripts/ifcfg-ens33" command to enter the network card configuration file.
Change "DHCP" to "static" in the configuration file, and set the static IP address, subnet mask and gateway.
12. After the configuration is completed, execute the "service network restart" command to restart the network service, and then execute the "ifconfig" command to see that the set IP address has been bound to the network card.
Execute the cp command to copy the dhcp configuration template file from the usr command and modify it as a service configuration file.
Execute the "vim / etc/dhcp/dhcpd.conf" command to enter the configuration file.
15. First specify the IP address of the DNS server in the "option" paragraph at the beginning of the file.
16. Add the DHCP relay service segment, subnet mask, IP address assignment service and gateway information in the "subnet" paragraph.
Let's go to client 1, open the cmd command prompt and execute the "ipconfig / all" command to view and get its physical address.
18. Add the physical address of client No.1 in the "fixed" section of the configuration file and change the original format from "-" to ":", and then specify the ip address to be assigned.
19. Go to client No. 1 to check the specified address obtained.
20. Go back to the server and execute the "vim / etc/namedd.conf" command to enter the main configuration file of DNS.
Change the listening address to all "any" addresses in the configuration file, and authorize all access.
22. Execute "vim / etc/named.rfc1912.zones" to enter the zone configuration file.
23. Specify the domain name to be resolved and its data configuration file in the zone configuration file.
24. Execute the "cd / var/named" command to enter the directory and retain the permission of the copy template file as the kgc area data configuration file.
25. Add hostname resolution entry and pan-domain name resolution entry to the kgc zone data configuration file and save exit by "wq".
26. Execute the cp command to directly copy the above newly configured file and rename it to yun.
Turn off the firewall and enhanced security features, and then turn on the domain name resolution service.
28. Execute the "nslookup www.kgc.com" command in the client to get the parsed IP address.
29. Finally, open the Server 2016 server and configure the IP address, subnet mask and gateway.
30. Open the server manager in the start menu and choose to add and install the web server (IIS) function.
31. After installation, open IIS Manager and add yun site and kgc site.
32. We can use the browser of any client to access the established site.
33. Finally, we can use any virtual machine to execute ping commands to verify network-wide interoperability.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.