The installation environment is:
System: Win server R2 DataCenter
Hyper-V Version: 6.3.9600.16384
CentOS Version: 7.0
CentOS 7.0 downloaded from the Internet can be downloaded from the Http://pan.baidu.com/s/1mgLrPRM if not found
Import ISO image for normal installation
Create a new virtual machine first set up a network adapter (I did not select the old network adapter), the specific operation Add Hardware "Select network adapter" Next ....
System installation, I chose the Web server version (inside the integration of various server environment Java PHP mysql, etc.), so no interface can only command ....
After installation, start setting up the network
The main steps are:
1. Login system Enter the user root password set when you installed the machine * * * *, such as
2. After successful switch to network-scripts directory, execute command cd/etc/sysconfig/network-scripts
Execute the LS command again as
3. Execute vi ifcfg-eth0 for editing, edit the result as can (specific IP value can be customized)
After the setup is complete, ESC exits the cursor and enters: wq! command to save and exit the edit
After exiting the edit, execute the Service network Restart command, if the restart failure is usually the above step is not careful, carefully re-check the value of the HWADDR is correct
4. At this point, view IP addr as
5. Finally ping Baidu, see if you can surf the internet
==========
First write here, time to install an interface, test the server environment
Installing the Centos 7.0 Setup Network tutorial in Hyper-V