Configuring the Linux IP address in VMware solves the problem of Linux ping failure. After VMware8.0 is installed, all VMware services are set to manual, which leads to poor functions and requires a long time, www.2cto.com if you select DHCP to automatically assign IP addresses when installing Linux, you need to start the service: VMware DHCP service,
Manual IP configuration does not need to start this service because I only have one IP address that can access the public Network in the LAN, So I select the NAT method, which uses the VMware Network Adapter VMnet8 Nic IP Address: 192.168.198.1 subnet mask: 255.255.255.0 Gateway: you do not need to select the NAT mode. You need to start the service: VMware NAT service (only enable this service). If you do not start this service, you can ping the Linux virtual machine from the host, however, the host cannot be pinged from the Linux virtual machine,
Linux virtual machines cannot access the Internet either. For Linux, run the "ifconfig" command to view IP addresses. If the command is not familiar, you can configure the IP system through the interface --> Manage --> edit the network eth0 address: 192.168.198.3 (. 2 is the gateway, which must be in the same network segment as VMnet8) subnet mask: 255.255.255.0 Gateway: 192.168.198.2 www.2cto.com the command for restarting the network service: service network startservice network stopservice network restart VM gateway, you can edit the --> Virtual Network editor --> NAT settings to view the Host IP Address: 192.168.0.15 (your own lan ip address). You can ping the Linux virtual machine from the host, from the Linux virtual machine can ping the host, the Linux virtual machine can also be connected to the Internet, www.2cto.com highlights: 1. both the host and virtual machine do not need to shut down the firewall, but can ping each other. 2. virtual Machine Public Network, no need to share network connection with the host!