Hello,
I'm having a wierd network issue that I don't seem to find a reason but would greatly appreciate some help here.
I have a 2 node cluster connected with a physical switch, one of the NIC's on each not is just for internal communication.
Host01 interface:
Host02 interface:
My goal with these interfaces was to create an internal interface to add to the vm's to have internal IP's and with the nat they can reach the internet without being reached from it.
I then started testing out using VM's with ubuntu 21.04 desktop in which I applied the following configs to test:
and
This two VM's are each in a different proxmox node and still they can ping each other, I then moved on to having the same config but with a ubuntu focal with cloudinit.
Here are my configurations :
which in the VM results in:
The VM with cloudinit, when I try to ping from it I get back "Network is unreachable" and from other hosts, the ping doesn't work to this VM either.
Since my configs are the same on both my desktop and cloudinit based VM's should this be working? what could I be missing here?
Thanks.
I'm having a wierd network issue that I don't seem to find a reason but would greatly appreciate some help here.
I have a 2 node cluster connected with a physical switch, one of the NIC's on each not is just for internal communication.
Host01 interface:
iface enp1s0 inet manual
auto vmbr1
iface vmbr1 inet static
address 10.10.0.2/8
bridge-ports enp1s0
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.0.0/24' -o enp35s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.0.0/24' -o enp35s0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.1.0/24' -o enp35s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.1.0/24' -o enp35s0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.2.0/24' -o enp35s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.2.0/24' -o enp35s0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.10.0/24' -o enp35s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.10.0/24' -o enp35s0 -j MASQUERADE
Host02 interface:
iface enp33s0 inet manual
auto vmbr1
iface vmbr1 inet static
address 10.10.0.3/8
bridge-ports enp33s0
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.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.1.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.10.0/24' -o vmbr0 -j MASQUERADE
My goal with these interfaces was to create an internal interface to add to the vm's to have internal IP's and with the nat they can reach the internet without being reached from it.
I then started testing out using VM's with ubuntu 21.04 desktop in which I applied the following configs to test:
and
This two VM's are each in a different proxmox node and still they can ping each other, I then moved on to having the same config but with a ubuntu focal with cloudinit.
Here are my configurations :
which in the VM results in:
The VM with cloudinit, when I try to ping from it I get back "Network is unreachable" and from other hosts, the ping doesn't work to this VM either.
Since my configs are the same on both my desktop and cloudinit based VM's should this be working? what could I be missing here?
Thanks.