<div dir="ltr"><div>Dear developers.</div><div><br></div> I have a question about if i can use IPv6SendRA and IPv6AcceptRA in a same .network file.<br><br> Here's the situation. My VPS provider offers an IPv6 /64 prefix for my machine.<br><br> I can achieve SLAAC via radvd + systemd-networkd using following config.<br><br><br> /etc/radvd.conf<br> ```<br>interface eth0<br>{<br> AdvSendAdvert on;<br> MinRtrAdvInterval 30;<br> MaxRtrAdvInterval 100;<br> prefix <prefix>::/64<br> {<br> AdvOnLink on;<br> AdvAutonomous on;<br> AdvRouterAddr off;<br> };<br> RDNSS <DNS1> <DNS2><br> {<br> };<br>};<br><br> ```<br><br> /etc/systemd/network/eth0.network<br> ```<br>[Match]<br>Name=eth0<br><br>[Network]<br>IPv6AcceptRA=yes<br>Gateway=fe80::1<br><br>...other ipv4 config<br><br> ```<br><br><br>
However, i found that systemd-networkd have IPv6SendRA options, so i
tried to do all things in systemd-networkd , but it failed to get an
IPv6 address.<br><br> here's my config<br> /etc/systemd/network/eth0.network<br> ```<br>[Match]<br>Name=eth0<br><br>[Network]<br>IPv6AcceptRA=yes<br>IPv6SendRA=yes<br>Gateway=fe80::1<br><br><br>[IPv6SendRA]<br>DNS=<DNS1><br>DNSLifetimeSec=100<br><br>[IPv6PRefix]<br>Prefix=<prefix><br><br> ```<br><br> I also tried adding RouterLifetimeSec=0 to [IPv6SendRA] section but it still failed to get an IPv6 address.<br><br> I did a tcpdump : `tcpdump -vvvv -n -i any icmp6`. and i can see `router solicitation` and `router advertisement` messages.<br><br> So is my configuration wrong ,or does systemd-networkd support this kind of operation ?<br><br> Systemd version<br> `<br> systemctl --version<br> systemd 249 (249.7-2-arch)<br>
+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS
+OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD
+LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4
+XZ +ZLIB +ZSTD +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified<br> `<br><br><div>Thanks.</div><div><br></div><div>Best regards,</div><div>Jack<div class="gmail-adL"><br></div></div></div>