ifconfig configuration changes are not reflected in the network configuration GUI
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ifconfig configuration changes are not reflected in the network configuration GUI
I have seen this in fedora 8/9 systems :-
When I configure the eth0 card and give it a ip address using the ifconfig command from the terminal window and then check out the card from the network config GUI subsequently, it doesnot reflect the ip address as configured through the ifconfig command. However, the ifconfig command continues to show the new ip address as usual.
Why this ?
If I need to change the ip address of the eth0 interface which should be the prefered mechanism - the ifconfig command or the GUI.
Ofcourse I understand that, for the ifconfig command mechanism a line would have to be added to the rc.local file so that the change is effective on every subsequent bootup.
changes using ifconfig doesnt reflect in gui because they are not persistent, if you do change settings using system-config-network / -tui or ifconfig-eth0 file then they would be permanent and would reflect in "network config gui"
thanks I got it now.
One more thing. In fedora distros there are two files /etc/networks and /etc/sysconfig/network. How are they different.
Also, as I understand there should be only one default route for any machine. Consider a situation, where I have two network cards eth0 and eth1. Let us say I have internet accessible through eth0 and a corporate network 10.1.1.0/24 via eth1. Now it makes sense to add a default route through the eth0 and a network route through eth1.
I know how to do that using the route add commands, but how and which files should be set up for permanent effect ? can someone help me with that ? Actually there are so many files in the etc/sysconfig dir that I can't make sense of them !
thanks in advance
nishith
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.