bond+ vmbr = eth0: IPv6 duplicate address detected!

hermelin

Renowned Member
Sep 28, 2012
35
2
73
Hello
I have problem with bond+vmbr and IPv6 in KVM guest.

dmesg: eth0: IPv6 duplicate address detected!

my interfaces config:
Code:
# network interface settings                                                    
auto lo                                                                         
iface lo inet loopback                                                          
                                                                                
iface eth0 inet manual                                                          
                                                                                
iface eth1 inet manual                                                          
                                                                                
iface eth2 inet manual                                                          
                                                                                
iface eth3 inet manual                                                          
                                                                                
auto bond0                                                                      
iface bond0 inet manual                                                         
        slaves eth0 eth1 eth3                                                   
        bond_miimon 100                                                         
        bond_mode balance-rr                                                    
                                                                                
auto vmbr0                                                                      
iface vmbr0 inet static                                                         
        address  xxx.xxx.xxx.xxx                                               
        netmask  255.255.255.0                                                  
        gateway  xxx.xxx.xxx.xxx    
        bridge_ports bond0                                                      
        bridge_stp off                                                          
        bridge_fd 0                                                             
        bridge_maxwait 0                                                        
        bridge_maxage 0                                                         
        bridge_ageing 0

I found this workaround "sysctl net.ipv6.conf.eth0.accept_dad=0" into /etc/sysctl.conf in guest, but this is not ideal

Code:
pveversion -vpve-manager: 2.1-14 (pve-manager/2.1/f32f3f46)
running kernel: 2.6.32-14-pve
proxmox-ve-2.6.32: 2.1-74
pve-kernel-2.6.32-14-pve: 2.6.32-74
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-49
pve-firmware: 1.0-18
libpve-common-perl: 1.0-30
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-31
vncterm: 1.0-3
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-8
ksm-control-daemon: 1.1-1


more about this problem:
http://fnordig.de/2012/09/16/getting-ipvworking-with-smartos-and-kvm/
http://www.mail-archive.com/e1000-devel@lists.sourceforge.net/msg04899.html

Have anybody better solution ?

Thanks
 
Hello
I have problem with bond+vmbr and IPv6 in KVM guest.

dmesg: eth0: IPv6 duplicate address detected!

my interfaces config:
Code:
# network interface settings                                                   
auto lo                                                                        
iface lo inet loopback                                                         
                                                                               
iface eth0 inet manual                                                         
                                                                               
iface eth1 inet manual                                                         
                                                                               
iface eth2 inet manual                                                         
                                                                               
iface eth3 inet manual                                                         
                                                                               
auto bond0                                                                     
iface bond0 inet manual                                                        
        slaves eth0 eth1 eth3                                                  
        bond_miimon 100                                                        
        bond_mode balance-rr                                                   
                                                                               
auto vmbr0                                                                     
iface vmbr0 inet static                                                        
        address  xxx.xxx.xxx.xxx                                              
        netmask  255.255.255.0                                                 
        gateway  xxx.xxx.xxx.xxx   
        bridge_ports bond0                                                     
        bridge_stp off                                                         
        bridge_fd 0                                                            
        bridge_maxwait 0                                                       
        bridge_maxage 0                                                        
        bridge_ageing 0

I found this workaround "sysctl net.ipv6.conf.eth0.accept_dad=0" into /etc/sysctl.conf in guest, but this is not ideal

Code:
pveversion -vpve-manager: 2.1-14 (pve-manager/2.1/f32f3f46)
running kernel: 2.6.32-14-pve
proxmox-ve-2.6.32: 2.1-74
pve-kernel-2.6.32-14-pve: 2.6.32-74
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-49
pve-firmware: 1.0-18
libpve-common-perl: 1.0-30
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-31
vncterm: 1.0-3
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-8
ksm-control-daemon: 1.1-1


more about this problem:
http://fnordig.de/2012/09/16/getting-ipvworking-with-smartos-and-kvm/
http://www.mail-archive.com/e1000-devel@lists.sourceforge.net/msg04899.html

Have anybody better solution ?

Thanks


I have the same problem... Can you resolved it?
 
This can mean that you have two interfaces with the same mac address or that your host is auto-assigning link local ip addresses to the virtual devices meant for guests while the guest then uses the same link local address on it.
Can you give us the output of `ip addr show` on both host and guest connected to this problem?
 
I realize this thread is quite old, but I'm having exactly this problem with a bond + bridge (in active-backup rather than balance-rr). My connection keeps dropping out for 3 to 10 seconds a couple times per minute. I used "watch" on the /var/log directory to see if any logs were changing. Sure enough, an error to kern.log coincided with each "pause" in my network connection.

Code:
IPv6: ens18: IPv6 duplicate address <redacted> detected!

My desktop supports IPv6, so I guess it's probably connecting over IPv6 and dropping temporarily when the duplicate is detected.

I have also added this line to /etc/sysctl.conf in the guest and the problem goes away for now:

#replace ens18 with your interface name
sysctl net.ipv6.conf.ens18.accept_dad=0


Looking at 'ip addr show' on the host and guest, I don't see this address from the guest appearing anywhere in the host output (and so far, this is my only guest as I'm still doing testing and configuration). Am I looking for something else besides a duplicate address? I don't fully understand IPv6 addressing.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!