LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Annoying DHCP loop at startup (https://www.linuxquestions.org/questions/linux-newbie-8/annoying-dhcp-loop-at-startup-787930/)

orangesky 02-09-2010 01:40 AM

Annoying DHCP loop at startup
 
Whenever I start debian it runs fine until it gets to the DHCP part.
It completley stops and spends like three minutes with stuff like
Code:

DHCP Request on port 57 interval 4
DHCP Request on port 57 interval 14
DHCP Request on port 57 interval 25
DHCP Request on port 57 interval 12
DHCP Request on port 57 interval 2

Then it gives up.

I don't use dhcp until the computer starts up and I enter in the network credentials. I tried putting dhcpclient in /etc/modprobe.d/blacklist, no luck. Still loops at startup.

How can I stop dhcpclient at startup?

repo 02-09-2010 01:46 AM

Take a look at
http://www.linuxquestions.org/questi...6/#post1661351

orangesky 02-09-2010 09:00 PM

Quote:

Originally Posted by repo (Post 3857515)


I changed all the 'dhcp' to 'static' in /etc/networking/interfaces.
(key and essid x'd out)

Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static

iface wlan0 inet static
wireless-key xxxxxxxxxxx
wireless-essid xxxx

auto wlan0

But it seems this file changes itself every time I connect. I changed it before and it rewrote itself as dhcp instead of static. Still get the DHCP REQUEST loop at start.

evo2 02-09-2010 09:23 PM

Quote:

Originally Posted by orangesky (Post 3858495)
I changed all the 'dhcp' to 'static' in /etc/networking/interfaces.

probably better to just remove the "auto eth0" line if you don't want the interface bought up automatically. Another option is to reduce the dchp timeout in /etc/dhclient.conf to something smaller so you don't have to wait so long for it to fail at boot up.

Quote:

But it seems this file changes itself every time I connect. I changed it before and it rewrote itself as dhcp instead of static. Still get the DHCP REQUEST loop at start.
Are you using some sort of nonstandard network config tool like network-manager or wicd?

Evo2.


All times are GMT -5. The time now is 08:56 PM.