Set up CENTOS7 networking and fixed IP connectivity under VMware Xshell

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.