Get the App
SLTechnology News&Howtos  ›  Development  › 

How to configure Network device Files under Linux

Shulou Source: shulou.com Published: 2022-06-01 22:32:27 09月10日 Update

This article mainly introduces how to configure network equipment files under Linux, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article.

The configuration file of the system network equipment is saved in the "/ etc/sysconfig/network-scripts" directory. Ifcfg-eth0 contains the configuration information of the first network card, and ifcfg-eth2 contains the configuration information of the second network card. Here is an example of the "/ etc/sysconfig/network-scripts/ifcfg-eth0" file:

DEVICE=eth0ONBOOT=yesBOOTPROTO=staticIPADDR=192.168.0.66NETMASK=255.255.255.0GATEWAY=192.168.0.65

If you want to manually change the network address or add a new network interface to the new interface, you can modify the corresponding file (ifcfg-ethN) or create a new file.

Thank you for reading this article carefully. I hope the article "how to configure Network equipment under Linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Files networks configurations articles network devices devices information network cards values interests can be passed at the same time addresses manual interfaces more friends interfaces directories knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Information MariaDB macOS MySQL