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

Marius Gedminas marius at pov.lt
Thu Oct 4 11:40:21 UTC 2012


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.

Marius Gedminas
-- 
Lost packet, 42 bytes, last seen on a saturated OC3, reward $$$.
                -- Eric^2 on Slashdot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20121004/128a5b70/attachment.sig>


More information about the ubuntu-users mailing list