In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Deployment in a simulated environment:
Here we have learned about the use of GNS3 and CRT, and have also installed CentOS7 and Windows 10 in VMware. It is recommended that friends learn about it first.
1. GNS3-1.3.10-all-in-one,
2 、 CRT 8.0
3. CentOS 7 of VMware14
4. Windows 10 of VMware14
2. Relay service topology diagram:
1. Click the router icon on the left in GNS3, drag two routers to the work area, click the computer icon, and select HOST to drag three PCs to the work area.
2. Change the icon of the first router to a switch and rename it to "sw2", add a two-layer service veneer and set the disk space to 128Mib; then change the icon of another router to a three-layer switch and change its name to "sw2". Similarly, add a two-layer business veneer and set the disk space to 128Mib.
3. Rename a PC to DHCP and change its icon to a server.
4. Rename the other two PCs to win10-1 and win10-2.
5. Connect the devices and divide the vlan and gateway according to the figure below. The sw2 is connected with the f1sw2 0 of the sw2; the f1Accord 3 of the sw2 is connected with the VM8 of the DHCP; the f1Charger 1 of the sw2 is connected with the VM1 of win10-1; and the f1Accord 3 of the sw2 is connected with the VM2 of the win0-2.
Third, simulate the experimental process:
1. Execute the "yum install dhcp-y" command in CentOS 7 to download and install the DHCP service.
2. Open the virtual machine network editor after installation, set the VM8 network card of CentOS 7 and the network connection of two win 10 to host-only mode, and turn off the DHCP function.
3, go back to GNS3 to start configuration, first double-click on the configuration page of sw1 and enter "conf t" to enter global mode, then enter "vlan 10lad 20100" to create vlan, and finally execute the "do show vlan-sw b" command to view vlan information.
4. Put the f1amp 1 interface into the vlan10, the f1max 2 interface into the vlan20, and the f1max 3 interface into the vlan100. At last, the f1amp 0 is put into the trunk link and encapsulates the dot1q protocol, and then the routing function is turned off.
6. Double-click again to open the configuration page of sw2, and also enter the global mode. Interface f1max 0 is put into the trunk link and vlan10,20100 is created.
7. Configure the gateway IP address and subnet mask of vlan 10Det 20100.
8. Go back to CentOS 7 and execute the "vim / etc/sysconfig/network-scripts/ifcfg-ens33" command to enter the network card configuration to set the static route.
9. Execute the "systemctl restart network.service" command to restart the network service.
10. Execute the "cp/ usr/share/doc/dhcp-4.2.5/dhcpd.conf.example / etc/dhcp/dhcpd.conf" command to copy the DHCP file template to the etc directory, and then execute "vim / etc/dhcp/dhcpd.conf" to enter the configuration file.
11. Go back to GNS3 and start configuring DHCP relay service.
Sw2#conf t enters global mode
Sw2 (config) # int vlan 10 specifies the vlan 10 DHCP server address
Sw2 (config-if) # ip helper-address 192.168.100.100
Sw2 (config-if) # no shut
Sw2 (config-if) # ex
Sw2 (config) # int vlan 20 specifies the vlan 20 DHCP server address
Sw2 (config-if) # ip helper-address 192.168.100.100
Sw2 (config-if) # no shut
Sw2 (config-if) # ex
Sw2 (config) # int vlan 100 specifies the vlan 100 DHCP server address
Sw2 (config-if) # ip helper-address 192.168.100.100
Sw2 (config-if) # no shut
12. Open cmd in win10-1 and enter the "ipconfig" command to view the automatically obtained IP address.
13. Open cmd in win10-2 and enter the "ipconfig" command to view the automatically obtained IP address.
Interested friends can try to bind the client MAC address to specify the distributed IP address. Just go to the configuration file and add the client MAC address and fixed IP where the fix segment falls.
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.