The reason why the host in VMware can communicate with the virtual machine centos7.6, but the virtual machine cannot communicate with the host

I have used all kinds of tricks

for example

1 Edit the gateway and Ip in NAT mode, etc.

 2 Configure virtual machine IP and DNS

3 Change the firewall inbound and outbound rules

 

4 Turn off the virtual machine firewall

systemctl stop firewalld.service
systemctl disable firewalld.service 

4 Change configuration 

ifcfg-ens33

cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33

change network

vi /etc/sysconfig/network
添加 NETWORKING=yes 

Restart the network, etc.

service network restart

The above methods are useless

See how I set the world with one foot

Instead of NAT mode, change to bridge mode

 

The host and virtual machine can ping each other

Guess you like

Origin blog.csdn.net/m0_37137902/article/details/129929325
Recommended