What should I do if CentOS cannot obtain IP?

angryTom
Release: 2020-03-18 11:09:25
Original
4162 people have browsed it

What should I do if CentOS cannot obtain IP?

What should I do if CentOS cannot obtain the ip?

Problem: Log in to the CentOS operating system, enter ip addr, or enter ifconfig to view the ip, and find There is no inet attribute in the ens33 directory.

Recommended learning: Linux video tutorial

What should I do if CentOS cannot obtain IP?

##Solution:

1. Check the network card configuration of ens33: vi /etc/sysconfig/network-scripts/ifcfg-ens33

2. Change the ONBOOT item to yes,

3. Then restart the network service: sudo service network restart

4. Enter the ip addr command to view the ip.

For more CentOS related tutorials and

jQuery video tutorials, please pay attention to the PHP Chinese website!

The above is the detailed content of What should I do if CentOS cannot obtain IP?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!