Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set network auto-start in CentOS7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to set up automatic network startup in CentOS7, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.

1. Open the terminal and switch to the root account (the ordinary account usually does not have the permission to modify the network configuration file, so switch to the root account)

2. Change to the directory of the network card configuration file

3. Find the configuration file of the network card (centos7 modified the naming rules of the network card so that it is no longer the familiar eth0, but ifcfg-eno+ a string of numbers). For example, mine is ifcfg-eno16777736.

4. Open the file with the vi command

5. The onboot option of the last line, change the default no to yes

6. Use command: wq! Save exit

Thank you for reading this article carefully. I hope the article "how to set up automatic Network Startup in CentOS7" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report