Virtual Machine VMware workstations network settings, vmwareworkstations

Source: Internet
Author: User

Virtual Machine VMware workstations network settings, vmwareworkstations

Generally, the problem that the VM cannot access the network can be solved as follows:

1. Enter the command ifconfig on the terminal. -- Check whether the eth0 interface has an IP address.

The eth0 interface has no IP address.

2. Enter cat/etc/sysconfig/network-scripts/ifcfg-eth0. -- View the configuration on the eth0 interface.

DNBOOT = yes

BOOTPROTO = dhcp. Check whether the IP address of the eth0 interface is obtained through DHCP (automatic.

If not, set the IP address of the operating system in your virtual machine to DHCP through Baidu query. Generally, set the IP address in the graphic interface.

3. Click the setting icon in the lower right corner of the VM:

Click Settings

Configure the Virtual Machine network status and click OK.

4. Right-click my computer --> properties --> control panel --> network and sharing center --> change the adapter settings:

Right-click the icon above --> properties:

Double-click icon:

Configure the IP protocol as shown in, OK, and OK.

5. If the network in the virtual machine is still unavailable at this time:

Run the windows + R key to open the service, or open the Service under the cmd command line to check whether the service starts at the beginning of the VM, as shown in. The virtual machine does not automatically obtain the IP address because the DHCP service is disabled. Right-click to start.

After startup:

 

6. perform the following operations on the Virtual Machine terminal:

The network is configured successfully.

Dhclient: Open the DHCP client.

Service network restart: network restart.

Ping www.baidu.com: Check whether the network is accessible.

The error 1 above is because the current user has insufficient permissions and cannot use this command. You should switch to the root user.

 

Related Article

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.