public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
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	[thread overview]
Message-ID: <201101241728.49539.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <AANLkTimby7W7Lx2QMwEr7xomuBS+PfW8xajKCRe4h3cK@mail.gmail.com>

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



  reply	other threads:[~2011-01-24 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-24 15:15 [gentoo-user] Adding more than one static IP Amar Cosic
2011-01-24 15:28 ` Alan McKinnon [this message]
2011-01-24 17:59 ` Graham Murray
2011-01-25  3:35 ` Walter Dnes
2011-01-25  8:01 ` Adam Carter
2011-01-25 11:08   ` Amar Cosic
2011-01-25 16:48     ` Marius Vaitiekunas
2011-01-31 14:54 ` Bill Longman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201101241728.49539.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox