one icon indicating copy to clipboard operation
one copied to clipboard

MAC address recycling causes trouble

Open HenriWahl opened this issue 9 years ago • 2 comments

Bug Report

Version of OpenNebula

  • [X] 5.2.2
  • [ ] 5.4.0
  • [ ] 5.4.1
  • [X] 5.4.2
  • [ ] 5.4.3
  • [ ] Development build

Component

  • [ ] Authorization (LDAP, x509 certs...)
  • [ ] Command Line Interface (CLI)
  • [ ] Contextualization
  • [ ] Documentation
  • [ ] KVM
  • [X] Networking
  • [ ] Orchestration (OpenNebula Flow)
  • [ ] Sunstone
  • [ ] Storage
  • [ ] Scheduler
  • [ ] vCenter

Description

When a VM is destroyed, its NICs MAC will be given to the next VM which somewhen will be created. This causes sometimes trouble when a previously used MAC address still is registered in some kind of DHCP server, which will handle out a sometimes inappropriate IP address to a newly created VM.

Expected Behavior

Every new VM should get a new MAC which did not exist yet, counting up in the boundaries of the defined range.

Actual Behavior

A new VM gets a probably old MAC.

How to reproduce

Create a VM, delete it, create a new one - both will have the same MAC address.

HenriWahl avatar Nov 28 '17 12:11 HenriWahl

https://forum.opennebula.io/t/zombie-polling-interval-and-mismatch/12440 and https://forum.opennebula.io/t/network-do-not-reuse-mac-until-range-is-used-up/2914 related?

tsarajar avatar May 02 '25 13:05 tsarajar

Thanks, it has been merged together with a new global MAC addressing mode.

rsmontero avatar Jun 01 '26 08:06 rsmontero