[pve-devel] internal dhcp server, where to put dhcp configuration ?

Dietmar Maurer dietmar at proxmox.com
Thu Aug 22 17:21:33 CEST 2013


> I'll try to begin to look for dhcp implementation.
> 
> I don't known where to put dhcp configuration.
> 
> 
> 1) define it in /etc/network/interfaces in each bridge config
>    But that mean that we need to do it for each server
> 
> 2) define it in a global /etc/pve/dhcp.cfg.
>    vmbrO = dhcp range X.X.X.X/24, gateway=...
>    vmbr1 = dhcp range X.X.X.X/24  gateway=...
>    ....
> 
> 
> For bridge and nat mode, that make sense to share the same dhcp config for
> the bridge, as when you live migrate you need to keep your ip lease.
> 
> 
> For routed mode, the gateway should be different for each host. (gateway is
> the host ip).
> (So, I don't known if live migrate work good with routed mode, we need to
> renew the dhcp, maybe unplug/plug the virtual nic cable)

My thought is that we only implement dhcp for routed mode, and configuration
can be obtained from VM config.

> Also, I would like add ip,mask,gateway to netX vm param, for lease
> reservation and override bridge dhcp params.
> (don't known if we need to allow to specify all dhcp options here)

Running a full featured dhcp server on a bridge is
something different for me. Please can you clarify what usage scenario 
do you think about exactly?





More information about the pve-devel mailing list