Re: [SLUG] ifconfig not gettting set

From: Mike Branda (realraccoon@tampabay.rr.com)
Date: Sat May 07 2005 - 22:55:20 EDT


On Sat, 2005-05-07 at 11:28 -0700, Chuck Hast wrote:
> Folks,
> I have asked about this before, and have poked and poked at it, what is
> at issue is that the eth0 port is not getting set up, the machine is a toshiba
> laptop, I think that the eth0 parameters are being sent to it either too soon
> (it is a pcmcia nic card) or it is getting partially setup but again possibly
> too soon.
>
> My fix has been to log in and root after the machine has finished booting
> do a ifdown eth0 and then do a ifup eth0.
>
> If I just fo a ifup eth0 it tells me that the device is already configured.
>
> When I watch the startup screen go by I see it attempt to configure eth0
> it fails and defers it then it does so again, it detects the card speed (10
> mb) but does not appear to load in the ip, mask, gw etc.
>
> I am trying to figure out where to go in and try make it do that a bit later.
> I can see possible places in the rc.d files, but even though I poke at the
> run sequences I still can not get the thing to load in the proper configur-
> ation beyond the fact that the card is there, but just needs to be pulled
> down and then up.

Depending on your distro and assuming init 5, usually it's
in /etc/rc.d/rc5.d/ or /etc/init.d/rc5.d/ or some variation thereof. If
you do an ls -la in that directory you'll see a bunch of K's and S's
with numbers after them. the K's are things that are killed off in that
run level and the S's are things that are started. They trigger in
order of increasing number. here's an snip from an ls on my rc5 with
the area in question:

lrwxrwxrwx 1 root root 9 2005-02-07 00:47 S01pcmcia -> ../pcmcia
lrwxrwxrwx 1 root root 9 2005-02-07 00:37 S01random -> ../random
lrwxrwxrwx 1 root root 10 2005-02-07 01:56 S05network -> ../network
lrwxrwxrwx 1 root root 9 2005-02-07 00:39 S06syslog -> ../syslog

If you wanted to start network later (keeping in mind that other things
may need network where before they come up) you could do something as
simple as "mv S01network S08network" and it would move it. This is a
very crude way to do this as most things in the run levels have defaults
built in to them as to where they should be and what they are dependent
upon but it should get you going to test it. To move it back just
reverse the numbers.

HTH!!

Mike Branda Jr.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:44:19 EDT