HomeClusterLabs Projects

Low: IPaddr2: fix to work properly with unsanitized IPv6 addresses

Description

Low: IPaddr2: fix to work properly with unsanitized IPv6 addresses

ip route get shows the sanitized address at $1 or $2 depending on
the address is already assigned to the node or not.

[root@centos73-1 ~]# /sbin/ip route get 2001:db8:101::0001
2001:db8:101::1 dev eth1  proto ra  src 2001:db8:101:0:XXXX:XXXX:XXXX:XXXX  metric 100
[root@centos73-1 ~]# /sbin/ip addr add 2001:db8:101::0001/64 dev eth1
[root@centos73-1 ~]# /sbin/ip route get 2001:db8:101::0001
local 2001:db8:101::1 dev lo  table local  proto none  src 2001:db8:101::1  metric 0

It can not be sanitized if the address is unreachable and on the recent distributions
(probably depending on the iproute package version)

[root@centos73-1 ~]# /sbin/ip route get 2001:db8:201::0001
unreachable 2001:db8:201::1 dev lo  table unspec  proto kernel  src 2001:db8:101:0:XXXX:XXXX:XXXX:XXXX  metric 429496
[root@rhel80-1 ~]# /sbin/ip route get 200:db8:201::0001
RTNETLINK answers: Network is unreachable

Details

Provenance
kskmoriAuthored on Sep 11 2019, 2:33 AM
Parents
rR00cb192d4b27: Merge pull request #1392 from lemenkov/restore_users_on_first_node
Branches
Unknown
Tags
Unknown

Event Timeline