Home >Operation and Maintenance >CentOS >Centos7 system cannot automatically obtain IP address through dhcp

Centos7 system cannot automatically obtain IP address through dhcp

王林
王林Original
2020-03-16 14:37:134810browse

Centos7 system cannot automatically obtain IP address through dhcp

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn