1. Introduction 1. NAT mode (VMnet8) can realize network communication between virtual machines, between virtual machines and hosts, and between virtual machines and the outside world; 2. Configuration steps 1. Turn off the host's firewall (it seems that it is not necessary to turn it off) 2. Turn off the virtual machine's firewall and switch to root user. Enter the following command Systemctl stop firewalld service closes the firewall command In the previous method, once the operating system is restarted, the firewall will be automatically turned on. Should I execute the following command to set it to permanently turn off the firewall? Enter the command: systemctl disable firewalld.service , disable the firewall server at startup 4. Check the host IP information and record it, open the CMD window, and enter the following command ipconfig -all 5. Host settings for VMnet8 virtual network card network sharing 6. Check the default configuration of the virtual machine NAT mode (record the IP segment, subnet mask, and gateway for use in the next configuration) 7. Configure the virtual machine network card information: switch to the root user, enter the following command, enter the VI editor, and save the configuration. Note: The IP address, subnet mask, and gateway information come from the default configuration of the virtual machine's NAT mode, and the DNS comes from the host's preferred DNS vi /etc/sysconfig/network-scripts/ifcfg-eth0 **Problem:** There is no ifcfg-eth0 file. Modify the content of ifcfg-eth0: (after modification) service network restart Restart the network Check ifconfig, but there is no such command. Solution: Run yum search ifconfig to check which tool package the command is in. However, it displays the message: cannot find a valid baseurl repo. Then check whether the ONBOOT option in ifcfg-eth0 is yes and the location is locked in: /etc/yum.repos.d/. Use the ls command to check whether there are the following repo files: Modify the file extension to make the file invalid, for example: Conclusion: The ifconfig problem was not solved in the end. CentOS 7 has abandoned this command and uses ip addr instead. 8. Configure the host VMnet8 network card information: the IP address segment and the virtual machine IP segment (192.168.119) can be the same, subnet mask: 255.255.255.0 9. The virtual machine pings the host **Problem:** The host cannot ping the virtual machine, probably because the virtual machine's firewall is not disabled This is the end of this article about the steps to configure VMnet8 network in VMware. For more relevant content about configuring VMnet8 in VMware, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: How to point the target link of a tag to iframe
This article introduces 4 methods to achieve mask...
Table of contents mysql master-slave replication ...
Table of contents 1. Communication between father...
This article example shares the specific code of ...
I have a server with multiple docker containers d...
Recently, when I was learning docker, I found tha...
Table of contents What is the rest operator? How ...
yum quick install mysql Add yum repository rpm -U...
Table of contents Business Logic Data table struc...
Table of contents Ref and Reactive Ref Reactive T...
Preface Ordinary users define crontab scheduled t...
Case 1: Last submission and no push Execute the f...
Table of contents Method 1: set: It is not a data...
Table of contents 1. async 2. await: 3. Comprehen...
Introduction to Flex Layout Flex in English means...