Later you wrote /112. Is it /126 or /112 ?
/112 My bad, forgot to replace at that place.
This should not be necessary if you add only a single address (/128) to
eth0, not a subnet.
Oh, i didn't think on that (well actually i thought pulling up a single
ip on two interfaces which are physically separated is weird already).
Here is a workaround which may work. IIUC 1234:0:ffff:100::2 is used
only for routing : the ISP's router uses it as the nexthop to route your
prefix. Since your box has IPv6 forwarding enabled, you can use ND
proxy, which does the same as ARP proxy in IPv4.
Do not add 1234:0:ffff:100::2 to eth0. You do not even need to add an
IPv6 global address to eth0 : the box will use any other available
global address (i.e. the one on eth1) when communicating on eth0. Instead :
# add a ND proxy entry for 1234:0:ffff:100::2
ip -6 neigh add proxy 1234:0:ffff:100::2 dev eth0
# add a route to the link subnet 1234:0:ffff:100::/126 (or /112)
ip -6 route add 1234:0:ffff:100::/126 dev eth0
# add the default route
ip -6 route default via 1234:0:ffff:100::1 dev eth0
For kernels 2.6.19 and above, you also need to enable proxy ND on eth0 :
sysctl -w net/ipv6/conf/eth0/proxy_ndp=1
Hm! This clearly shows my lack of knowledge how IPv6 works in the linux
kernel (or how it works overall).
I'll try this out today. Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html