Source address selection with IPv6
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
srcdirective 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
