Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static IPv6 address removed when SLAAC used #18

Open
arno481 opened this issue Nov 13, 2020 · 2 comments
Open

Static IPv6 address removed when SLAAC used #18

arno481 opened this issue Nov 13, 2020 · 2 comments

Comments

@arno481
Copy link

arno481 commented Nov 13, 2020

Hi

when I create the following config, and enable radvd (IPv6 address auto configuration), router1 and router3 get a SLAAC address, but their static address is deleted.

---

#
#  router1 -aa- router2 -bb- router3
#

switches: 2

machines:
  router1:
    type: router
    interfaces:
      eth12:
        ipv4: 192.168.0.1/24   # Artefact
        ipv6: 2001:0db8:ffff:00aa::1/64
        mac: 00:00:00:00:01:11
        bridge: 0
  router2:
    type: router
    interfaces:
      eth12:
        ipv4: 192.168.0.2/24   # Artefact
        ipv6: 2001:0db8:ffff:00aa::2/64
        mac: 00:00:00:00:02:12
        bridge: 0
      eth23:
        ipv4: 10.0.0.2/24       # Artefact
        ipv6: 2001:0db8:ffff:00bb::2/64
        mac: 00:00:00:00:02:23
        bridge: 1
  router3:
    type: router
    interfaces:
      eth23:
        ipv4: 10.0.0.3/24      # Artefact
        ipv6: 2001:0db8:ffff:00bb::3/64
        mac: 00:00:00:00:03:23
        bridge: 1

Then enable RADVD config on router2:

  1. Create /etc/radvd.conf
interface eth12
{
        AdvSendAdvert on;
        prefix 2001:db8:400:600::/64
        {
        };
};

interface eth23
{
        AdvSendAdvert on;
        prefix 2001:db8:400:629::/64
        {
        };
};
  1. systemctl enable radvd
  2. systemctl start radvd
@Erik-Lamers1
Copy link
Owner

I'm not able to reproduce your problem. If I spin up an environment with the config you pasted and I enable radvd with only the configuration from above it works fine for me, even after a restart of the environment.

root@router1:~# ping 2001:db8:400:600:200:ff:fe00:111
PING 2001:db8:400:600:200:ff:fe00:111(2001:db8:400:600:200:ff:fe00:111) 56 data bytes
64 bytes from 2001:db8:400:600:200:ff:fe00:111: icmp_seq=1 ttl=64 time=0.057 ms
64 bytes from 2001:db8:400:600:200:ff:fe00:111: icmp_seq=2 ttl=64 time=0.045 ms
^C
--- 2001:db8:400:600:200:ff:fe00:111 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1031ms
rtt min/avg/max/mdev = 0.045/0.051/0.057/0.006 ms
root@router1:~# ping 2001:db8:400:629:200:ff:fe00:223
PING 2001:db8:400:629:200:ff:fe00:223(2001:db8:400:629:200:ff:fe00:223) 56 data bytes
64 bytes from 2001:db8:400:629:200:ff:fe00:223: icmp_seq=1 ttl=64 time=0.244 ms
64 bytes from 2001:db8:400:629:200:ff:fe00:223: icmp_seq=2 ttl=64 time=0.066 ms
^C
--- 2001:db8:400:629:200:ff:fe00:223 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1010ms
rtt min/avg/max/mdev = 0.066/0.155/0.244/0.089 ms
root@router1:~# ping  2001:db8:400:629:200:ff:fe00:323
PING 2001:db8:400:629:200:ff:fe00:323(2001:db8:400:629:200:ff:fe00:323) 56 data bytes
64 bytes from 2001:db8:400:629:200:ff:fe00:323: icmp_seq=1 ttl=63 time=0.135 ms
64 bytes from 2001:db8:400:629:200:ff:fe00:323: icmp_seq=2 ttl=63 time=0.080 ms
^C
--- 2001:db8:400:629:200:ff:fe00:323 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1015ms
rtt min/avg/max/mdev = 0.080/0.107/0.135/0.029 ms
root@router1:~# ping 2001:db8:ffff:aa::2
PING 2001:db8:ffff:aa::2(2001:db8:ffff:aa::2) 56 data bytes
64 bytes from 2001:db8:ffff:aa::2: icmp_seq=1 ttl=64 time=0.104 ms
64 bytes from 2001:db8:ffff:aa::2: icmp_seq=2 ttl=64 time=0.066 ms
^C
--- 2001:db8:ffff:aa::2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1022ms
rtt min/avg/max/mdev = 0.066/0.085/0.104/0.019 ms

Maybe your setup is different? I'm running on a freshly installed 20.04 machine.

@arno481
Copy link
Author

arno481 commented Nov 16, 2020

I cannot reproduce it either now. VM 20.04, git commit 061f0cd

Saw it twice with different radvd.conf. I swear ;o)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants