IP6IP6 tunnel - routing issue

Mobile IPv6 implementation in Linux is using different metric values for each Care-of Addresses, when creates or modifies default routes. This cause, that all of the packets are goes out on the interface which has lower metric value, independently from the tunnel interface. In practice it cause that the packets which are routed into ip6tnl2 are goes out on eth1, instead of the setup, which binds ip6tnl2 to eth2.

Policy routing details

Previously I published a graph about the process how does the policy routing works in Linux. Now, I want to explain it more detailed. This post is based on the third version (dst_entry-v2.1.pdf) of the graph.

The links below with function names, are linked to LXR. The details are based on Linux

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Top WordPress Themes