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.