after lan cable reconnect Pi is not asking DHCP

Bug #1200391 reported by winamp
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Expired
Undecided
Unassigned

Bug Description

When I power off and on router where Pi is connected by UTP cable, Pi is not asking DHCP server for new IP (on router Pi is not in DHCP table), even if ifplugd is running (by default).

pi@raspberrypi ~ $ ps ax | grep ifplugd
1674 ? S 0:00 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I
1679 ? S 0:00 /usr/sbin/ifplugd -i lo -q -f -u0 -d10 -w -I

This can be problem in case, when you restart router and you don't remember IP address of PI and you can't see it on router's DHCP table, so you can't connect to Pi and only hard reset of Pi can force Pi to make DHCP request.

Revision history for this message
Diederik (didi-debian) wrote :

Is this still an issue?

What happens if you add the following line to /etc/network/interfaces?
allow-hotplug eth0

Changed in raspbian:
status: New → Incomplete
Revision history for this message
winamp (krosik-deactivatedaccount) wrote : Re: [Bug 1200391] Re: after lan cable reconnect Pi is not asking DHCP

hello

i can not test anymore, now is on Pi static IP address and I can not change
it for testing. anyway in interfaces there was not "allow-hotplug eth0", so
if this was the solution maybe it should be in this file as default from
clean raspbian installation.

thx

---------- Původní zpráva ----------
Od: Diederik <email address hidden>
Komu: <email address hidden>
Datum: 12. 1. 2016 17:11:18
Předmět: [Bug 1200391] Re: after lan cable reconnect Pi is not asking DHCP

"Is this still an issue?

What happens if you add the following line to /etc/network/interfaces?
allow-hotplug eth0

** Changed in: raspbian
Status: New => Incomplete

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1200391

Title:
after lan cable reconnect Pi is not asking DHCP

Status in Raspbian:
Incomplete

Bug description:
When I power off and on router where Pi is connected by UTP cable, Pi
is not asking DHCP server for new IP (on router Pi is not in DHCP
table), even if ifplugd is running (by default).

pi@raspberrypi ~ $ ps ax | grep ifplugd
1674 ? S 0:00 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I
1679 ? S 0:00 /usr/sbin/ifplugd -i lo -q -f -u0 -d10 -w -I

This can be problem in case, when you restart router and you don't remember
IP address of PI and you can't see it on router's DHCP table, so you can't
connect to Pi and only hard reset of Pi can force Pi to make DHCP request.

To manage notifications about this bug go to:
https://bugs.launchpad.net/raspbian/+bug/1200391/+subscriptions"

Revision history for this message
Diederik (didi-debian) wrote :

> in interfaces there was not "allow-hotplug eth0"

It is pretty common with wireless devices as they are more often unplugged and plugged in, but not so much with ethernet devices as they're normally only plugged in and therefor only 'need' "auto eth0".

I do not know whether "allow-hotplug eth0" would fix the issue, hence my request to try whether it would.
The "allow-hotplug eth0" line essentially means do something on a kernel event, so it was an educated guess.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Raspbian because there has been no activity for 60 days.]

Changed in raspbian:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.