1. Make sure the network connection method is bridged To select Copy physical network connection status 2. Edit the network card file The last ifcfg-ens160 is my network card file. There are a lot of ways to find network card files on the Internet, so I won't go into details. Network card file content TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static # This was originally dhcp, changed to static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens160 UUID=76b80c19-2841-4df6-aa8d-e7bfef018320 DEVICE=ens160 ONBOOT=yes # The following is a new configuration IPADDR=192.168.0.111 # The first three segments of the ip address should be consistent with the host machine, and the fourth segment should be different from the host machine IP GATEWAY=192.168.0.1 # The gateway is the same as the host machine NETMASK=255.255.255.0 # The subnet mask is usually this DNS1=114.114.114.114 # DNS address. Some tutorials on the Internet say that you can leave it blank, but I can't leave it blank, and I don't need to change it. Just write this 3. Restart the network card
4. Possible problems The virtual machine may be able to ping the external network but cannot ping the host. This may be because Windows has a firewall turned on. Just go to the control panel and turn off the firewall. Summarize The above is the bridge static IP configuration method of Centos8 in VMware virtual machine introduced by the editor. I hope it will be helpful to everyone. Thank you very much for your support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: A simple method to deal with the tabBar at the bottom of WeChat applet blocking content
>>: Detailed explanation of long transaction examples in MySQL
Prepare the database (MySQL). If you already have...
1. Virtual environment virtualenv installation 1....
I have been quite free recently. I have been doin...
In this article we assume you already know the ba...
>>>>>Ubuntu installation and confi...
I came into contact with CSS a long time ago, but...
Table of contents 1. MySQL trigger creation: 1. M...
Sometimes you need to debug remotely in a server ...
1. Introduction Today a colleague asked me how to...
Joint Index The definition of the joint index in ...
The centos8 distribution is released through the ...
1. When designing a web page, determining the widt...
This article uses examples to illustrate the func...
What is MIME TYPE? 1. First, we need to understan...
The question is referenced from: https://www.zhih...