Bluehost.com Web Hosting $6.95

Where is ifconfig info stored?

This is a discussion on Where is ifconfig info stored? within the Linux Networking forums, part of the Linux Forums category; I have my linux box running RH. I want to know where (in which files) is the networking info stored; ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-04-2004
Nirnimesh
 
Posts: n/a
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.
Reply With Quote
  #2 (permalink)  
Old 07-04-2004
Bit Twister
 
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
slrnblbkm2.20r.BitTwister@wb.home in the message id box

The above results should give you some idea on where to look.
Reply With Quote
  #3 (permalink)  
Old 07-05-2004
Bill Unruh
 
Posts: n/a
Default Re: Where is ifconfig info stored?

nirnimesh@gmail.com (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 (permalink)  
Old 07-06-2004
David Efflandt
 
Posts: n/a
Default Re: Where is ifconfig info stored?

On 4 Jul 2004 22:13:12 GMT, Bill Unruh <unruh@string.physics.ubc.ca> wrote:
> nirnimesh@gmail.com (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 (permalink)  
Old 07-06-2004
jack
 
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 (permalink)  
Old 07-07-2004
Dave Brown
 
Posts: n/a
Default Re: Where is ifconfig info stored?

In article <a2698630.0407041321.589cf0d5@posting.google.com >, 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0