Configure the Linux IP address in VMware to solve the Linux ping failure problem.

Source: Internet
Author: User


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!
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.