X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D3740DC010D for ; Fri, 2 Nov 2012 16:26:57 +0000 (UTC) Received: from mail-in-14-z2.arcor-online.net (mail-in-14-z2.arcor-online.net [151.189.8.31]) by mx.arcor.de (Postfix) with ESMTP id CD2E1E42C5; Fri, 2 Nov 2012 17:26:54 +0100 (CET) Received: from mail-in-15.arcor-online.net (mail-in-15.arcor-online.net [151.189.21.55]) by mail-in-14-z2.arcor-online.net (Postfix) with ESMTP id C59FE1917C; Fri, 2 Nov 2012 17:26:54 +0100 (CET) Received: from [192.168.16.209] (85-127-17-174.dynamic.xdsl-line.inode.at [85.127.17.174]) (Authenticated sender: panthera.tigris@arcor.de) by mail-in-15.arcor-online.net (Postfix) with ESMTPA id 916251AB54D; Fri, 2 Nov 2012 17:26:54 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-15.arcor-online.net 916251AB54D DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1351873614; bh=kpLfUtOndia9LMC+D9vvlpfe3DjPPsMd85Xf+whwSq4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=CDIehYk/R//vIoETC5AQaHQfRbybLWEh54yjJJvBMG9nVTVaWVqTbb22TEHwzKRLb rrXZ8FhhnwANZVmcVFHFRDzGU5HPFHALodzW7ISNaTxK6xUEe6AdR4Gn1fRr9IhWai Gg7GD4Xt9RCn4k5IMcoj66HwGsMPajKVBUYBveK4= Message-ID: <5093F44D.8090103@arcor.de> Date: Fri, 02 Nov 2012 17:26:53 +0100 From: Der Tiger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Natanael Copa CC: "alpine-devel@lists.alpinelinux.org" Subject: Re: [alpine-devel] [Alpine 2.4] Network Interface Hotplugging Detection References: <509147AC.8030105@arcor.de> <20121031205406.79aa5da2@ncopa-laptop.res.nor.wtbts.net> <509188C2.7080209@arcor.de> <20121101164021.49481c5f@ncopa-desktop.nor.wtbts.net> In-Reply-To: <20121101164021.49481c5f@ncopa-desktop.nor.wtbts.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit ReHi Natanael, >>>> 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. I upgraded my system to Alpine 2.5 rc1 (kernel 3.6.4). Hotplugging is now recognized by the kernel on both NICs, again. I suppose it has been a kernel bug that caused the interfaces (at least the RealTek NIC) to stay down after reconnecting the network cable. I also tried the dhcpcd variant (mode #2 in your description above), but was unable to assign two static ipv4 addresses as well as static ipv6 addresses to a single interface in /etc/dhcpcd.conf. From what I gathered roaming the WWW, dhcpcd isn't able to handle neither static ipv6 addresses, nor multiple ipv4 addresses on the same interface. Anyway, since the ifup/ifdown (mode #1) is now working fine, I see no reason to change to dhcpcd, even if dhcpcd would have been my preferred mode. Thanks for your help! Kind Regards, Tiger --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---