[one-users] Virtual networks by static leases.

benpro benpro82 at gmail.com
Mon Mar 28 07:13:39 PDT 2011


Hi there,

To manage our virtual network, we use a DHCP with static leases
specified in our network template, like :

>NAME = "Réseau local 192.168.0.0/24 ( à partir de 100)"
>TYPE = FIXED
>BRIDGE = LAN
>PUBLIC = NO
>LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20]
>LEASES = [IP=192.168.0.111, MAC=50:20:20:20:20:21]
And then in our DHCP's configuration file we have the same values.
(Using a homemade script to inject the configuration)

When VMs reach the end of the leases, new MAC address is generated
automatically by ONE. Is there a way to restart at the top of the
leases, if the IP address is not used anymore ?

For exemple, I have the leases of 2 MAC and IP:
>LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20]
>LEASES = [IP=192.168.0.111, MAC=50:20:20:20:20:21]
I launch two VMs, they will obtain address IP by DHCP.
I stop one VM, and I start another one, it will not obtain address IP
by DHCP, because ONE will generate random address MAC, I'd like ONE to
restart obtaining address MAC by reading the top of the leases in my
network template, here:
>LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20]

Sorry maybe its not quite clear.

In advance, thanks.
---
Benoît.S
alias Benpro



More information about the Users mailing list