Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170570

communicate lan between VM/CT

$
0
0
Hello,

I proxmox3 , I can not manage to communicate to all my vm / ct them .

I want to communicate between my vm to share services like: mysql, so I need to communicate on the network 192.168.0.x style

I can make contact vm are bridged and NAT , but not one that have an ip failover

Here is the config of the host:

Code:


# Network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

self vmbr0
inet static iface vmbr0
address x.x.x.x
netmask 255.255.255.0
gateway x.x.x.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

self vmbr2
inet static iface vmbr2
    address 192.168.0.254
    netmask 255.255.255.0
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    post-up echo 1> / proc/sys/net/ipv4/ip_forward
    post-up iptables- t nat -A POSTROUTING -s .168.0.0/24 '192 '- o -j MASQUERADE vmbr0
    post-down iptables- t nat - A POSTROUTING -s .168.0.0/24 '192 '- o -j MASQUERADE vmbr0

and the vm problematic :
Code:


iface lo inet loopback

auto eth0

iface eth0 inet static

address my_ip_failover

netmask 255.255.255.255

up route add -host eth0 my_ip_HOST

up route add default gw my_ip_HOST.1


auto eth0: 0
iface eth0: 0 inet static
  address 192.168.0.5
  broadcast 192.168.0.255
  gateway 192.168.0.254

I said that my ip failover works perfectly

I just do not happen to do this vm communicate with others, the ping does not go with a local ip 192.168.0.2 style , for against this vm can ping internet and it works .

Code:

ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56 (84) bytes of data .

Code:


 ping www.google.fr
Www.google.fr PING (173.194.41.183) 56 (84) bytes of data .
64 bytes from lhr08s04 -in- f23.1e100.net ( 173.194.41.183 ) : icmp_req = 1 ttl = 56 time = 8.25 ms
64 bytes from lhr08s04 -in- f23.1e100.net ( 173.194.41.183 ) : icmp_req = 2 ttl = 56 time = 8.13 ms
...

iptables in the vm

Code:


iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD ( policy ACCEPT )
target prot opt source destination

Chain OUTPUT ( policy ACCEPT )
target prot opt source destination

(I'm a ball networking, be gentle )

Thank you for your help
+ +

Viewing all articles
Browse latest Browse all 170570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>