Source address selection with IPv6

Solution Verified - Updated -

Issue

  • How does IP source selection work in IPv6?
  • An IPv6 source IP address is not expected, a VIP is used as a source instead of a real IP
  • In RHEL 6.3 and earlier, it is not possible to influence the source address selection with the src directive as is possible in IPv4:
# ip route add 10.111.111.0/24 via 10.0.0.1 src 10.0.0.2
# ip route get 10.111.111.0
10.111.111.0 via 10.0.0.1 dev eth0 src 10.0.0.2    # desired source address is chosen
# ip -6 route add fc01:1111::0/64 via fc01::1 src fc01::2
# ip route get fc01:1111::0
fc01:1111:: via fc01::1 dev eth0 src fc01::3    # desired source address is NOT chosen

Environment

  • Red Hat Enterprise Linux
  • IPv6 (Internet Protocol Version 6 addressing)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content