Score:0

IPV6 conflict VM Ubuntu 20.04 - Netplan

ma flag

I have a problem, I've two virtual machines, but the problem is that when I turn on the second VM I lost the connection on the first one and vice versa.

Here is the bridge netplan configuration on the host server :

network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0f0:
      dhcp4: no
      dhcp6: no
  bridges:
    viifbr0:
      addresses:
        - 135.xxx.159.xx/24
        - 2001:xxxx:xxx:500f::/128
      interfaces: [ enp1s0f0 ]
      routes:
        - on-link: true
          to: 0.0.0.0/0
          via: 135.xxx.159.xxx
        - on-link: true
          to: ::0/
          via: 2001:xxxx:xxx:50ff:ff:ff:ff:ff
      gateway6: 2001:xxxx:xxx:50ff:ff:ff:ff:ff
      macaddress: xx:40:xx:fe:xx:7b
      nameservers:
         addresses:
           - 8.8.8.8
           - 8.8.4.4
           - 2001:4860:4860::8888
           - 2001:4860:4860::8844

(IPv6 Forwarding is enabled)

Here is the client network configuration :

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet6 static
        accept_ra 0
        address 2001:xxxx:xxx:500f::a2
        netmask 64


post-up /sbin/ip -r route add 2001:xxxx:xxx:50ff:ff:ff:ff:ff dev eth0
post-up /sbin/ip -r route add default via 2001:xxxx:xxx:50ff:ff:ff:ff:ff

Can you help me ?

Thank you.

Regards, Irkoska

vidarlo avatar
ar flag
No, based on a very vague description and no configuration of the clients, we can't help you. How is the clients configured? Do you have RA functioning, or are you running static assignments?
Irkoska avatar
ma flag
Thank you @vidarlo for your quick reply, I edited the topic to add the client configuration. The configuration is the same on both virtual machines.
vidarlo avatar
ar flag
Both run with the same IP? In the same subnet?
Irkoska avatar
ma flag
All VM have a different IPv6 but the gateway is the same (2001:xxxx:xxx:50ff:ff:ff:ff:ff)
in flag
Do these two VMs by chance have the same MAC address (maybe because one is a clone of the other)?
Irkoska avatar
ma flag
Oooooh my goodness was that the hypervisor had assigned the same mac address on the machines. Thank you @GeraldSchneider. Now I must find why my virtual machines are not reachable.
Score:0
in flag

Make sure the VMs have different MAC addresses. An external DHCP server would not be able to distinguish them with the same MAC address and would assign both the same IP address.

Irkoska avatar
ma flag
Yes of course, the hypervisor had assigned the same mac address on the virtual machines. Thank you. Now I must find why my virtual machines are not reachable.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.