Guest cant ping each other

beekin

New Member
Oct 11, 2016
3
0
1
46
Hi to all,

can someone point me to documentation how to configure network in order that virtual machines can connect to each other? I presume that i need to create one more bridge on proxmox host and then attach virtual machines NIC (in a bridge mode) to that bridge , or there is another best practise solution?

here is my network configuration on host

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto vmbr1
iface vmbr1 inet manual
bridge_ports dummy0
bridge_stp off
bridge_fd 0
post-up /etc/pve/kvm-networking.sh

auto vmbr0
iface vmbr0 inet static
address 51.255.83.76
netmask 255.255.255.0
gateway 51.255.83.254
broadcast 51.255.83.255
bridge_ports eth2
bridge_stp off
bridge_fd 0
network 51.255.83.0
echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp

post-up route add -host 91.121.44.190 dev vmbr0

iface vmbr0 inet6 static
address 2001:41d0:1004:110c::
netmask 64
post-up /sbin/ip -f inet6 route add 2001:41d0:1004:13ff:ff:ff:ff:ff dev vmbr0
post-up /sbin/ip -f inet6 route add default via 2001:41d0:1004:13ff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del default via 2001:41d0:1004:13ff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del 2001:41d0:1004:13ff:ff:ff:ff:ff dev vmbr0

Thanks in advance
 
What is not working exactly? The default Proxmox configuration allows all VMs in the default bridge vmbr0 to communicate with each other if they're setup correctly. I think this is a guest problem, not a proxmox problem. Could you post your guest config as well?
 
Hi LnxBill

i have two machines and the /etc/network/interfaces on both looks like this

auto eth0
iface eth0 inet dhcp
dns-nameservers 8.8.8.8

so eth0 is linked to vmbr0 in a NAT mode. They should get ip address via DHCP. They got ip address via DHCP but thats the same ip address 10.0.2.15 and the gateway is 10.0.2.2 .

Both virtual machines can reach internet (via vmbr0) but they cannot see each other.. like one bridge interface is missing on host server. I am using Proxmox Virtual Environment 4.3-1 .
 
They have both the same ip address????? Of course they cannot ping each other.

Don't use NAT mode and setup a proper network for the machines, then it'll work.
 
problem solved...
this is how i configured network interface on host server .. this is from /etc/network/interfaces

auto vmbr2
iface vmbr2 inet static
address 192.168.56.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

this is how i configured network interfaces on virtual machine (guest) .. this is from /etc/network/interfaces

auto eth1
iface eth1 inet static
address 192.168.56.12
network 255.255.255.0
broadcast 192.168.56.255

this network interfaces is added via web interface in bridge mod.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!