Two gateway

Linux Advanced Routing and Traffic Control

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

 



I've just used multiple routing, load balancing between interfaces, but
now i've the need to load balance (route based) between two gateway on
the same interface.

eg, an interface (say 'eth2') with address 10.27.254.254, netmask /24,
connected with two router (10.27.254.252 and 10.27.254.251), both have
2Mbit/s symmetric capacity.

Routing seems to me not a trouble at all:

        ip route replace 10.0.0.0 netmask 255.0.0.0 scope global \
                nexthop via 10.27.254.251 dev eth2 weight 2 \
                nexthop via 10.27.254.252 dev eth2 weight 2

(but i've to test it).

But how to policy correctly the connections? I can surely policy on
eth2, but clearly this is not optimal.
There's a filter (i suppose, u32) that match on the routing decision?
I've to match against dest MAC address?


But also... there's some better way to do what i need? ;-)


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




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux