Which Network Script to Maintain Manually on Red Hat?

If you have notice, there are actually three network scripts on Red Hat.

[root@server ~]# locate ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0

So which file should we edit and maintain if we want to make changes?

After digging into the Internet, I found some useful information here which lead me to here, which stated that:

/etc/sysconfig/networking/

This directory is used by the Network Administration Tool (system-config-network), and its contents should not be edited manually. For more information about configuring network interfaces using the Network Administration Tool, refer to Chapter 7, NetworkManager.

So the answer is, you should only manually edit and maintain network script in /etc/sysconfig/network-script.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s