|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
(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-* |
|
#4
|
|||
|
|||
|
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/ |
|
#5
|
|||
|
|||
|
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"... |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Tags |
| ifconfig, info, stored |
| Thread Tools | |
| Display Modes | |
|
|