Ubuntu 11.10 Waiting up to 60 more seconds for network configuration…

http://www.codewhirl.com/2011/10/ubuntu-11-10-waiting-up-to-60-more-seconds-for-network-configuration/

  1. Ubuntu 11.10 Waiting up to 60 more seconds for network configuration…

    Ubuntu 11.10 Oneiric Ocelot was released last week, and has brought a few issues with it. One distressing new feature I found was that when booting it would hang for around a minute with the message ‘Waiting for network configuration…’ and then hang again with the message ‘Waiting up to 60 more seconds for network configuration…’.

    I have found the cause of this is having any interfaces defined in /etc/network/interfaces ( besides lo ) defined as auto. To correct this problem, the recommended solution is to remove your interfaces from this file, and set them up with network manager. Leaving /etc/network/interfaces looking like the default:

    1
    2
    auto lo
    iface lo inet loopback

    In my case, my network needs a bridge to operate, and since network manager does not allow to configure bridges, it MUST be defined in this file.

    So, the only other solution must be to edit ‘Waiting for network configuration…’ script. This script is actually located here: /etc/init/failsafe.conf

    Around 25 lines down in the file you will see a section:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    # Plymouth errors should not stop the script because we *must* reach
         # the end of this script to avoid letting the system spin forever
         # waiting on it to start.
             $PLYMOUTH message --text="Waiting for network configuration..." || :
             sleep 40
     
             $PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
             sleep 59
             $PLYMOUTH message --text="Booting system without full network configuration..." || :

    To solve the problem, you can just remove the calls to sleep, by commenting the out ( or at least reduce the wait time if your network really does need to wait )

    1
    2
    3
    4
    5
    6
    7
    8
    9
    # Plymouth errors should not stop the script because we *must* reach
         # the end of this script to avoid letting the system spin forever
         # waiting on it to start.
             $PLYMOUTH message --text="Waiting for network configuration..." || :
             #sleep 40
     
             $PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
             #sleep 59
             $PLYMOUTH message --text="Booting system without full network configuration..." || :
    Bookmark the permalink.
    There are
    to Ubuntu 11.10 Waiting up to 60 more seconds for network configuration…

    1. Funny, I had these lines commented in he interfaces file, but the problem persists. In fact, something automagically recreated these lines again on top of my comments!

      > auto lo
      > iface lo inet loopback
      >
      > #auto eth0
      > #iface eth0 inet dhcp

      So this fix did not work for me. Still looking for a definitive solution to this.

      Thanks!


  2. It sounds like it didn’t work because something added the eth0 lines back to your /etc/network/interfaces file during your reboot. I’m not sure which process would do this, but a possible workaround would be to remove the eth0 references again from /etc/network/interfaces, and then run:

    chattr +i /etc/network/interfaces

    This will make it so nothing can change the contents of the file until you remove the ‘i’ attribute ( chattr -i /etc/network/interfaces )


  3. Worked for me like charm. Thanks.


  4. Tks a lot man. u saved my life!

    greets from Brazil!


  5. Tnx!my problem is fix.
    Greets from Ukraine.


  6. Pingback March 1, 2012: Ubuntu 11.10 disable "Waiting up to 60 more seconds for network configuration"


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值