Hello,
I have a cluster with 2 nodes. Both of them belong to the same LAN. I have a gateway to reach the internet. I do use NAT so that I can create as many VMs as I want, without giving them addresses from the LAN pool.
My problem is that a VM from the first server doesn't ping a VM from the second server and vice-versa. How to fix this? I added a VLAN to both nodes thinking that putting them in the same VLAN would allow communication, but I am not quite sure of what I am doing and I dont't want to mess up my configuration.
Here is the content of /etc/network/interfaces
***
auto lo
iface lo inet loopback
iface enp1s0 inet manual
auto enp1s0.99
iface enp1s0.99 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.10.246/24
gateway 192.168.10.254
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
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 '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
***
Many thanks,
Lamia
I have a cluster with 2 nodes. Both of them belong to the same LAN. I have a gateway to reach the internet. I do use NAT so that I can create as many VMs as I want, without giving them addresses from the LAN pool.
My problem is that a VM from the first server doesn't ping a VM from the second server and vice-versa. How to fix this? I added a VLAN to both nodes thinking that putting them in the same VLAN would allow communication, but I am not quite sure of what I am doing and I dont't want to mess up my configuration.
Here is the content of /etc/network/interfaces
***
auto lo
iface lo inet loopback
iface enp1s0 inet manual
auto enp1s0.99
iface enp1s0.99 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.10.246/24
gateway 192.168.10.254
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
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 '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
***
Many thanks,
Lamia