Displaying 2 results from an estimated 2 matches for "0a1b2c3d4e5f6789h".
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
...e of nic your using.
local prefix="00:00:6d"
local hextet[3]=""
local hextet[4]=""
local hextet[5]=""
local tmp=""
local i=3;
# these characters are used in making the mac
local digi=''0a1b2c3d4e5f6789h''
local offset=$((${#digi} - 1))
_MAC="$prefix"
while [ "$i" -le 5 ]; do
tmp[1]="${digi:$(($RANDOM%${offset})):1}"
tmp[2]="${digi:$(($RANDOM%${offset})):1}"
hextet[$i]="${tm...