Recently, the virtual machine has been unable to surf the internet, since the upgrade to WIN10 after the network problems continue, the first is through the VMnet0 Bridge did not realize no virtual network card. Open "Network and Sharing Center" and Device Manager did not find VMnet0 figure, as shown in:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/84/31/wKioL1eIVLfQC2qfAAAyDH_4dtI128.png-wh_500x0-wm_3 -wmp_4-s_286058971.png "title=" 01.png "alt=" Wkiol1eivlfqc2qfaaaydh_4dti128.png-wh_50 "/>
So push and beg second use Hostonly mode and NAT hybrid Internet, Linux system first has hostonly mode and host connected, and then configure the network card, using the root user login system:
[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 nm_controlled= yes ipaddr=192.168.153.64 NETMASK=255.255.255.0 onboot=yes TYPE=Ethernet bootproto=none IPV6INIT=no USERCTL=no PREFIX=24 DEFROUTE=yes IPV4_FAILURE_FATAL=yes namE= "Eth0"
Copy the NIC file and do the following to note the modification options:
[Email protected] ~]# cp/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth1[[ Email protected] ~]# vim/etc/sysconfig/network-scripts/ifcfg-eth1device=eth1//Modify the device name to Eth1nm_controlled=yes on Boot=yes//Set boot YESTYPE=ETHERNETBOOTPROTO=DHCP/IP get mode dhcpipv6init=no userctl=noprefix=24 D Efroute=yesipv4_failure_fatal=yesname= "eth1" hwaddr=00:0c:29:e2:72:37//network card MAC address to match the corresponding network card. The NIC gets the method as shown in. Peerdns=yes
Get the NIC MAC address:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/84/31/wKiom1eIVE_Tbi7lAABYGGH8Ass818.png-wh_500x0-wm_3 -wmp_4-s_2922572939.png "title=" 02.png "alt=" Wkiom1eive_tbi7laabyggh8ass818.png-wh_50 "/>
At this point, the ping command verifies that the virtual machine can surf the Internet.
[[email protected] ~]# ping www.baidu.com -c 4PING www.a.shifen.com (111.13.100.91) 56 ( bytes of data.64 bytes) from 111.13.100.91: icmp_seq=1 ttl=128 time=48.0 ms64 bytes from 111.13.100.91: icmp_seq=2 ttl=128 time=65.5 ms64 bytes from 111.13.100.91: icmp_seq=3 ttl=128 time=59.6 ms64 bytes from 111.13.100.91: icmp_seq=4 ttl=128 time=58.2 ms--- www.a.shifen.com ping statistics - --4 packets transmitted, 4 received, 0% packet loss, time 3064msrtt min/avg/max/mdev = 48.010/57.868/65.562/6.320 ms verifies that the virtual machine is now available for Internet access. But inadvertently win10 the system for one of these updates. When the virtual machine is opened again at night, it is not possible to surf the internet, which makes it impossible for the package to install when the software is installed through Yum (the Linux system yum is the network yum source).
The inspection is indeed caused by a network failure. The culprit was found through multiple lookups. is due to the Vmnat service being shut down by the system. Its specific opening method is as follows;
The Run command is first opened in the host through the WIN+R key combination. Enter "Services.msc".
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/32/wKiom1eIVqqQ4jvHAABqHwM69lo174.png-wh_500x0-wm_3 -wmp_4-s_3453114366.png "title=" 03.png "alt=" Wkiom1eivqqq4jvhaabqhwm69lo174.png-wh_50 "/>
The service finds VMware DHCP service to turn it off and the VMware NAT Service is set to boot up. Restart the VMware DHCP service.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/84/31/wKioL1eIVvXQzD87AAA8uyr6BtM541.png-wh_500x0-wm_3 -wmp_4-s_3549239872.png "title=" 04.png "alt=" Wkiol1eivvxqzd87aaa8uyr6btm541.png-wh_50 "/>
At this time
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/84/31/wKioL1eIV4nDstjNAABM22i5blk280.png-wh_500x0-wm_3 -wmp_4-s_2120294715.png "title=" 05.png "alt=" Wkiol1eiv4ndstjnaabm22i5blk280.png-wh_50 "/>
At this time when the system is turned on again when the service will start normally, the virtual machine can be normal Internet.
This article is from the "11705634" blog, please be sure to keep this source http://11715634.blog.51cto.com/11705634/1826633
VMware Virtual machine Linux system hybrid mode Internet