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
Table of contents Introduction Create a Next.js p...
This article shares the specific code of Vue usin...
When I was in the securities company, because the ...
Recently, when I was writing web pages with PHP, I...
Click here to return to the 123WORDPRESS.COM HTML ...
This article shares the MySQL Workbench installat...
Download Download address: https://dev.mysql.com/...
I recently made a file system and found that ther...
This command modifies the data table ff_vod and a...
# Installation daemon configuration for Redis on ...
When using CSS pseudo-elements to control element...
Preface: Docker port mapping is often done by map...
The most understandable explanation of the accura...
1. Download the MySQL 5.7.11 zip installation pac...
Table of contents Preface MySQL master-slave repl...