<p dir="ltr">Yup.<br>
Or do what we did at my workplace and use puppet to maintain (and generate, if needed) the configuration.</p>
<div class="gmail_quote">On 10 Jun 2014 05:33, "shimi" <<a href="mailto:linux-il@shimi.net">linux-il@shimi.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 9, 2014 at 6:15 PM, Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com" target="_blank">erez0001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
no, i want:<br>
host vm01 { hardware ethernet 00:11:22:33:44:01 ; fixed-address 10.0.5.1 }<br>
host vm02 { hardware ethernet 00:11:22:33:44:02 ; fixed-address 10.0.5.2 }<br>
host vm03 { hardware ethernet 00:11:22:33:44:03 ; fixed-address 10.0.5.3 }<br>
...<br>
host vm254 { hardware ethernet 00:11:22:33:44:fe ; fixed-address 10.0.5.254 }<br>
<div><div><br></div></div></blockquote><div><br></div><div>If it doesn't work out...<br><br>php -r 'foreach(range(1,254) as $id) echo "host vm".str_pad($id, 3, '0', STR_PAD_LEFT)." { hardware ethernet 00:11:22:33:44:".str_pad(dechex($id), 2, '0', STR_PAD_LEFT)." ; fixed-address 10.0.5.$id }\n";' <br>
<br></div><div>-- Shimi<br></div></div></div></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div>