On Mon, Jan 24, 2011 at 7:15 AM, Amar Cosic <amar.co...@gmail.com> wrote:

> 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
> ?
>
>
Amar,

You should read up some more on how IP networking is configured and how it
works. A default route is, by definition, the next hop on the local network
to which packets are sent when no other local interface matches the intended
target IP address. Your IP stack looks for local interfaces which match the
target network for the target IP address. If it cannot find any, it has no
other recourse but to forward it to someone who might know better. That's
your default gateway router, and that's its job. If you tell your IP stack
that you have four default gateways, it will get very confused. Get rid of
all but one of those default route statements.

If, on the other hand, you just want your local machine to know the gateways
for those networks, your route statements should be of this form:

routes_eth:2=("77.xxx.104.101/24 via 77.xxx.104.1")

Reply via email to