Unix Technical Forum

net config settings - where stored?

This is a discussion on net config settings - where stored? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> hello, I was just wandering where are my net configuration settings stored? and I don't mean those that can ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:59 PM
arty5ta
 
Posts: n/a
Default net config settings - where stored?

hello,

I was just wandering where are my net configuration settings stored?
and I don't mean those that can be written to either rc.inet1 or
rc.inet1.conf file, but those that take place when set using ifconfig or
netconfig commands and which are reset after system's reboot.

arty5ta


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:59 PM
Keith Keller
 
Posts: n/a
Default Re: net config settings - where stored?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-09-30, arty5ta <arty5ta@hotmail.com> wrote:
> I was just wandering where are my net configuration settings stored?
> and I don't mean those that can be written to either rc.inet1 or
> rc.inet1.conf file, but those that take place when set using ifconfig or
> netconfig commands and which are reset after system's reboot.


First, if you use netconfig, the results *are* written to
rc.inet*.conf.

Second, what information are you looking for that's not returned
by ifconfig and route? Routing information appears to be in
/proc/net/route, but it's not completely readable; I can't find
all of the information from ifconfig; some of it is in /proc/net/
but it's not easily readable, either. Perhaps if you describe
your needs someone can tell you what you're looking for.

- --keith


- --
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBW4PshVcNCxZ5ID8RAhZwAJ9INTUsBSDUZatTlFJAG2 3UGPAbaACeKMZI
vFdpxEQZC7tNEER99A45IAc=
=eAJV
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:00 PM
arty5ta
 
Posts: n/a
Default Re: net config settings - where stored?

"Keith Keller" <kkeller-usenet@wombat.san-francisco.ca.us> wrote in message
news:hocs22xte8.ln2@goaway.wombat.san-francisco.ca.us...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2004-09-30, arty5ta <arty5ta@hotmail.com> wrote:
>> I was just wandering where are my net configuration settings stored?
>> and I don't mean those that can be written to either rc.inet1 or
>> rc.inet1.conf file, but those that take place when set using ifconfig or
>> netconfig commands and which are reset after system's reboot.

>
> First, if you use netconfig, the results *are* written to
> rc.inet*.conf.


