RecDev
Posts: 5
Joined: Wed Jan 28, 2015 11:56 am

120 seconds network wait on boot

Thu Feb 26, 2015 3:45 pm

When I configure a static ip for the Raspberry Pi (Latest Raspian Wheezy on a B+), in order to let it have an IP when a laptop connects with an Ethernet cable (The only way it will be connected to anything), the boot has a 120 seconds wait ("Waiting up to X more seconds for network" message pops up until it finally finishes the boot process)
All I did was set "ip=192...." in the /boot/cmdline.txt.

I have found no way to remove or reduce this wait time, as raspian lacks a failsafe.conf where such timeouts are usually found.

Is there a way to change it, or am I missing something vital regarding the static IP setup for direct network connections with no DHCP involved?

User avatar
rpdom
Posts: 14719
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: 120 seconds network wait on boot

Thu Feb 26, 2015 3:57 pm

Don't set the ip= in cmdline.com. Set the interface as static in /etc/network/interfaces.

Code: Select all

iface eth0 static
    address 192.168.x.x
    netmask 255.255.255.0
    gateway 192.168.x.y

User avatar
topguy
Posts: 5617
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: 120 seconds network wait on boot

Thu Feb 26, 2015 4:00 pm

I believe it better to edit "/etc/network/interfaces" to set a static IP-address. If this file still specifies dhcp then it will try to run the dhcp client and waste a lot of time.

RecDev
Posts: 5
Joined: Wed Jan 28, 2015 11:56 am

Re: 120 seconds network wait on boot

Thu Feb 26, 2015 4:41 pm

Thanks, this way worked fine!

Return to “Networking and servers”