Le mercredi 06 juin 2018 à 13:55 +0200, Bastien Durel a écrit :
> Hello,
> 
> I run rtadvd on a router, which also run ospfd (on 6.3).
> 
> rtadvd runs with static config (noifprefix):
> fremen# cat /etc/rtadvd.conf
> em0:\
>          :rdnss="2a01:e35:8aea:ac42::10":\
>          :dnssl="geekwu.org":\
>          :addr0="2001:41d0:fe4b:ec21::":\
>          :addr1="2a01:0e35:8aea:ac41::":\
>          :noifprefix:
> em1:\
>          :rdnss="2a01:e35:8aea:ac42::10":\
>          :dnssl="geekwu.org":\
>          :addr0="2a01:e35:8aea:ac42::":\
>          :addr1="2001:41d0:fe4b:ec42::":\
>          :noifprefix:
> em5:\
>          :rdnss="2001:41d0:fe4b:ec42::10":\
>          :dnssl="geekwu.org":\
>          :addr0="2a01:e35:8aea:ac43::":\
>          :noifprefix:
> em4:\
>          :rdnss="2001:41d0:fe4b:ec42::10":\
>          :dnssl="geekwu.org":\
>          :addr="2001:41d0:fe4b:ecff::":\
>          :noifprefix:
> 
> if an ospf neighbour start advertising a new network (in my case
> 2001:41d0:fe4b:ecf1::/64), a route is inserted in the kernel:
> 
> fremen# route -n show -inet6|grep ecf1
> 2001:41d0:fe4b:ecf1::/64           fe80::225:22ff:fe1e:bb7%em1    UG 
>      0      594     -    32 em1
> but rtadvd starts advertising it on the link with the said neighbour.
> 
> I get this from radvdump running on a Linux host on this link:
> #
> # radvd configuration generated by radvdump 2.17
> # based on Router Advertisement from fe80::8621:df60:6d70:8da
> # received by interface enp2s0
> #
> 
> interface enp2s0
> {
>       AdvSendAdvert on;
>       # Note: {Min,Max}RtrAdvInterval cannot be obtained with
> radvdump
>       AdvManagedFlag off;
>       AdvOtherConfigFlag off;
>       AdvReachableTime 0;
>       AdvRetransTimer 0;
>       AdvCurHopLimit 64;
>       AdvDefaultLifetime 1800;
>       AdvHomeAgentFlag off;
>       AdvDefaultPreference medium;
>       AdvSourceLLAddress on;
> 
>       prefix 2a01:e35:8aea:ac42::/64
>       {
>               AdvValidLifetime 2592000;
>               AdvPreferredLifetime 604800;
>               AdvOnLink on;
>               AdvAutonomous on;
>               AdvRouterAddr off;
>       }; # End of prefix definition
> 
> 
>       prefix 2001:41d0:fe4b:ec42::/64
>       {
>               AdvValidLifetime 2592000;
>               AdvPreferredLifetime 604800;
>               AdvOnLink on;
>               AdvAutonomous on;
>               AdvRouterAddr off;
>       }; # End of prefix definition
> 
> 
>       prefix 2001:41d0:fe4b:ecf1::/64
>       {
>               AdvValidLifetime 2592000;
>               AdvPreferredLifetime 604800;
>               AdvOnLink on;
>               AdvAutonomous on;
>               AdvRouterAddr off;
>       }; # End of prefix definition
> 
> 
>       RDNSS 2a01:e35:8aea:ac42::10
>       {
>               AdvRDNSSLifetime 900;
>       }; # End of RDNSS definition
> 
> 
>       DNSSL geekwu.org
>       {
>               AdvDNSSLLifetime 900;
>       }; # End of DNSSL definition
> 
> }; # End of interface definition
> 
> Why does rtadvd start advertising this prefix ?
> If I withdraw the prefix from ospf, rtadvd stops advertising it.
> 

BTW, radvd emits this log when the prefix is inserted into ospf

rtadvd[33784]: prefix 2001:41d0:fe4b:ecf1::/64 from fe80::225:22ff:fe1e:bb7 on 
em1 is not in our list

-- 
Bastien

Reply via email to