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

Alexandre DERUMIER aderumier at odiso.com
Mon Aug 26 15:35:48 CEST 2013


Hi

>>+sub enable_proxyarp {
>>+    my ($ifname) = @_;
>>+
>>+    PVE::Tools::run_command("echo 1 > /proc/sys/net/ipv4/conf/$ifname/proxy_arp");
>>+}
>>+
>>+PVE::Tools::run_command("ifconfig $iface up");
>>+enable_proxyarp($iface);


Do we really need proxyarp ? I mean, arp request shouldn't go to external vmbr0 unless eth0 is plugged on same bridge than vm nic



>>+my $external_iface = 'vmbr0'; # fixme: autotetect?

I think we can simply detect the vmbrX with the defaut gw ?


>>+enable_proxyarp($iface);
>>+
>>+PVE::Tools::run_command("route add -net $net->{ip} netmask 255.255.255.255 dev $iface");

So, if I understand you don't use bridge ? but directly route from host to tap interface ?
If yes,how do you setup guest configuration ? 




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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com>, pve-devel at pve.proxmox.com 
Cc: aderumier at odiso.com 
Envoyé: Lundi 26 Août 2013 13:47:40 
Objet: RE: [PATCH] add routed network mode 

The last patch is just some experimental code. 

That is what I had in mind how a routed setup should work. 

I just created and tested a single VM here, and that works so far. 

What do you think? Is that nonsense, or usable? 
Any comments? 



More information about the pve-devel mailing list