X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.nor.wtbts.net (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id BEBF0DC0379; Thu, 1 Nov 2012 15:40:26 +0000 (UTC) Date: Thu, 1 Nov 2012 16:40:21 +0100 From: Natanael Copa To: Der Tiger Cc: "alpine-devel@lists.alpinelinux.org" Subject: Re: [alpine-devel] [Alpine 2.4] Network Interface Hotplugging Detection Message-ID: <20121101164021.49481c5f@ncopa-desktop.nor.wtbts.net> In-Reply-To: <509188C2.7080209@arcor.de> References: <509147AC.8030105@arcor.de> <20121031205406.79aa5da2@ncopa-laptop.res.nor.wtbts.net> <509188C2.7080209@arcor.de> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 31 Oct 2012 21:23:30 +0100 Der Tiger wrote: > Hi Natanael, > > Thanks for your prompt reply! > > >> It seems Alpine does not detect link up and down events on NICs. > > What kernel is it? > That's 3.4.13, but I can reproduce the behaviour at least down to 3.3. > > > Does it happen with intel nic too? > I'm not sure. I'll have to verify that ASAP. > > > Does it happen with v2.4.5 iso (with 3.3 kernel) > Yepp, it does. > > >> AFAIK, link up and down events are usually handled by daemons like > >> ifplugd, netplugd or hotplug > > add dhcpcd to that list. > Didn't know that. That's, of course, a lead to follow. I'm going to > check the dhcpcd configuration, tomorrow. I just remembered. I think you can run dhcpcd in 2 ways. 1) configure the interface as 'dhcp' in /etc/network/interfaces and let busybox ifup it. 2) remove all interfaces (maybe except lo) from /etc/network/interfaces and then run dhcpcd as standalone. 'rc-service dhcpcd start' and 'rc-update add dhcpcd'. dhcpcd will by default give all interfaces a dhcp address on link detection. You can configure it to ignore given interfaces, and set static ip address on link detect in /etc/dhcpcd/dhcpcd.conf I'm not sure if the link detection is enabled in mode #1 but i know for sure that mode #2 works. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---