Displaying 2 results from an estimated 2 matches for "makemac".
Did you mean:
makemap
2007 Feb 18
3
handling mac addresses and guid''s
Hi,
I like Xen''s feature of autogenerating those values if they are not supplied in
a config file, but for sake of persistency I want to inherit the once-generated
values and reuse them after the first creation of a domU.
I found it possible to query the values at runtime using xm list
--long but I''m not sure I''m going the most elegant route with that, it
would mean
2006 Nov 29
3
slightly less random random macs
...and
should work with bash / dash / etc. This can be accomplished with python
using only a few lines of code, but bash seems more widely used when
creating back end helpers.
Hope someone finds it of use.
Best,
-Tim
# creates a random mac address and sets a global _MAC variable
# to contain it.
makemac()
{
# edit prefix to suit, ideally matches the manufacturer
# prefix of the type of nic your using.
local prefix="00:00:6d"
local hextet[3]=""
local hextet[4]=""
local hextet[5]=""
local tmp=""
local...