[pve-devel] [PATCH] add routed network mode

Alexandre DERUMIER aderumier at odiso.com
Tue Aug 27 11:51:37 CEST 2013


Thanks I'll look at patches.



I'm reading ovh and hetzner setup about their routed kvm network config

http://guides.ovh.com/Proxmox
http://wiki.hetzner.de/index.php/Proxmox_VE/en

Both have 2 kinds of config, they can route single ip address (/32), or block ip range.
This ips are routed from hardware router to proxmox host main ip, and guests use host ips as gateway.
I don't see how to manage that with your proxy-arp setup ?



example for hetzner
----------------------
single ip routing
--------------------------------------------------------------
host
-----
auto  eth0
iface eth0 inet static
       address   <Main IP>
       netmask   255.255.255.255
       pointopoint   <Gateway>
       gateway   <Gateway>
# for single IPs
auto vmbr0
iface vmbr0 inet static
       address   <Main IP>    (#note: not sur why we need Main IP on eth0 && vmbr0)
       netmask   255.255.255.255
       bridge_ports none
       bridge_stp off
       bridge_fd 0
       up ip route add <1st additional IP>/32 dev vmbr0   (#note: could be done without bridge with routing to dev tap...)

guest
------

auto  eth0
iface eth0 inet static
       address   <Additional IP>
       netmask   255.255.255.255
       pointopoint   <Main IP>
       gateway   <Main IP>






block ip routing
-------------------------------------------------------------------------------
host
-----
auto  eth0
iface eth0 inet static
       address   <Main IP>
       netmask   255.255.255.255
       pointopoint   <Gateway>
       gateway   <Gateway>

auto vmbr1
iface vmbr1 inet static
       address   <A usable IP address from the additional subnet>
       netmask   <Netmask of the additional subnet>
       bridge_ports none
       bridge_stp off
       bridge_fd 0

guest
------

auto  eth0
iface eth0 inet static
       address   <A usable IP address from the additional subnet>
       netmask   255.255.255.0
       gateway   <The IP address from the additional subnet assigned for vmbr1>



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com>, "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 27 Août 2013 10:28:54 
Objet: RE: [PATCH] add routed network mode 

> > >>I posted my code to make it clear what I talk about. 
> > 
> > So, for your setup, why not simply do a standard bridge setup + proxyarp ? 
> 
> The user can setup whatever he wants. My patch works with all setups. 

Wait a few minutes - i will post an improved patch which extract infos for DHCP form 
the routing table. 



More information about the pve-devel mailing list