From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RjRB3-0002pm-01 for garchives@archives.gentoo.org; Sat, 07 Jan 2012 07:58:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6721621C072; Sat, 7 Jan 2012 07:58:47 +0000 (UTC) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 14FB321C01F for ; Sat, 7 Jan 2012 07:57:49 +0000 (UTC) Received: by iakk12 with SMTP id k12so4379169iak.40 for ; Fri, 06 Jan 2012 23:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=FuusTwOLOgwgzvyZDXefID3juJYATXgyI4NempGZGQM=; b=pTTxRfwKO6N0L0lACfXSrWw+tZV6Zhhw6WaQhDGqvQPJZmMFgcesI9m5iFk9/ghvvD vJoy4XSLelBcsMyu766ny3FSXDwHBIC68ZhdPROT8hWB/X+GLuUpJxfWsr8v01R9rct7 5t83BnQ/PevDrv2FVnXmmO6TBFU4KJvT55kd0= Received: by 10.42.161.132 with SMTP id t4mr8255234icx.16.1325923069583; Fri, 06 Jan 2012 23:57:49 -0800 (PST) Received: from [192.168.1.3] ([121.246.205.20]) by mx.google.com with ESMTPS id l28sm223174170ibc.3.2012.01.06.23.57.48 (version=SSLv3 cipher=OTHER); Fri, 06 Jan 2012 23:57:49 -0800 (PST) Sender: Nilesh Govindrajan Message-ID: <4F07FAF9.4030607@nileshgr.com> Date: Sat, 07 Jan 2012 13:27:45 +0530 From: Nilesh Govindarajan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111128 Thunderbird/8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: Gentoo User Mailing List Subject: [gentoo-user] Network configuration - Two ips one from dhcp & other static Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 660dddac-5a60-49a8-a872-a70292ff74ec X-Archives-Hash: 6b08b985a57c20c198b44367d9793003 Well, the title tells the question clearly; how do I configure network such that the first ip is obtained via dhcpcd and other is static? config_eth0="dhcp " doesn't work. As a solution I wrote a dhcpcd hook containing /sbin/ifconfig eth0:0 netmask Is there a direct way? -- Nilesh Govindarajan http://nileshgr.com