centos+vmware12.0 NAT static IP Internet settings + Xshell

Source: Internet
Author: User
Tags change settings

Recently, when configuring Xshell to configure static IP for virtual machines, this blog is written on the basis of reference blog data.

System: Win10+vmware12+centos Configure NAT to open vmware-> Edit virtual machine settings-> Select Custom Nat Mode (VMNAT8).
Edit-> Virtual Network editor (the configuration is important here)-> Click on the change settings to go to the Modify Network Configuration window. Where the use of the local DHCP service to assign IP addresses to virtual machines is deselected, if the second DHCP service in the Win7 VM service is selected, IP is assigned to the operating system network card on the virtual machine, and the network adapter is set to dynamically obtain IP. (a service is occupied by resources, ah, can not do it 0.0) after the configuration is complete, check the configuration, especially the service NAT service must be opened.

To modify the network Configuration interface:

the subnet IP and subnet mask above do not need to be modified.
Click Nat Settings
Configure VMNET8 network card IP, subnet mask and so on.
In the host computer (win 10 system), open the Network Center-> set IP, subnet mask, default gateway and DNS server.

The IP address here is set to the same IP address as the same segment in the Step 2 virtual Machine Network Editor: 192.168.131.X, the gateway is also filled in as a gateway in the Virtual Machine Network editor in step Two: 192.168.131.2.

(Special emphasis: here IP and gateway address refer to your own virtual machine to fill out, I just that my example, do not blindly follow my fill)

DNS address fill: 8.8.8.8 can be virtual machine operating system external environment configuration completed, boot, configure the internal Internet environment.
Root permissions under the command: vi/etc/sysconfig/network-scripts/ifcfg-eno16777736, where the main configuration is the static access to IP, gateways, subnet masks, etc. CentOS7 network card is off by default, You need to turn on (or set to boot), and then start the Network device (service network restart) or reboot the System (reboot).

What to modify and add:
Onboot=yes
ipaddr0=192.168.131.3 (This IP is the IP address of the CentOS system on the virtual machine)
gateway0=192.168.131.2 (gateway address in step 2)
dns1=8.8.8.8

Configure NAT static mode the above configuration is already available, and the next step is to configure Xshell so that it can remotely connect to the operating system within the virtual machine.

The one step that is required to enable Xshell to remotely connect to the virtual machine is to configure the Xshell configuration for the last picture red font callout in step 2, which explains in detail:
Host Port: 22 means using TCP protocol
Type: TCP
Virtual machine IP: Is the IP address you configured for the host in step 4
Virtual machine Port: 22

After the configuration is over, you can use Xshell to remotely control the virtual machine.

1. Bowen configuration If there is a problem, I hope the great God can teach, to learn from the great God
2. This article configures the reference http://blog.csdn.net/foxbryant/article/details/50491312

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.