Linux host after the initial installation is still unable to surf the internet, how to set up a shared Internet
1 First of all to understand the Internet mode: Virtual Machine network card-------------------VMNET1--------------------Real Machine network card (open sharing), using the Host-only way
So what to do:
First step: Set the Internet mode to Host-only, then turn on the virtual machine
Step two: Set up host sharing
At this point: Vmnet1 address will change, record, is 192.168.137.1
Step three: Modify the IP address in CentOS to correspond to the address of the VMNET1
Modify the IP address under CentOS to correspond to the address of the VMNET1
Entry: Vi/etc/sysconfig/network-scripts/ifcfg-eth0
or install using the Setup command
Set IP address, DNS address
then modify the Onboot=yes;
Then save the Restart service network restart
In this way, the virtual machine and the Vmnet1 are in the same network segment.
It's actually the same way I set up my home.
and then patched.
Yum Update
How to set up a bridged Internet connection after Linux VMware installation is complete