[lvs-users] loopback network vs IPv6
wferi at niif.hu
Sat Jan 15 10:28:52 GMT 2011
Ferenc Wagner <wferi at niif.hu> writes:
> If I add an IPv4 network to the loopback device, that answers all
> addresses in the network, which is convenient on the fwmark-based
> director (with a corresponding static network route configured on the
> upstream router). These altogether make VIP-less director possible.
> But if I try to do the same with IPv6, no dice. If I add an IPv6
> network to the loopback device, that does NOT answer all the addresses
> in the network, and even if I add a local route for the network, that
> shows up as unreachable in the routing table listing.
> Is it possible to employ some trick to "localize" a network of IPv6
> addresses, so that IPVS catches and routes them?
Looks like the Any-IP support added to 2.6.37 solves this with utter
elegance: 'ip route add PREFIX dev lo' is enough in itself. At least
until the IPVS hook moves into FORWARD...
More information about the lvs-users