VMware Network Adapter VMnet1 and VMnet8 unrecognized network issues

The network type used when installing the virtual machine was not in NAT mode, but I could not ping the external network, and the connection response using Xshell was very slow. So after I inquired about the problem for a long time, the problem was solved, as follows:

When using NAT network mode, you need to perform the following configuration:

Step 1: Set the network segment of the virtual machine NAT mode

 Step 2: Edit the virtual machine's network card IP address, and then restart the network card service to make it take effect.

Edit network card instructions: vim /etc/sysconfig/network-scripts/ifcfg-ens33

DEVICE="ens33"
ONBOOT="yes"
IPADDR="192.168.88.129"
NETMASK="255.255.255.0"
PREFIX="24"
GATEWAY="192.168.88.2"
DNS1="192.168.10.1"
DNS2="8.8.8.8"

Exit and save the text command: Press the ESE key——>Enter colon (:)——>Enter wq——>Enter

Restart the network card command: service network restart

3. Edit the virtual network card address of the physical machine

 

 View the NAT gateway address:

Follow the above steps to implement NAT mode. If ping fails, turn off the firewall.

Guess you like

Origin blog.csdn.net/weixin_44740328/article/details/131930503