Problem:
VMware WorkStation newly created centos7 cannot automatically obtain an IP address through DHCP.
(Recommended tutorial: centos usage tutorial)
Solution:
When VMware’s network configuration NAT is correct, modify
vim /etc/sysconfig/network-scripts/ifcfg-nes33
Change ONBOOT=no, to ONBOOT=yes
Then, execute the following command:
service network restart
After that, check ifconfig to see if the IP address has been automatically obtained.
Recommended related video tutorials: linux video tutorial
The above is the detailed content of Centos7 system cannot automatically obtain IP address through dhcp. For more information, please follow other related articles on the PHP Chinese website!