1. After the system is installed, the network environment needs to be configured to access the Internet.
2. Open VM virtual machine and select Edit virtual machine settings. Network connection — bridge mode.
3. Start the virtual machine, enter the account / password and log in to the system.
4. Configure network
Run CMD in windows and enter ipconfig to view the network adapter parameters.
Refer to the local IP configuration. Because the network connection mode used by the virtual machine is bridging. Therefore, the network configuration of CentOS system needs to be the same network segment as the local IP of windows.
VI / etc / sysconfig / grub, enter the grub file.
Regenerate grub configuration and update kernel parameters:
grub2-mkconfig -o /boot/grub2/grub.cfg
After the system restarts, enter ifconfig, and you can see that the network card name has been changed to eth0. And also has IP.
ping www.baidu. com、www.qq. com、www.163. Com can ping.
Windows can ping CentOS IP by opening CMD
So far, the CentOS 7 network environment has been configured.