[pve-devel] implementation of a dhcp service in proxmox ?
Alexandre DERUMIER
aderumier at odiso.com
Tue May 21 11:32:33 CEST 2013
some interesting infos on libvirt network config:
http://libvirt.org/formatnetwork.html
They seem to always use a bridge (also for nat/routed), with an ip address.
So, I think the dhcp server listen on the bridge ip.
For nat, I think the nat is done on the bridge ip.
For routed, I think that the gateway of the vm is the bridge ip.
bridge
------
<network>
<name>private</name>
<bridge name="virbr2" />
<ip address="192.168.152.1" netmask="255.255.255.0">
<dhcp>
<range start="192.168.152.2" end="192.168.152.254" />
<host mac='52:54:00:e8:dc:ee' name='aaa.example.com' ip='192.168.4.32' />
<host mac='52:54:00:22:6c:5c' name='bbb.example.com' ip='192.168.4.33' />
</dhcp>
</ip>
<ip family="ipv6" address="2001:db8:ca2:3::1" prefix="64" />
</network>
Nat
---
<network>
<name>default</name>
<bridge name="virbr0" />
<forward mode="nat"/>
<ip address="192.168.122.1" netmask="255.255.255.0">
<dhcp>
<range start="192.168.122.2" end="192.168.122.254" />
</dhcp>
</ip>
<ip family="ipv6" address="2001:db8:ca2:2::1" prefix="64" />
</network>
Routed
-------
<network>
<name>local</name>
<bridge name="virbr1" />
<forward mode="route" dev="eth1"/>
<ip address="192.168.122.1" netmask="255.255.255.0">
<dhcp>
<range start="192.168.122.2" end="192.168.122.254" />
</dhcp>
</ip>
<ip family="ipv6" address="2001:db8:ca2:2::1" prefix="64" />
</network>
----- Mail original -----
De: "Alexandre DERUMIER" <aderumier at odiso.com>
À: "Dietmar Maurer" <dietmar at proxmox.com>
Cc: pve-devel at pve.proxmox.com
Envoyé: Mardi 21 Mai 2013 11:20:03
Objet: Re: [pve-devel] implementation of a dhcp service in proxmox ?
>>Maybe we need to use the --dhcp-host= option instead?
I think this is to assign specific ip to specific mac address.
About that, does users need to assign dynamic ip from a range ?
Or simply specify 1 ip manually by nic is enough ?
(I don't known, because for my usage, I only need to assign manually my ips for each nic)
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Alexandre DERUMIER" <aderumier at odiso.com>, "Michael Rasmussen" <mir at datanom.net>
Cc: pve-devel at pve.proxmox.com
Envoyé: Mardi 21 Mai 2013 10:41:47
Objet: RE: [pve-devel] implementation of a dhcp service in proxmox ?
> >>a dnsmasq daemon can handle several netdevices and several networks so
> >>there should be no need for more than one daemon.
>
> But how can we tell which ip range is assigned to which device (tap/bridge) ?
>
> I have read that the syntax:
> --dhcp-range=<device>,xxxx is not more used since dnsmasq 2.63
Maybe we need to use the --dhcp-host= option instead?
_______________________________________________
pve-devel mailing list
pve-devel at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list