about openvz, for routed configuration with veth (not venet),
https://openvz.org/Virtual_Ethernet_device
gateway of guest is also proxmox host ip
"Using a directly routed IPv4 with virtual Ethernet device"
Situation
Hardware Node (HN/CT0) has 192.168.0.1/24 with router 192.168.0.254.
We also know that IPv4 10.0.0.1/32 is directly routed to 192.168.0.1 (this is
called a fail-over IP).
We want to give this directly routed IPv4 address to a container (CT).
host
----
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
#ip route add 10.0.0.1 dev veth101.0
#echo 1 > /proc/sys/net/ipv4/ip_forward
#echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
#echo 1 > /proc/sys/net/ipv4/conf/veth101.0/forwarding
guest
-----
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.255
up /sbin/ip route add 192.168.0.1 dev eth0
up /sbin/ip route add default via 192.168.0.1
----- Mail original -----
De: "Alexandre DERUMIER" <[email protected]>
À: "Dietmar Maurer" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Août 2013 12:16:45
Objet: Re: [pve-devel] [PATCH] add routed network mode
>>At least there docu states that it works without any problem:
>>
>>http://wiki.hetzner.de/index.php/Proxmox_VE#Netzwerkkonfiguration_OpenVZ_.28venet.29
>>
I'm not expert with openvz (is venet an tap interface ?)
What I don't understand in your setup, is that proxmox host and guest, use the
same external default gateway.
How to you do if guest ip is in different network/range than host ip ???
----- Mail original -----
De: "Dietmar Maurer" <[email protected]>
À: "Dietmar Maurer" <[email protected]>, "Alexandre DERUMIER"
<[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Août 2013 12:00:47
Objet: RE: [PATCH] add routed network mode
> > 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 ?
>
> If that setup work with openvz (I assume that works already), It will also
> work
> with my patches.
At least there docu states that it works without any problem:
http://wiki.hetzner.de/index.php/Proxmox_VE#Netzwerkkonfiguration_OpenVZ_.28venet.29
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel