PDA

View Full Version : Multiple networkconfigurations


phe
2008-03-24, 02:10 PM CDT
Hello,

I am struggling in networkconfigurations.

I like CLI very much ! (you know what you are doing at that moment)
For that reason I do not like NetworkManager (NM)

Here I mentioned already 2 ways for configuration your network.

And there is anotherone ! cfg-interface


Can someone guide me to a simple and clear explaination about there wyas of configuration?

(I found that when you use NM, static IP-address can NOT be used ! Only dhclient ! !)
(is this right ?)


regards,

phe

jnvilo
2008-03-24, 03:11 PM CDT
Just like in many things on linux, there is more than one way to do something and not necessarily only one correct way.

My prefered method is to use system-config-network tool and next to that is manually editing ifcfg-ethX files in /etc/sysconfig/network-scripts.

system-config-network is quiet straightforward just run it.

Iron_Mike
2008-03-24, 03:41 PM CDT
Hello,


(I found that when you use NM, static IP-address can NOT be used ! Only dhclient ! !)
(is this right ?)


regards,

phe

At least until Fedora 9 is released

phe
2008-03-25, 12:34 AM CDT
Just like in many things on linux, there is more than one way to do something and not necessarily only one correct way.


What will happen when you make use of the "system-config-network tool" AND "ifcfg-ethX files in /etc/sysconfig/network-scripts" ?
Will there be a conflict? Or witch one has priority?

And what about the gui configuration "Devices" and "profiles" ?

jnvilo
2008-03-25, 05:28 AM CDT
as far as i can see, system-config-network tool just modifies the files. I.e. just a frontend.

if you edit a /etc/sysconfig/network-scripts/ifcfg-eth0 and then go and open /etc/sysconfig/networking/devices/ifcfg-eth0 you will see that the change is propagated.

Not sure how it syncs since i can't see symlinks, a hardlink maybe? [anybody want to comment on this?].

Same with the files in profile. You edit the equivalent files elsewhere and you see that the change appear in this files in this directories.