How to set up static IP in 12.04 and avoid these start-up delays?

Tom H tomh0665 at gmail.com
Thu Oct 4 14:23:17 UTC 2012


On Thu, Oct 4, 2012 at 9:06 AM, Chris Green <cl at isbd.net> wrote:
> On Thu, Oct 04, 2012 at 01:59:24PM +0100, Chris Green wrote:
>> On Thu, Oct 04, 2012 at 08:08:43AM -0400, Tom H wrote:
>>>>
>>>> To debug the situation you could create /etc/network/if-up.d/0000debug with
>>>>
>>>> exec >> /var/log/ifup-d.log 2>&1
>>>> echo "Running if-up.d scripts for $IFACE"
>>>> set -x
>>>>
>>>> and then look at that log file when the server boots.
>>>
>>> I'd put that snippet (more or less) into every script in
>>> "/etc/network/if-up.d/" because I don't think that 0000debug'll act on
>>> the other scripts - and it should be "chmod -x"'d.
>>>
>> You're quite right, the 0000debug didn't do any good so I have added the
>> above (with the name of the script changed) to each script in if-up.d.
>>
>> ... listen to this space! :-)
>
> Here's the result (attached, it's a bit long), I can't see anything wrong.

Your attachment looks like the output of the wpasupplicant script -
and it looks OK. Is it the only one in "/etc/network/ifup.d/"?

Before you follow Marius' debug suggestion (which is good), I'd
correct the "broadcast" line "/etc/network/interfaces" (or delete it
and the "network" line), comment out the eth1-related lines, and check
whether the pause in your boot sequence's still there. If it still is,
add debug lines to all the "/etc/network/ifup.d/" scripts and...




More information about the ubuntu-users mailing list