The issue of virtual machine network configuration

1. Create a new user are similar, please refer first blog. Here we do not have a graphical interface, select the "minimum installation."

2. After installing the virtual machine is now configured network DNS, open the Control Panel ----> Network and Internet ----> Network and Sharing Center ----> click Change adapter settings

 

Then fill out your IP address

 

 

3. Open the virtual machine, configure the network.

 

 4. After the configuration is complete, the virtual machine, enter vi / etc / sysconfig / network-scripts / ifcfg-eno16777736, note that each of the names used herein are not the same, can vi / etc / sysconfig / network-scripts / ifcfg in press shift + table -eno the premise. Add the IP address and related configuration change, you must pay attention to the case, save and exit.

 

Continue to prepare vi /etc/NetworkManager/NetworkManager.conf, enter write, save and exit.

 

5. Restart network management: systemctl restart NetworkManager.service modify the DNS configuration file vi /etc/resolv.conf

 

 6. Develop nameserver, save and exit.

 

7. Finally restart the network service network restart, ping www.baidu.com can ping success.

 

Guess you like

Origin www.cnblogs.com/daqiqi998/p/11567489.html