So i thought, but when I looked at my rc.inet1.conf it is just an empy
template. I know though, that i have eth0 and eth1 configured to my
specification ('cos it works and these info is returned by ifconfig).

>
> Second, what information are you looking for that's not returned
> by ifconfig and route? Routing information appears to be in
> /proc/net/route, but it's not completely readable; I can't find
> all of the information from ifconfig; some of it is in /proc/net/
> but it's not easily readable, either. Perhaps if you describe
> your needs someone can tell you what you're looking for.
>
> - --keith


I was tinking that if I found a file where all these configs are written to,
I could copy it to my rc.inet1.conf file (what's the point of setting up the
ethernet devices with netconfig of ifconfig if it resets after reboot???)
maybe I should just edit manually my rc.inet1.conf but i think there si
something obvios that missing here.

arty5ta


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:00 PM
Jeffrey Froman
 
Posts: n/a
Default Re: net config settings - where stored?

arty5ta wrote:

> (what's the point of setting up the
> ethernet devices with netconfig of ifconfig**if*it*resets*after*reboot???)


It doesn't. Using netconfig to set up your network (not ifconfig) writes
your /etc/rc.d/rc.inet1.conf file, permanently, and it will be honored at
every boot. netconfig will only store settings for one interface though --
if you need to configure more than one ethernet card, you'll have to hand
edit /etc/rc.d/rc.inet1.conf after running netconfig, to enter the second
card's info.

Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:01 PM
Keith Keller
 
Posts: n/a
Default Re: net config settings - where stored?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-09-30, arty5ta <arty5ta@hotmail.com> wrote:
>
> So i thought, but when I looked at my rc.inet1.conf it is just an empy
> template. I know though, that i have eth0 and eth1 configured to my
> specification ('cos it works and these info is returned by ifconfig).


Hmm--you may have an old netconfig lying around? In a typical Slackware
10 install (such as mine!), netconfig writes rc.inet1.conf. When you
run netconfig, does rc.inet1 change? If so, I'd strongly suspect an old
netconfig. If not, that sounds like something is hosed somewhere. (I'm
not sure where you'd have something hosed, sorry.)

> I was tinking that if I found a file where all these configs are written to,
> I could copy it to my rc.inet1.conf file (what's the point of setting up the
> ethernet devices with netconfig of ifconfig if it resets after reboot???)
> maybe I should just edit manually my rc.inet1.conf but i think there si
> something obvios that missing here.


It does not sound all that obvious, given the above. If netconfig is
not writing rc.inet1.conf (or rc.inet1) properly, it's certainly worth
writing rc.inet1.conf yourself, see if it works, then try to figure out
why netconfig isn't writing rc.inet1.conf properly (if you really care
at that point).

To indirectly answer your original question, there's no other place that
information formatted like rc.inet1.conf is written. So your choices
are to write/modify it yourself, or figure out what's borked about
netconfig.

- --keith

- --
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBXG2whVcNCxZ5ID8RArQlAJ4qpKAxc5gCmjhZ2eN09E gy1Fm0XACcC8JL
K+pK9Vz9r6TZYQuG/qURofY=
=CWMM
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 04:01 PM
Rich Grise
 
Posts: n/a
Default Re: net config settings - where stored?

On Wednesday 29 September 2004 08:56 pm, Keith Keller did deign to grace us
with the following:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2004-09-30, arty5ta <arty5ta@hotmail.com> wrote:
>> I was just wandering where are my net configuration settings stored?
>> and I don't mean those that can be written to either rc.inet1 or
>> rc.inet1.conf file, but those that take place when set using ifconfig or
>> netconfig commands and which are reset after system's reboot.

>
> First, if you use netconfig, the results *are* written to
> rc.inet*.conf.
>
> Second, what information are you looking for that's not returned
> by ifconfig and route?


Well, there's this:

rich@entheos:/etc/dhcpc
$ cat dhcpcd-eth0.info
IPADDR=10.0.0.199
NETMASK=255.0.0.0
NETWORK=10.0.0.0
BROADCAST=10.255.255.255
GATEWAY=10.0.0.1
DOMAIN='dsl-verizon.net'
DNS=10.0.0.1,4.2.2.4,4.2.2.5
DHCPSID=10.0.0.1
DHCPGIADDR=0.0.0.0
DHCPSIADDR=10.0.0.1
DHCPCHADDR=00:0A:E6:A7:7D:24
DHCPSHADDR=00:02:2A:CB:49:CE
DHCPSNAME=''
LEASETIME=86400
RENEWALTIME=43200
REBINDTIME=75600
INTERFACE='eth0'
CLASSID='Linux 2.4.26 i686'
CLIENTID=00:0A:E6:A7:7D:24
rich@entheos:/etc/dhcpc
--------------------------
And I swear that one time I saw a text file that had the names and
part numbers and all kinds of info about my ethernet adapters,
but I can't find it for the life of me. Any ideas there?

> Routing information appears to be in
> /proc/net/route, but it's not completely readable; I can't find
> all of the information from ifconfig; some of it is in /proc/net/
> but it's not easily readable, either. Perhaps if you describe
> your needs someone can tell you what you're looking for.
>

Good Idea. ;-)

Cheers!
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 04:01 PM
Rich Grise
 
Posts: n/a
Default Re: net config settings - where stored?

On Thursday 30 September 2004 01:33 pm, Keith Keller did deign to grace us
with the following:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2004-09-30, arty5ta <arty5ta@hotmail.com> wrote:
>>
>> So i thought, but when I looked at my rc.inet1.conf it is just an empy
>> template. I know though, that i have eth0 and eth1 configured to my
>> specification ('cos it works and these info is returned by ifconfig).

>
> Hmm--you may have an old netconfig lying around? In a typical Slackware
> 10 install (such as mine!), netconfig writes rc.inet1.conf. When you
> run netconfig, does rc.inet1 change? If so, I'd strongly suspect an old
> netconfig. If not, that sounds like something is hosed somewhere. (I'm
> not sure where you'd have something hosed, sorry.)
>


Frankly, it sounds to me like dhcpcd is coming up by default, and arty5a
just doesn't know it.

Post your entire /etc/rc.inet1.conf here.
run /sbin/ifconfig -a and post its output here.
run lsmod and post its output here.
If you have an /etc/dhcpc/dhcpcd-eth0.info and/or
/etc/dhcpc/dhcpcd-eth1.info, post them here.

It might not even hurt to post /etc/rc.d/rc.M, /etc/rc.d/rc.inet1,
/etc/rc.d/rc.inet2, /etc/rc.d/rc.modules, /etc/rc.d/rc.local,
and /etc/rc.d/rc.netdevice. They're only about a total of 2K of text,
after all. ;-)

Then, since by the grace of a couple of snorts of vodka and a couple of
nice tokes I'm feeling magnanimous, I'll take a look at it, diagnose it by
telepathy, and tell you exactly which sections of the manpages and HOWTOs to
read to find all of the answers. :-)

Sound like a deal?

Cheers!
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com