LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-25-2008, 11:11 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 313

Rep: Reputation: 34
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.
 
Old 12-25-2008, 11:48 AM   #2
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
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"
 
Old 12-25-2008, 11:51 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,455
Blog Entries: 3

Rep: Reputation: 182Reputation: 182
you answered your own question the gui hs the built in scrpits to do this or go manual.
 
Old 12-25-2008, 12:25 PM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 313

Original Poster
Rep: Reputation: 34
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
 
Old 12-25-2008, 01:17 PM   #5
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
for a common gateway use /etc/sysconfig/networks
for specific NIC route use /etc/sysconfig/network-scripts/ifcfg-eth1/0
add
GATEWAY=gatewayip

if you add gateway in both the files /etc/sysconfig/networks and /etc/sysconfig/networks-scripts/ifcfg-eth0/1

/etc/sysconfig/network will supercede
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL Gnome GUI Network Configuration tool pellicle Linux - Networking 3 07-16-2008 11:16 AM
Rhl 9.0 Some Gui Tools Not Loading (example, Network Configuration mytheenbava Red Hat 6 10-22-2007 02:42 AM
network configuration GUI based tool in Debian linian Linux - Networking 2 07-26-2006 09:38 PM
GUI based network configuration tools!!! AskMe Linux - Networking 4 06-28-2004 06:14 AM
Gnome GUI Configuration Cecil Linux - Software 1 07-18-2003 02:54 AM


All times are GMT -5. The time now is 04:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration