Nic configuration of RedHat9.0

Source: Internet
Author: User
For reference. The NIC configuration file of RedHat9.0 can be located in the following three locations. /Etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/networking/devices/ifcfg-eth0/etc/sysconfig/networking/profiles/default/ifcfg-eth0 by default only exist at/etc /For reference.

The NIC configuration file of RedHat 9.0 can be located in the following three locations.

/Etc/sysconfig/network-scripts/ifcfg-eth0
/Etc/sysconfig/networking/devices/ifcfg-eth0
/Etc/sysconfig/networking/profiles/default/ifcfg-eth0

By default, only the configuration files in/etc/sysconfig/network-scripts/exist, and no configuration files exist in the other two locations. When the/etc/init. d/network command is used to start the NIC, the configuration file in this directory is also directly read. Therefore, you can modify the parameters of the NIC only by modifying the file.

In addition, the configuration file in the/etc/sysconfig/networking/profiles/default directory is interesting. This configuration file cannot work independently, only when the/etc/sysconfig/network-scripts/directory contains a configuration file ~ The file in the/default directory takes effect.

At present it seems that the/etc/sysconfig/network-scripts/directory must have the ifcfg-eth0 configuration file, otherwise the NIC cannot be started when running the/etc/init. d/network command.

In addition, if there is a configuration file in the/etc/sysconfig/networking/profiles/default directory, the configuration file in the network-scripts directory will become a decoration and run/etc/init. in the d/network command, parameters are read from the configuration file of the default directory instead of from the configuration file of the network-scripts directory.

The above problem does not exist for RedHat AS4, but the configuration file in the/etc/sysconfig/network-scripts/directory takes effect.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.