Overview
VMware has three network connectivity modes, namely bridged,Nat, and host-only;
When the VMware workstation is installed, two virtual network cards are automatically emulated on the host:VMnet1 and VMnet8, where VMnet1 corresponds to host-only mode, VMnet8 corresponds to nat mode;
VMware-----> virtual Machines-----> Settings-----> Network adapters
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/78/7D/wKiom1Z9-MbyX3EoAAFyPOROa3o081.jpg "title=" 2.JPG " alt= "Wkiom1z9-mbyx3eoaafyporoa3o081.jpg"/>
VMware-----> Edit----> Virtual Network Editor
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/78/7C/wKioL1Z9_nHyoN5hAAELj-cbIcU254.jpg "title=" 4.JPG " alt= "Wkiol1z9_nhyon5haaelj-cbicu254.jpg"/>
Right-click the network connection icon-----> Open Network and Sharing Center-----> Change Adapter settings
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/78/7C/wKioL1Z9-ALxXrYpAAEwGrQknSE336.jpg "title=" 1.JPG " alt= "Wkiol1z9-alxxrypaaewgrqknse336.jpg"/>
Note: VMware related services start
Right-click this computer-----> Manage-----> Services and Applications-----> Services
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/78/7D/wKiom1Z9-dPx9PU0AAKWRnYSiYc757.jpg "title=" 3.JPG " alt= "Wkiom1z9-dpx9pu0aakwrnysiyc757.jpg"/>
Basic concepts
There are three types of network connection modes that VMware uses:
The virtual machine uses the real network card to communicate, the configuration is simple, the equivalent of a real computer, as long as the virtual machine's IP and host in the same network segment, can communicate with each other, in addition to the local area network can communicate with other computers, but will occupy a network segment of the IP;
Use the virtual network card VMnet8 to communicate, but can only communicate with the host, as long as the host can access the Internet, the virtual machine can also access;
Use the virtual network card VMNET1 communication and only can communicate with the host, unable to access the Internet;
Bridged mode configuration
Step 1: View host IP Address
The host uses DHCP to obtain the IP automatically:
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/78/7C/wKioL1Z-E3-i5d86AAJxZZroEOc125.jpg "title=" 15.JPG "alt=" Wkiol1z-e3-i5d86aajxzzroeoc125.jpg "/>
Use the ipconfig command to view the IP on cmd:
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/78/7E/wKiom1Z-E33BAcRHAAG0qee0X2c168.jpg "title=" 16.JPG "alt=" Wkiom1z-e33bacrhaag0qee0x2c168.jpg "/>
Step 2: Virtual Machine Connection mode configuration
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/78/7E/wKiom1Z-FNfz81PeAAFwo5pWbQ8374.jpg "title=" 17.JPG "alt=" Wkiom1z-fnfz81peaafwo5pwbq8374.jpg "/>
To set up a bridging network card in the Virtual network editor, it is recommended that you do not select automatic:
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/78/7E/wKiom1Z-FX_Q1uuqAAFvxNtFm4I871.jpg "title=" 6.JPG " alt= "Wkiom1z-fx_q1uuqaafvxntfm4i871.jpg"/>
Step 3: Eth0 configuration in virtual machines
Can be set to DHCP mode
Step 4: Network Testing
To test between a host and a virtual machine using the ping command
Nat Mode Configuration
Step 1: View the network segment of the virtual NIC VMnet8 and the network segments in the virtual Web Editor to ensure that they are in the same network segment
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/78/7C/wKioL1Z-B6-A7HPpAAHIJizPRiU354.jpg "title=" 12.JPG "alt=" Wkiol1z-b6-a7hppaahijizpriu354.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/78/7D/wKiom1Z-COLCu1DMAAJAOoQK9rM707.jpg "title=" 13.JPG "alt=" Wkiom1z-colcu1dmaajaooqk9rm707.jpg "/>
Step 2: Virtual Machine Connection mode configuration
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/78/7D/wKiom1Z-CS7BLgZ8AAFyPOROa3o990.jpg "title=" 2.JPG " alt= "Wkiom1z-cs7blgz8aafyporoa3o990.jpg"/>
Step 3: Eth0 configuration in virtual machines
The Setup command can be configured quickly in the CentOS release, where the configuration file configuration is not described in detail;
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/78/7E/wKiom1Z-FxuisccdAACSi9Vu2n8018.jpg "title=" 18.JPG "alt=" Wkiom1z-fxuisccdaacsi9vu2n8018.jpg "/>
Step 4: Network Testing
Using the ping command
Host-only Mode configuration
Step 1: View the network segment of the virtual NIC VMnet1 and the network segments in the virtual Web Editor to ensure that they are in the same network segment
650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/78/7C/wKioL1Z-AQyDX0svAAIMAUL0FF4188.jpg "title=" 9.JPG " alt= "Wkiol1z-aqydx0svaaimaul0ff4188.jpg"/>
My virtual network card VMnet1 IP is 192.168.13.1/24, belongs to 192.168.13.x network segment (virtual machine automatically assigned)
To view the Virtual network editor:
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/78/7C/wKioL1Z-BGiBcQAFAAGIlrjqdsk004.jpg "title=" 4.JPG " alt= "Wkiol1z-bgibcqafaagilrjqdsk004.jpg"/>
Step 2: Turn on local sharing
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/78/7D/wKiom1Z-AoOjJC9zAAFRrFHeCuY726.jpg "title=" 10.JPG "alt=" Wkiom1z-aoojjc9zaafrrfhecuy726.jpg "/>
Step 3: Virtual Machine Connection mode configuration
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/78/7D/wKiom1Z-A7nC-IOKAAFke4RWcCo771.jpg "title=" 11.JPG "alt=" Wkiom1z-a7nc-iokaafke4rwcco771.jpg "/>
Step 4: Eth0 configuration in virtual machines
Ifconfig 192.168.13.2
Note: The use of command configuration can only be temporarily effective, to be permanent, you can modify the relevant configuration file
Step 5: Communication testing on the host
Open the CMD console
Ping 192.168.13.2
This article is from the "Chat ~ Dream" blog, please be sure to keep this source http://baogf92.blog.51cto.com/10869243/1728537
Linux notes VMware Network connection