LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   FC9: sysconfig network files behavior (https://www.linuxquestions.org/questions/fedora-35/fc9-sysconfig-network-files-behavior-643293/)

hawk_turner 05-19-2008 12:52 PM

FC9: sysconfig network files behavior
 
Hello,

I am little confused on how the network sysconfig files all work for FC9..

I edit the file located at /etc/sysconfig/network-scripts/ifcfg-eth0 and save it, but I notice two other files /etc/sysconfig/networking/devices/ifcfg-eth0 and /etc/sysconfig/networking/profiles/default/ifcfg-eth0 are also magically updated on the save of the one in network-scripts. I can also modify the other two and all are updated as well. How are these files getting updated? I thought it was a symbolic link, but doing ls -al doesn't show them pointing to anything. What is the purpose of having all of these files that are the same?

Also, my server has two NICs. How are they probed and labeled with eth0 and eth1? The server has printed labels Port 1, Port 2. It turns out Port 2 is mapped to eth0 and how can I ensure this always happens or change it if needed?

Thank you.

unSpawn 05-20-2008 07:07 AM

Hello and welcome to LQ. Hope you like it here.

The locations you mention are hard links, not symbolic ones and the purpose is system utilities expecting configurations in specific locations. Explanation of order is in /etc/init.d/network (at around line thirty: 'nl /etc/init.d/network|less') or do 'grep 'find all the interfaces besides loopback' -A 10 /etc/init.d/network'.

hawk_turner 05-20-2008 08:05 AM

Thank you.

unSpawn 05-21-2008 06:03 AM

Well, it seems waiting was too much for you and so you decided to crosspost this as a new thread. That's not how we like to see things done at LQ.

hawk_turner 05-21-2008 08:09 AM

Hello,

Sorry. I didn't think that the question should have belonged on this thread, and i forgot to delete it from this thread. It felt more right to put with hardware in a general linux area since i thought it was more udev related. I shall remove post from this thread.

unSpawn 05-21-2008 08:21 AM

OK, good one.


All times are GMT -5. The time now is 04:30 PM.