Blog

How to display existing IPv6 routes in Linux?

Does IPv6 have a route cache in Linux?

  • While IPv4 lost its route cache in Linux 3.6 ( commit 5e9965c15ba8 ), IPv6 still has a caching mechanism. However cache entries are directly put in the radix tree instead of a distinct structure. Since Linux 2.1.30 (1997) and until Linux 4.2 ( commit 45e4fd26683c ), almost any successful route lookup inserts a cache entry in the radix tree.

What is the difference between IPv4 and IPv6 in Linux?

  • The IPv6 implementation (introduced in Linux 2.1.8, 1996) predates the IPv4 implementation based on LPC-tries (in Linux 2.6.13, commit 19baf839ff4a). The feature set is different. Notably, IPv6 supports source-specific routing (since Linux 2.1.120, 1998). The IPv4 address space is denser than the IPv6 address space.

What is IPv6 and how does it work?

  • IPv6 can act as a replacement for the IPv4 network protocol. The major problem it solves is the exhaustion of IPv4 addresses by using a much larger network address space. It also provides a number of enhancements and new features for network configuration management and support for future protocol changes.

image-How to display existing IPv6 routes in Linux?
image-How to display existing IPv6 routes in Linux?
Share this Post: