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 1PhOMU-0000P2-GQ for garchives@archives.gentoo.org; Mon, 24 Jan 2011 15:29:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CA13E04F2; Mon, 24 Jan 2011 15:28:19 +0000 (UTC) Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com [74.125.82.41]) by pigeon.gentoo.org (Postfix) with ESMTP id BD405E04F2 for ; Mon, 24 Jan 2011 15:28:18 +0000 (UTC) Received: by wwi18 with SMTP id 18so3377559wwi.4 for ; Mon, 24 Jan 2011 07:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:mime-version:message-id:content-type :content-transfer-encoding; bh=CVc6CxECi3vAwj8AqyD07B/un2dUb34GqWkWeptOnyI=; b=qZqwfPg4SU0NgLiTEuLbQmvL1+WJ72QpBgOUSzPhev4MDfsXNg1QN8MneBjphVdMku MM4ifrA0s0o8nj3nBZvEZ0FuzdD7diVyTLdtSG9zaiOpzp2ix2gXjh7vfs3ANwcshHU0 mbvJmKDeNa0V/vjc9aQj7PaVOIpC2EInZgAvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :message-id:content-type:content-transfer-encoding; b=YihZCMB3kBVcHF4qIdmGPm9Sflsv5iRtURxE3vmimqh0Eogx+zPlIt5q7wdDVF94MC JLlQGynK4NDAxmHmGl2G27rFmcmNHXyH4dxZCWtZ+ixXIXW8ngqKlJF+ueTHX0Zf3Ugt C5JJMxpBSSHxFml30jOrnaq9pi/KrwAFQIw+o= Received: by 10.216.158.21 with SMTP id p21mr2399653wek.99.1295882897874; Mon, 24 Jan 2011 07:28:17 -0800 (PST) Received: from nazgul.localnet (dustpuppy.is.co.za [196.14.169.11]) by mx.google.com with ESMTPS id o33sm6620370wej.37.2011.01.24.07.28.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 07:28:16 -0800 (PST) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Adding more than one static IP Date: Mon, 24 Jan 2011 17:28:49 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.37-ck; KDE/4.5.5; x86_64; ; ) References: In-Reply-To: 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 Message-Id: <201101241728.49539.alan.mckinnon@gmail.com> Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 5f9951be47d043f1a3ff2ffcbf008830 Apparently, though unproven, at 17:15 on Monday 24 January 2011, Amar Cosic did opine thusly: > Hello list > > My mind is just "locked" at the moment and I am trying to figure out what > am I doing wrong here. I have 4 static IP's on server machine and I have > something like this in /etc/conf.d/net : > > > > config_eth0=( "77.xxx.104.14/24" ) > routes_eth0=( "default via 77.xxx.104.1" ) > config_eth0:1=( "77.xxx.104.100/24" ) > routes_eth0:1=( "default via 77.xxx.104.1" ) > config_eth0:2=( "77.xxx.104.101/24" ) > routes_eth0:2=( "default via 77.xxx.104.1" ) > config_eth0:3=( "77.xxx.105.100/24" ) > routes_eth0:3=( "default via 77.xxx.105.1" ) > > > eth0 works just fine while other ones fail. Could you help me with this one You have aliased three additional IPs to a NIC. You cannot add routes to those aliases, only individual IP addresses. You will either have to come up with a routing scheme that routes_eth0 fully satisfies or pony up the cash for three NIC cards. I'd go for option 2 - NICs are dirt cheap. -- alan dot mckinnon at gmail dot com