Re: load balance [OT?]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-06-04 at 01:03 +0700, Mark Perry wrote:
> Martin wrote:
> >> #ISP 1
> >> ip route add $ISP1_NET dev $ISP1_IF src $ISP1_IP table 1
> >> ip route add default via $ISP1_GW dev $ISP1_IF
> >>
> >> #ISP 2 
> >> ip route add $ISP2_NET dev $ISP2_IF src $ISP2_IP table 2
> >> ip route add default via $ISP2_GW dev $ISP2_IF
> >>
> 
> Shouldn't the default routes here be for table 1 and table 2 respectively?
> 
> You are adding them to the default table?
> 
> I thought the idea was to have 2 new tables each with their own default 
> route?
> 
> mark
> 

Right, I figured out that after sending the first mail to the list.

By now it is:
#ISP 1
ip route add $ISP1_NET dev $ISP1_IF src $ISP1_IP table 1
ip route add default via $ISP1_GW dev $ISP1_IF table 1

#ISP 2 
ip route add $ISP2_NET dev $ISP2_IF src $ISP2_IP table 2
ip route add default via $ISP2_GW dev $ISP2_IF table 2


And then add the defualt with two nexthops at the default route.


Cheers


Martin


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

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux