Sunday, August 26, 2012

Where are my file /etc/network/interfaces [centos]

What you're looking for is more likely /etc/sysconfig/network-scripts/ifcfg-eth*.... it has been like this in CentOS 5.2 also.

Ubuntu (deb) - /etc/network/interfaces
Centos (rpm) - /etc/sysconfig/network-scripts/ifcfg-eth*

CentOS 6.3

Q: From where does ifconfig shows eth0, eth1... , where are they defined?
Listing of eth0, eth1... are in file /etc/udev/rules.d/70-persistent-net.rules
* It is safe to remove lines from 70-persistent-net.rules
This file is recreated from the ifcfg-eth* files inside directory /etc/ if they contain onboot=1

No comments:

Post a Comment

I would be glad to know if this post helped you.