This tutorial uses CentOS 7 64-bit. Allocate 2GB of memory and 20G of hard disk space to each virtual machine. Please allocate memory and hard disk space as needed. Use bridge mode for network connection. Start the virtual machine and use the dhclient tool to automatically assign an available IP address to the virtual machine (dhclient is a DHCP protocol client that uses the DHCP protocol or BOOTP protocol or uses static addresses to configure one or more network interfaces when both protocols are unavailable.). You can see that the IP address assigned to the virtual machine by the tool is 192.168.0.103. Fixed IP address: Edit the network configuration file vim /etc/sysconfig/network-scripts/ifcfg-ens33, change the value of BOOTPROTO from dhcp to static, indicating the use of static IP, and add the value of the field IPADDR at the end of the configuration file with the IP address obtained by executing the dhclient command just now, add the value of the subnet mask field NETMASK with 255.255.255.0, the value of the gateway GATWAY with the host gateway address, and add a DNS server value of 119.29.29.29 (Tencent DNS) Save and exit, restart the network card: systemctl restart network.service Repeat the above steps to configure other nodes. Use the SSH tool to test whether the host and nodes, nodes and nodes, and nodes and the external network can ping each other, and use the FTP tool to test whether files can be uploaded to the node server normally. Note: The network mode of the virtual machine is bridge mode: Bridge mode is to use the virtual bridge to communicate between the host network card and the virtual network card of the virtual machine. It is similar to virtualizing a physical host into a switch, so that they can access each other without interfering with each other. In bridge mode, the virtual machine's IP address needs to be in the same network segment as the host. If networking is required, the gateway and DNS need to be consistent with the host's network card. NAT (Address Translation Mode): In NAT mode, the host network card is directly connected to the virtual NAT device, and the virtual NAT device and virtual DHCP server are used to connect the virtual machine to the external network. Host-only mode: Host-only mode is actually NAT mode without the virtual NAT device, which separates the virtual machine from the external network, making the virtual machine an independent system that only communicates with the host. Summarize This is the end of this article about how to configure a multi-node environment with VMware. For more information about configuring a multi-node environment with VMware, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: VS2019 connects to mysql8.0 database tutorial with pictures and text
>>: JS+AJAX realizes the linkage of province, city and district drop-down lists
Table of contents Scenario Requirements glibc ver...
1. Deploy nginx service in container The centos:7...
Import the data exported from the Oracle database...
1. Uninstalling MySQL 5.7 1.1查看yum是否安裝過mysql cd y...
introduction In recent years, the call for TypeSc...
Table of contents 1. Software and system image 2....
1.MySQL multiple instances MySQL multi-instance m...
Table of contents Preface 👀 Start researching 🐱🏍...
In the previous sections, we discussed aspects of ...
It has been three or four months since I joined Wo...
1. Drop-down list example The code is as follows:...
Important data must be backed up, and must be bac...
Preface A reverse proxy is a server that receives...
Elasticsearch is very popular now, and many compa...
Preface Named slots are bound to elements using t...