Linux IPv6 address configuration的思考
默认情况下,现在常用的Linux发型版本都支持IPV6,且同时激活。
此时,如果网络中有一个IPV6的网络设备正在执行ND操作,发送RS消息,linux机器自动回应RA消息,同时,该接口使用IPV6的autoconfiguration功能,自行配置上IPV6地址。
如果该Linux interface收到多个网段的IPV6 RS消息,则,同步会配置上多个IPV6地址。
如:
[asr@Fedora-30-103 ~]$ ip -6 route show10:74:30::/64 dev em1 proto kernel metric 256 expires 2147157sec2001::/64 dev p6p2 proto kernel metric 256 expires 2147157sec2002::/64 dev p6p2 proto kernel metric 256 expires 2147157sec2003::/64 dev p6p2 proto kernel metric 256 expires 2147157sec2003::/64 dev em2 proto kernel metric 256 expires 2147157sec2003::/64 dev p6p3 proto kernel metric 256 expires 2147157secunreachable fe80::/64 dev lo proto kernel metric 256 error -101fe80::/64 dev p6p2 proto kernel metric 256 fe80::/64 dev em1 proto kernel metric 256 fe80::/64 dev em2 proto kernel metric 256 fe80::/64 dev p6p3 proto kernel metric 256 fe80::/64 dev p6p4 proto kernel metric 256 default via fe80::1edf:fff:feb1:f991 dev p6p2 proto kernel metric 1024 expires 1765sec hoplimit 64default via fe80::1edf:fff:feb1:f991 dev em2 proto kernel metric 1024 expires 1765sec hoplimit 64default via fe80::1edf:fff:feb1:f991 dev p6p3 proto kernel metric 1024 expires 1765sec hoplimit 64default via fe80::21e:beff:fef3:fbe0 dev em1 proto kernel metric 1024 expires 1605sec hoplimit 64default via fe80::1edf:fff:feb1:f992 dev p6p2 proto kernel metric 1024 expires 1607sec hoplimit 64default via fe80::224:97ff:fe6a:fe23 dev p6p2 proto kernel metric 1024 expires 1721sec hoplimit 64default via fe80::224:97ff:fe6a:fe24 dev p6p2 proto kernel metric 1024 expires 1728sec hoplimit 64[asr@Fedora-30-103 ~]$
慎重!
否则,路由表一混乱,ping包收到后,回复的echo response将无法原路送回,导致ping永远不成功。