How to configure Network device Files under Linux
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!