advanced dhcpd.conf

advanced dhcpd.conf

Amos Shapira amos.shapira at gmail.com
Tue Jun 10 00:11:25 IDT 2014


Yup.
Or do what we did at my workplace and use puppet to maintain (and generate,
if needed) the configuration.
On 10 Jun 2014 05:33, "shimi" <linux-il at shimi.net> wrote:

> On Mon, Jun 9, 2014 at 6:15 PM, Erez D <erez0001 at gmail.com> wrote:
>
>> no, i want:
>> host vm01 { hardware ethernet 00:11:22:33:44:01 ; fixed-address 10.0.5.1 }
>> host vm02 { hardware ethernet 00:11:22:33:44:02 ; fixed-address 10.0.5.2 }
>> host vm03 { hardware ethernet 00:11:22:33:44:03 ; fixed-address 10.0.5.3 }
>> ...
>> host vm254 { hardware ethernet 00:11:22:33:44:fe ; fixed-address
>> 10.0.5.254 }
>>
>>
> If it doesn't work out...
>
> 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";'
>
> -- Shimi
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140610/a0958808/attachment.html>


More information about the Linux-il mailing list