Feature #1758

Allow the use of MAC= parameter with ranged networks

Added by Laurent Grawet over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:02/06/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Core & System
Target version:Release 4.0
Resolution:fixed Pull request:

Description

Hi,

I have some license servers/products which are bound to ethernet mac address. I need to have the possibility to force mac address to migrate them to opennebula. I see there is such a parameter for fixed networks, is there any reason not allowing it for ranged networks ? We only use ranged networks here.

Regards,

Laurent

History

#1 Updated by Ruben S. Montero over 8 years ago

There is no actual difference between MAC and IP's in OpenNebula. The lowest 32bit of the MAC address is the IPv4 address. Then you can derive one from the other.

Also you can always request an specific MAC from the ranged network. For example (with MAC prefix 02:00):

Net = 10.0.0.0/24 => IPs = 10.0.0.0 - 10.0.0.255 (Including net address and broadcast)
MACs = 02:00:0A:00:00:00 - 02:00:0A:00:00:FF

You can always request a specific MAC:

NIC = [ NETWORK=... , MAC=02:00:0A:00:00:0B ] (equivalent to NIC = [ NETWORK=..., IP=10.0.0.11])

Note that there is no need to set IP=10.0.0.11 to MAC=02:00:0A:00:00:0B, within the VM you can set any IP. As part of IPv6 support we are thinking to define a network as a range of MACs...

#2 Updated by Laurent Grawet over 8 years ago

The MAC address (ex: 00:16:3E:D3:18:A2) has no 02:00 prefix because the VM was not initially deployed in OpenNebula. The licensing software running on it is paired to this MAC. According the doc (Virtual Network Definition File), it is possible to specify any MAC address with fixed network.

NAME    = "Blue LAN" 
TYPE    = FIXED

# We have to bind this network to ''virbr1'' for Internet Access
BRIDGE  = vbr1

LEASES  = [IP=130.10.0.1]
LEASES  = [IP=130.10.0.2, MAC=50:20:20:20:20:21]

So the basic idea here is to have the same capability with ranged network.

#3 Updated by Ruben S. Montero about 8 years ago

  • Category set to Core & System
  • Status changed from New to Closed
  • Target version set to Release 4.0
  • Resolution set to fixed

We now have now the possibility to define a ranged network using MAC. (MAC_START for the first mac_address and then a size). Closing this one.

This is used for IPv6 also, example here:

http://opennebula.org/documentation:rel4.0:vgg#ipv6_networks

Also available in: Atom PDF