Virtual Machine Version: VMware Workstation_10.0.3
Linux System Version: CentOS_6.5 (64-bit)
A few days ago made a return to white, installed last month released the latest version of CentOS 7, was found in the study when there are many places and the old version of CentOS is not the same, so a lot of problems (of course, for I am concerned that a beginner), so now again replace a CentOS 6.5 to learn. We go directly to the main topic.
When a VMware virtual machine in the CentOS installation is successful, the system will simulate win7 the two virtual NICs: VMnet1 and VMnet8, we take a look, click on "Control Panel ---> View network status and tasks ---> change adapter settings ", the following interface
Open the virtual machine, select "Virtual Machine ---> Settings" menu, the following interface
If you want to ensure that virtual machines and physical machines to communicate or access the Internet, make sure the top right corner of the image above the "Device Status" To: Connected.
There are three ways a network connection, the following details about these three ways
Two, Bridge bridge mode, NAT mode, Host-only host-only mode:
Bridge mode: the virtual machine's network adapter for communication, simple configuration; and as long as a real computer on the same network segment can communicate directly; if there are other computers in the LAN can also be accessed. Disadvantages: take up a segment of the IP address. (Similar to a real stand-alone computer)
NAT mode: using the virtual NIC VMnet8 communication; and can only communicate with the machine; On this basis, the virtual machine can access the Internet through the host
Host-only mode: using the virtual NIC VMnet1 communication; and can only communicate with the machine; you can not access the Internet.
Three, Host-only host-only mode configuration:
(1) First check VMWare service conditions:
Select "Computer ---> Services and Applications Management --- --- Services", find VMware NAT service and VMware DHCP service, we start it
(2) See the virtual machine network card segments:
Since using a virtual card VMnet1, then take a look at it VMnet1 segments
VMnet1 IP address is 192.168.154.1, the subnet is 192.168.154.X (virtual machine automatically assigned address, each person's computer might be different)
Then turn to share a local connection
Then we enter into the VMware virtual machine, the connection mode is set to Host-only mode
Then, open the VMware Virtual Network Editor, look at the configuration
You can see, the virtual network is 192.168.154.X
(2) is configured in a virtual machine:
CentOS open terminal, enter the root user, enter the following command to view the current card information :( Note: if is the interface)
Shows no network card available (lo native loopback adapter that is mainly used for communications and test the machine, do not need to plug the network cable can ping through, there is not much sense).
Enter the following command to assign an IP address to the network card eth0 :( must ensure and VMnet1 for the same network segment 192.168.154.X)
ifconfig eth0 192.168.154.2
3) validated in Windows:
Open cmd Win7 console, enter the following command:
Display below, to receive such a request response packet, indicating that the ping of the
Three, NAT configuration mode:
The above steps and as Host-only mode.
Note: we must ensure IP address of the virtual network adapter VMware8 and virtual machines on the same network segment
The key command is:
ifconfig eth0 192.168.221.2
Four, Bridge bridge mode configuration:
First check VMWare service conditions and II (1) of the same steps above. Then perform the following steps:
(1) See IP address of the local connection:
Since my local connection to automatically obtain IP, you need to enter the following command in cmd view:
Display as follows
IP local network connection is: 192.168.1.X.
(2) set up a virtual machine connections:
First, the connection mode to bridge
Virtual Network Editor, bridged to the NIC is recommended not to vote automatically, choosing instead to local need to use the card
(3) Enter the following command to set the CentOS ip, to ensure its network is 192.168.1.X:
ifconfig eth0 192.168.1.4
In this case, the cmd Win7 that can ping through
Special Note: After the restart, the above-mentioned three methods ip will be lost, to permanent preservation, which must be written to the file.
Five, SecureCRT remote connectivity tools and virtual machines to connect :()
Open the software, select "File ---> Quick Connect", pop up the following interface
Enter the virtual machine's IP address and user name: root, then start the connection.
NOTE: In some other versions of Linux, prohibit the use of root connection, the need for a regular user job.
Then enter the root password on the line
In this way, it's done
(2) for SecureCRT software settings:
Since I installed the Chinese version of CentOS, so in order to prevent distortion when using the software, you need to make the following settings:
Select the menu bar "Options ---> Session Options", the following dialog box
To change the background color (personal habits) terminal. Then modify the font size, etc.
Then the encoding to international standard
Six, Winscp file copy tool:
Integration with Windows (drag and drop, URL, shortcut)
It supports all common file operations
Supports SSH-1, SSH-2 for SFTP and SCP protocols
Batch file scripting and command-line mode
A variety of semi-automatic and automatic directory synchronization mode
Built-in text editor
Support for SSH password, keyboard-interactive, public key and Kerberos (GSS) verification
By integrating support with Pageant (PuTTY Agent) for various types of public-key authentication
Provides Windows Explorer and Norton Commander interface
Optionally store session information
It can be set in the configuration file instead of the registry for the removable media operations
Thus, in the future between Linux and windows transfer files becomes more convenient.
After the software is open, IP address, enter the virtual machine, and the root user password to connect