VMware Workstation installation CentOs7 fixed ip address

  Today, before the discovery of hypervisor configuration CentOs7 not connected, damn encryption system and anti-virus software and do things, and decided to try VMware virtual machine, download and install, can be found even on CentOS7 interface, very happy, until the so determined VMware things go down, then the first step is the first to make the newly installed CentOS7 can happily on the external network, and access to the host computer, so I wrote about how today fixed ip address, and access the Internet.

First, set the network mode and VMware ip address

  Since we adopted the company manage a network ip address of each person, so I can not just give your virtual machine to use a computer with the same local network segment ip address, so it can not be used in bridge mode, here I choose NAT mode, by nat connection may be such that the virtual machine's NIC and the real machine in the different segments, thus networked . First open VMware WorkStation, above the main interface to select the menu "Edit" -> "Virtual Network Editor", as shown

 

Click "Change settings", change ip address based on actual demand, of course, can not be modified, the back of our fixed ip configured in CentOS7 inside when you use this ip network segment on it

 

Select VMnet8, then click the "NAT settings", after entering point "DNS Settings", as shown below, consistent with the dns keep the host here, you need to check your DNS host so students can operate in the windows inside the system, press and hold the second key to the lower left corner "win" + r , and then enter cmd , enter on the command line ipconfig / All , see a long list of card information appears, find the " Ethernet adapter" , then you can see the DNS friends, such as map

 

 

 

 After changing for the better, in the VMware interface, right-CentOs your system, select "Settings", select the "NAT Mode"

 

 So far VMware configured. May know, I configured the gateway is 192.168.13.2, the subnet mask 255.255.255.0, the subnet is 192.168.13.0 ip

Second, the system is provided CentOS7 fixed ip

  This step is necessary to configure the network card inside the parameters of the system, connected to the CentOS system, then go to the directory cd / etc / sysconfig / network- scripts follow the input LS , find your network card configuration file, as

 Open this file and edit the configuration vi ifcfg-ens33 refer to my plans to change this, pay attention to IPADDR this address, as long as you can 192.168.13.xxx

 

 After changing for the better preservation, reboot the network settings  service network restart now ping the host computer www.baidu.com and their ip under test

 

 Modified successfully, the host computer for later use in third-party software connection CentOS you can use 192.168.13.100 this to connect the ip.

 

Guess you like

Origin www.cnblogs.com/luoocean/p/11590755.html