OpenVZ Forum


Home » Mailing lists » Users » vzethdev MAC-addresses
vzethdev MAC-addresses [message #5314] Thu, 17 August 2006 15:17 Go to next message
masm is currently offline  masm
Messages: 7
Registered: July 2006
Location: Finland
Junior Member
http://wiki.openvz.org/Virtual_Ethernet_device says:

> Note: Use random MAC addresses. Do not use MAC addresses of
> real eth devices, beacuse this can lead to collisions.

Assigning totally random MAC-addresses for VEs doesn't sound like a good
idea to me. XenSource has allocated MAC-address range 00:16:3E for use
in Xen-domains and VMWare has ranges 00:05:69, 00:0c:29 and 00:50:56.
XenSource's and VMWare's approach sounds better to me.

Is the range 00:18:51 assigned to SWSoft meant for use in OpenVZ VEs or
is there some other method for generating MAC-addresses for VEs?

BR,

Mika
Re: vzethdev MAC-addresses [message #5355 is a reply to message #5314] Fri, 18 August 2006 07:52 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

> http://wiki.openvz.org/Virtual_Ethernet_device says:
>
>
>> Note: Use random MAC addresses. Do not use MAC addresses of
>> real eth devices, beacuse this can lead to collisions.
>
>
> Assigning totally random MAC-addresses for VEs doesn't sound like a good
> idea to me. XenSource has allocated MAC-address range 00:16:3E for use
> in Xen-domains and VMWare has ranges 00:05:69, 00:0c:29 and 00:50:56.
> XenSource's and VMWare's approach sounds better to me.
>
> Is the range 00:18:51 assigned to SWSoft meant for use in OpenVZ VEs or
> is there some other method for generating MAC-addresses for VEs?
this range is assigned to SWsoft and can be used for veth fo sure.
The problem is how to generate MAC address inside this range.
VMware takes some hash from VM path, which is not collision prone.
So there is no any ideal solution.

The best one would be to use single database (pool) from which
allocate MAC addresses. But it is not always easy to do in clusters.

Kirill
Previous Topic: Can't ping VE from Host
Next Topic: openvz and tcpdump
Goto Forum:
  


Current Time: Tue Aug 20 07:51:10 GMT 2024

Total time taken to generate the page: 0.03219 seconds