Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Adding more than one static IP
Date: Tue, 25 Jan 2011 08:03:51
Message-Id: AANLkTinHWJrXb6Y_uRtOB8rM3kJ_eFtM27Xtg+KcOcHH@mail.gmail.com
In Reply to: [gentoo-user] Adding more than one static IP by Amar Cosic
1 > config_eth0=( "77.xxx.104.14/24" )
2 > routes_eth0=( "default via 77.xxx.104.1" )
3 > config_eth0:1=( "77.xxx.104.100/24" )
4 > routes_eth0:1=( "default via 77.xxx.104.1" )
5 > config_eth0:2=( "77.xxx.104.101/24" )
6 > routes_eth0:2=( "default via 77.xxx.104.1" )
7 > config_eth0:3=( "77.xxx.105.100/24" )
8 > routes_eth0:3=( "default via 77.xxx.105.1" )
9 >
10
11 You should let us know what you're trying to achieve with this. Every time I
12 have seen config like this, it has been because of fundamental
13 misunderstandings of networking. More that one IP address on a subnet
14 (unless there are VIPs) = fail.
15
16 Remember routing occurs at layer 3, and for most configs should have no
17 reference physical interface. The OS knows which interface the next hop can
18 be found. In your config you've set the same route three times which makes
19 no sense.
20
21 (ok i've oversimplified, but for 99.9% of cases the above is true)

Replies

Subject Author
Re: [gentoo-user] Adding more than one static IP Amar Cosic <amar.cosic@×××××.com>