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

Tom H tomh0665 at gmail.com
Thu Oct 4 12:09:23 UTC 2012


On Thu, Oct 4, 2012 at 8:08 AM, Tom H <tomh0665 at gmail.com> wrote:
> On Thu, Oct 4, 2012 at 7:40 AM, Marius Gedminas <marius at pov.lt> wrote:
>> On Thu, Oct 04, 2012 at 12:31:54PM +0100, Chris Green wrote:
>>>
>>> I have just upgraded a little server system from Ubuntu Server 10.04 to
>>> Ubuntu Server 12.04, the upgrade went fairly smoothly and it's basically
>>> all working OK.
>>>
>>> However there is a very annoying delay has appeared in the boot
>>> sequence, while the moving dots display during startup two messages
>>> appear:-
>>>
>>>     Waiting for network configuration...
>>>     [waits for 40 seconds]
>>>     Waiting up to 60 more seconds for network configuration...
>>>     [waits for 60 secodns]
>>>
>>> ... and then the system finally starts up.
>>>
>>> These delays are in the /etc/init/failsafe.conf script and seem to
>>> happen even when the system is properly configured for static IP in
>>> /etc/network/interfaces.
>>
>> You shouldn't be getting any delays if that's the case.
>>
>> Can you show the contents of your /etc/network/interfaces?
>>
>> Maybe one of the hooks in /etc/network/if-up.d is broken and prevents
>> /etc/network/if-up.d/upstart from signalling the system about successful
>> network configuration?  IIRC those scripts are sourced, not executed, so
>> if any of them has 'set -e' and then an error occurs, the others won't
>> even be run.
>>
>> 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.

"chmod +x"!!!

Sorry...




More information about the ubuntu-users mailing list