X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-laptop.res.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 763B8DC02C8; Fri, 2 Nov 2012 21:33:22 +0000 (UTC) Date: Fri, 2 Nov 2012 22:33:19 +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: <20121102223319.01a74d0f@ncopa-laptop.res.nor.wtbts.net> In-Reply-To: <5093F44D.8090103@arcor.de> References: <509147AC.8030105@arcor.de> <20121031205406.79aa5da2@ncopa-laptop.res.nor.wtbts.net> <509188C2.7080209@arcor.de> <20121101164021.49481c5f@ncopa-desktop.nor.wtbts.net> <5093F44D.8090103@arcor.de> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; i686-pc-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: quoted-printable On Fri, 02 Nov 2012 17:26:53 +0100 Der Tiger wrote: > > 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 ... =20 > 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. I wouldn't have known it unless Roy himself had told me, and pointing out that its mentioned in the manpage. (something we should add to our wiki so googles indexer finds it?). =46rom the man page: static value Configures a static value. If you set ip_address then dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. Here is an example which configures a static address, routes and dns. interface eth0 static ip_address=3D192.168.0.10/24 static routers=3D192.168.0.1 static domain_name_servers=3D192.168.0.1 Looks like it also has some support for ipv6. I dont know about static. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---