Subject: [alpine-devel] Udhcpc doesn't respond to hotplug of cable. How about add ifplugd to the repo?

From: 段垚 <[email-masked]>
Date: Wed, 29 Mar 2017 13:17:45 +0800

Hi,

Udhcpc doesn't respond to hotplug of network cable -- i.e. keep outdated 
IP address etc. after the machine reconnected with a new cable [1].

Following the suggestion in [1], I installed ifplugd in Alpine, and it 
does work with udhcpc, i.e. re-configure interface after plug in a cable.

How about add ifplugd to the repo? Or do you have other solutions?

[1] https://dev.openwrt.org/ticket/9367

Regards,
Duan, Yao

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Jeff Pohlmeyer <[email-masked]>
Date: Wed, 29 Mar 2017 01:40:22 -0500

On Wed, Mar 29, 2017 at 12:17 AM, <[email-masked]> wrote:

> Udhcpc doesn't respond to hotplug of network cable -- i.e. keep outdated IP
> address etc. after the machine reconnected with a new cable [1].

> How about add ifplugd to the repo? Or do you have other solutions?

Another option might be to enable ifplugd applet in busybox.

( As an aside, I would personally like to see busybox built with *ALL*
available applets enabled.  The added functionality would be well worth
the slight incease in size, IMO. )

 -- Jeff

---

---

From: 段垚 <[email-masked]>
Date: Wed, 29 Mar 2017 15:27:29 +0800

> the slight incease in size, IMO. )

I like the idea.

---

---

From: Natanael Copa <[email-masked]>
Date: Wed, 29 Mar 2017 10:33:51 +0200

On Wed, 29 Mar 2017 13:17:45 +0800

> [1] https://dev.openwrt.org/ticket/9367

I suppose the simplest way to solve this would be:

  apk add dhcpcd

dhcpcd monitors link status so it should work out of the box.

-nc

---

---

From: 段垚 <[email-masked]>
Date: Wed, 29 Mar 2017 20:11:22 +0800

> dhcpcd monitors link status so it should work out of the box.

Nice solution. Thank you very much!

I think it would be more convenient to add an option in 
`setup-interfaces` script to use
dhcpcd instead of udhcpc.

Duan, Yao

---

---

From: Natanael Copa <[email-masked]>
Date: Wed, 29 Mar 2017 14:37:58 +0200

On Wed, 29 Mar 2017 20:11:22 +0800
** <[email-masked]> wrote:

> * 2017/3/29 16:33, Natanael Copa **:

Yeah, but I thought that its not worth it since a simple "apk add
dhcpcd" solves it. Might be good to add to documentation though.

---

---

From: 段垚 <[email-masked]>
Date: Wed, 29 Mar 2017 23:11:10 +0800

> dhcpcd" solves it. Might be good to add to documentation though.

Fair enough :)

---