On Tue, Jan 25, 2011 at 1:08 PM, Amar Cosic <amar.co...@gmail.com> wrote:
> > > On Tue, Jan 25, 2011 at 9:01 AM, Adam Carter <adamcart...@gmail.com>wrote: > >> >> 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" ) >>> >> >> You should let us know what you're trying to achieve with this. Every time >> I have seen config like this, it has been because of fundamental >> misunderstandings of networking. More that one IP address on a subnet >> (unless there are VIPs) = fail. >> >> Remember routing occurs at layer 3, and for most configs should have no >> reference physical interface. The OS knows which interface the next hop can >> be found. In your config you've set the same route three times which makes >> no sense. >> >> (ok i've oversimplified, but for 99.9% of cases the above is true) >> > > I have this on Debian in /etc/network/interfaces: > > auto lo > iface lo inet loopback > auto eth0 > iface eth0 inet static > address 82.xxx.148.194 > netmask 255.255.255.128 > gateway 82.xxx.148.131 > auto eth0:1 > iface eth0:1 inet static > address 82.xxx.148.195 > netmask 255.255.255.128 > auto eth0:2 > iface eth0:2 inet static > address 82.xxx.148.196 > netmask 255.255.255.128 > auto eth0:3 > iface eth0:3 inet static > address 82.xxx.148.197 > netmask 255.255.255.128 > > > What I want to know is what is equivalent for this on Gentoo. Let's just > say this is VPS server with 4 IP's assigned to me as customer > > > -- > Amar Ćosić > amar.co...@gmail.com > > Hi, I am using like that in /etc/conf.d/net ----- config_eth0=( "ip1 netmask 255.255.255.224" "ip2 netmask 255.255.255.255" "ip3 netmask 255.255.255.255" ) routes_eth0=( "default via your_gw" ) ----- ifconfig doesn't show this info. I use ip command for that: # ip addr I hope it helps. -- mv