Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Where is ifconfig info stored?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2004, 10:21 PM
Default Where is ifconfig info stored?



I have my linux box running RH.

I want to know where (in which files) is the networking info stored;
that is, the IP addr assigned to my NIC should be restored when the
network starts -- so where is this stored? Is everything in
/etc/sysconfig/networking only? This seems to be a bit tricky coz if I
configure my IP addr with ifconfig, and do a 'service network restart'
the addr is _not_ restored from the files in /etc/sysconfig/networking
but they tend to remain the same as what I set then as (i.e. no sync
between ifconfig and /etc/sysconfig/networking!!).

Any help/views/suggestions greatly appreciated.


Nirnimesh
Reply With Quote
  #2  
Old 07-04-2004, 10:44 PM
Bit Twister
Guest
 
Posts: n/a
Default Re: Where is ifconfig info stored?

On 4 Jul 2004 14:21:19 -0700, Nirnimesh wrote:
> I have my linux box running RH.
>
> I want to know where (in which files) is the networking info stored;



Please bookmark the following, very large,
Frequently Asked Questions (faq) Search engine:

http://groups.google.com/advanced_group_search
(E-Mail Removed) in the message id box

The above results should give you some idea on where to look.
Reply With Quote
  #3  
Old 07-04-2004, 11:13 PM
Bill Unruh
Guest
 
Posts: n/a
Default Re: Where is ifconfig info stored?

(E-Mail Removed) (Nirnimesh) writes:

]I have my linux box running RH.

]I want to know where (in which files) is the networking info stored;
]that is, the IP addr assigned to my NIC should be restored when the
]network starts -- so where is this stored? Is everything in
]/etc/sysconfig/networking only? This seems to be a bit tricky coz if I
]configure my IP addr with ifconfig, and do a 'service network restart'
]the addr is _not_ restored from the files in /etc/sysconfig/networking
]but they tend to remain the same as what I set then as (i.e. no sync
]between ifconfig and /etc/sysconfig/networking!!).


Ifconfig info is stored in memory. The network stuff is stored on disk in
/etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-*


Reply With Quote
  #4  
Old 07-06-2004, 12:21 AM
David Efflandt
Guest
 
Posts: n/a
Default Re: Where is ifconfig info stored?

On 4 Jul 2004 22:13:12 GMT, Bill Unruh <(E-Mail Removed)> wrote:
> (E-Mail Removed) (Nirnimesh) writes:
>
> ]I have my linux box running RH.
>
> ]I want to know where (in which files) is the networking info stored;
> ]that is, the IP addr assigned to my NIC should be restored when the
> ]network starts -- so where is this stored? Is everything in
> ]/etc/sysconfig/networking only? This seems to be a bit tricky coz if I
> ]configure my IP addr with ifconfig, and do a 'service network restart'
> ]the addr is _not_ restored from the files in /etc/sysconfig/networking
> ]but they tend to remain the same as what I set then as (i.e. no sync
> ]between ifconfig and /etc/sysconfig/networking!!).
>
>
> Ifconfig info is stored in memory. The network stuff is stored on disk in
> /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-*


But if using dhcp, it has its own files to store previous IP, etc. So the
OP would need to read the docs for whatever is doing their dhcp (dhcpcd or
pump?).

--
David Efflandt - All spam ignored http://www.de-srv.com/
Reply With Quote
  #5  
Old 07-06-2004, 12:54 AM
jack
Guest
 
Posts: n/a
Default Re: Where is ifconfig info stored?

Nirnimesh wrote:
> I have my linux box running RH.
>
> I want to know where (in which files) is the networking info stored;
> that is, the IP addr assigned to my NIC should be restored when the
> network starts -- so where is this stored? Is everything in
> /etc/sysconfig/networking only? This seems to be a bit tricky coz if I
> configure my IP addr with ifconfig, and do a 'service network restart'
> the addr is _not_ restored from the files in /etc/sysconfig/networking
> but they tend to remain the same as what I set then as (i.e. no sync
> between ifconfig and /etc/sysconfig/networking!!).
>
> Any help/views/suggestions greatly appreciated.


The scripts You mentioned will be run whenever You change runlevels,
i. e. at boot time or when You do a "[tel]init n".

All changes that You apply to Your network configuration manually in
operation will never be saved.

Review the scripts that You mentioned: The only thing they do is to
issue an "ifconfig" command with parameters read from the config files.

So You either change the config files, or do a little bash scripting
Yourself. - You didn't say why You want to manually change Your network
settings. If You did perhaps someone has good advice...?


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...
Reply With Quote
  #6  
Old 07-06-2004, 11:55 PM
Dave Brown
Guest
 
Posts: n/a
Default Re: Where is ifconfig info stored?

In article <(E-Mail Removed) >, Nirnimesh wrote:
> I have my linux box running RH.
>
> I want to know where (in which files) is the networking info stored;
> that is, the IP addr assigned to my NIC should be restored when the
> network starts -- so where is this stored? Is everything in
> /etc/sysconfig/networking only? This seems to be a bit tricky coz if I
> configure my IP addr with ifconfig, and do a 'service network restart'
> the addr is _not_ restored from the files in /etc/sysconfig/networking
> but they tend to remain the same as what I set then as (i.e. no sync
> between ifconfig and /etc/sysconfig/networking!!).


You didn't mention which version of RH. Since RH 9 (or was it 8), RH has
a new tool to configure networks which deals with "profiles". Kinda
reminds me of some of the MSWin functionality. Those configurations are
contained under /etc/sysconfig/networking/profiles/ with the saliant one
probably being under "default". It seems that the parameters there will
override anything in /etc/sysconfig/{network,network-scripts}.

--
Dave Brown Austin, TX
Reply With Quote
Reply

Tags
ifconfig, info, stored

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.