Love toss of the small partners should often use VMware to install some virtual machines for learning, but for example, installed Linux, often very difficult to switch windows when operating, so many people will choose to use Xshell to connect the local Linux virtual machine, But how to connect the local virtual machine with Xshell, please look down.
First, what does it take to get the virtual function to be accessed externally? No mistake, IP Ah!!!
I open my newly installed CENTOS7, enter the command IP add, it is like this
Hey, where's my IP? IP did not see, but is to find a eno16777736 of things, what is it? This is a serial number of the network card configuration file, the contents of which need us to be configured later, so you have to remember a little (according to your own computer)
First get root, enter the command Su root, and then enter the command: ls/etc/sysconfig/network-scripts/look at the specific file name
Edit the file, command: vi/etc/sysconfig/network-scripts/ifcfg-eno16777736 (can also be edited with other commands, provided that the root permission is required), the file content is as follows
All we need to do is set the last item onboot to Yes. When you are finished editing, press ESC and enter: Wq save. Under root permissions, enter Shutdown-r now to restart.
After reboot input command: Ping www.damienzhong.com, can ping pass to explain just the setup succeeded.
Then enter the command: IP Add, view IP, and write down
Then we'll edit the configuration just now: vi/etc/sysconfig/network-scripts/ifcfg-eno16777736
Add the following four lines to the configuration save, then shutdown-r now to restart. The configuration on the virtual machine is complete! Next, test the other connection tools to connect to the virtual machine.
We open Xshell, create a new session, fill in the IP address we just configured the virtual machine, then click Confirm to connect
Enter your account password to successfully connect, such as
My personal blog address: damienzhong.comOriginal link: Click to open the link (full version please go to the original link to view)
Set up CENTOS7 networking and fixed IP connectivity under VMware Xshell