Virtual machine Linux systems and hosts for interoperability
This experiment is to realize the interconnection of virtual machine Linux system and host
Changing the network of Linux systems to host-only mode in virtual machine settings
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/6B/wKioL1eQYvzD0MKrAACpG-Nqfxk008.png-wh_500x0-wm_3 -wmp_4-s_2875259561.png "style=" Float:none; "title=" 1.png "alt=" Wkiol1eqyvzd0mkraacpg-nqfxk008.png-wh_50 "/>
Open the terminal input Ifconfig command in the Linux system to look up the NIC, this time using the eth0 NIC
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/84/6B/wKioL1eQYwrRAiO1AAD2EclyrQ4665.png-wh_500x0-wm_3 -wmp_4-s_3953981689.png "style=" Float:none; "title=" 2.png "alt=" Wkiol1eqywrraio1aad2eclyrq4665.png-wh_50 "/>
Input:cd/etc/sysconfig/network-scripts This is the address of the eht0 network card
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/6B/wKiom1eQYw3gSvexAABo45Tfxu0536.png-wh_500x0-wm_3 -wmp_4-s_4007076742.png "style=" Float:none; "title=" 3.png "alt=" Wkiom1eqyw3gsvexaabo45tfxu0536.png-wh_50 "/>650 ) this.width=650; "Src=" http://s4.51cto.com/wyfs02/m01/84/6b/wkiom1eqywotitoiaae0x5gipos432.png-wh_500x0-wm_3- Wmp_4-s_4278835877.png "Title=" 2 (1). png "style=" Float:none; "alt=" Wkiom1eqywotitoiaae0x5gipos432.png-wh_50 "/>
Input vim ifcfg-eth0 enter nic parameter modification
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/6B/wKioL1eQYw-xD25FAACx37GTn9c873.png-wh_500x0-wm_3 -wmp_4-s_4010117997.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1eqyw-xd25faacx37gtn9c873.png-wh_50 "/>
ESC return to command mode
Command mode: input (i,a,o,o) will switch to input mode.
I : Insert Letter before
a : Insert after letter
o : Insert Next line
O : Insert Previous line
Input mode: Enter ":" Into the last line mode in command mode.
Last-line mode
W : Save
Q : Exit (q! Forced exit)
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/84/6B/wKiom1eQYxLwOTe4AADrfR0ZPTY593.png-wh_500x0-wm_3 -wmp_4-s_660589566.png "style=" Float:none; "title=" 5.png "alt=" Wkiom1eqyxlwote4aadrfr0zpty593.png-wh_50 "/>
Enter the service network restart command (restart the network card) and enter ifconfig to see if the NIC parameters are modified
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/6B/wKiom1eQYxTypkX9AADAEkEkQHY672.png-wh_500x0-wm_3 -wmp_4-s_1342128607.png "style=" Float:none; "title=" 7.png "alt=" Wkiom1eqyxtypkx9aadaekekqhy672.png-wh_50 "/>
Open the VMware1 NIC in the host to modify the IP address (change to the same network segment)
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/84/6B/wKioL1eQYx2yJaTGAACgpLxmV7g651.png-wh_500x0-wm_3 -wmp_4-s_182392476.png "style=" Float:none; "title=" 8.png "alt=" Wkiol1eqyx2yjatgaacgplxmv7g651.png-wh_50 "/>
Open cmd and ping through 192.168.100.1 (this is the network segment I set up)
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/6B/wKioL1eQYx_jBM3HAAB4mJB0aTM567.png-wh_500x0-wm_3 -wmp_4-s_842768667.png "style=" Float:none; "title=" 9.png "alt=" Wkiol1eqyx_jbm3haab4mjb0atm567.png-wh_50 "/>
Using the Putty software in a host
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/6B/wKiom1eQYx-wZ3u0AAAcHWEyv_Y997.png-wh_500x0-wm_3 -wmp_4-s_588711892.png "style=" Float:none; "title=" 10.png "alt=" Wkiom1eqyx-wz3u0aaachweyv_y997.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/84/6B/wKioL1eQYyCgqDE5AAB2I4a6niU718.png-wh_500x0-wm_3 -wmp_4-s_492633324.png "style=" Float:none; "title=" 11.png "alt=" Wkiol1eqyycgqde5aab2i4a6niu718.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/84/6B/wKiom1eQYyXCcwpUAAAlXZBSYDE739.png-wh_500x0-wm_3 -wmp_4-s_1456170524.png "style=" Float:none; "title=" 12.png "alt=" Wkiom1eqyyxccwpuaaalxzbsyde739.png-wh_50 "/>
So we can connect.
The experiment ends here.
This article from the "11823326" blog, reproduced please contact the author!
Virtual machine Linux systems and hosts for interoperability