Networking Forums

Networking Forums > Computer Networking > Linux Networking > Where is ifconfig info stored?

Reply
Thread Tools Display Modes

Where is ifconfig info stored?

 
 
Nirnimesh
Guest
Posts: n/a

 
      07-04-2004, 09:21 PM
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
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      07-04-2004, 09:44 PM
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
 
Bill Unruh
Guest
Posts: n/a

 
      07-04-2004, 10:13 PM
(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
 
David Efflandt
Guest
Posts: n/a

 
      07-05-2004, 11:21 PM
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
 
jack
Guest
Posts: n/a

 
      07-05-2004, 11:54 PM
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
 
Dave Brown
Guest
Posts: n/a

 
      07-06-2004, 10:55 PM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the arp kernel module cache stored? jeniffer Linux Networking 1 05-15-2006 11:40 AM
Information stored on servers at work eisenmann68@yahoo.com Wireless Internet 5 10-01-2005 01:37 AM
Router ID stored on PC anywhere? Robin Wireless Internet 5 12-21-2004 01:12 PM
where are the WPA settings stored? Al Blake Wireless Networks 3 10-19-2004 05:13 AM
Where are encryption keys stored? Philip Herlihy Wireless Networks 5 07-12-2004 06:31 PM



1 2 3 4 5 6 7 8 9 10 11