`nexthop` at "ip route" command.

From: Eduardo (sombrabr@ig.com.br)
Date: Tue Aug 28 2001 - 16:11:04 EST


Hi -

I have a router with two interfaces, each one to a different carrier. At
the router, my default gateway is to carrier #1. Well, the router is
connected directly to a Linux firewall box and I need, depending on the
source information of a packet, to route the packet to carrier #2.

I think that I can use the 'ip rule' and 'ip route' commands. As the
firewall default gateway is the router box, I think that I could set the
'nexthop' parameter at the 'ip route' command to do the correct output
interface routing when the packet arrives the router, using a command
like this:

ip route add default via *router-ip* nexthop via *router-device-2-ip*

But I get the following error:

*RTNETLINK answers: Invalid argument*

What this could be?

Thanks,

Eduardo
mailto:sombrabr@ig.com.br

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:39 EST