how to configure the network to build a cluster

uklee67

New Member
Oct 14, 2024
2
0
1
Hello

I am trying to build a cluster with 2 proxmox machines

machine 1 192.168.122.72 on host 1
machine 2 192.168.122.67 on host 2

both machines are configured as NAT (default)

How do I have to configure the network to be able to connect from machine 1 to machine 2 and vice versa?

the routes look like this:

Code:
machine 1: 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

Code:
machine 2: 192.168.122.0/24 via 192.168.122.1 dev virbr0
192.168.122.72 via 192.168.122.1 dev virbr0

How do I change this?

Thanks in advance,

Uli
 
How does your network configuration look like?

Code:
cat /etc/network/interfaces

What exactly do you mean with 'How do I have to configure the network to be able to connect from machine 1 to machine 2 and vice versa?'? Do you want to be able to connect from host to host or from VMs on one host to VMs on the other host.
 
How does your network configuration look like?

Code:
cat /etc/network/interfaces

What exactly do you mean with 'How do I have to configure the network to be able to connect from machine 1 to machine 2 and vice versa?'? Do you want to be able to connect from host to host or from VMs on one host to VMs on the other host.
Hi,

the file looks like this
on pve1


Bash:
auto lo
iface lo inet loopback

iface enp1S0 inet manual

auto vmbr0
iface vmbr0 inet static
                  address 192.168.122.72/24
                  gateway 192.168.122.1
                  bridge-ports  enp1S0
                  bridge-stp off
                  bridge-fd 0

on pve2

Bash:
auto lo
iface lo inet loopback

iface enp1S0 inet manual

auto vmbr0
iface vmbr0 inet static
                  address 192.168.122.67/24
                  gateway 192.168.122.1
                  bridge-ports enp1S0
                  bridge-stp off
                  bridge-fd 0

What I mean is how do I have to configure proxmox network so that I can connect from pve1 with local ip 192.168.122.72 on machine 192.168.10.33/24
to pve2 with local ip 192.168.122.67 on machine 192.168.10.50/24


so that I can join cluster pve1 on machine pve2 ?

pve1 and pve2 are VM on 2 different physical machines that are in the same subnet 192.168.10.0/24 pve1 and pve2 are configured with NAT.

Hope this makes my problem clear?

If not please feel free to ask we can even connect via jitsi if you like to discuss it.

Many thanks in advance

Uli
 
So there are 2 PVEs on 2 different physical machines which get their outside access via NAT (192.168.122.0/24)? That won't work.
You will need to bridge the 192.168.10.0/24 interface to the VM and let the PVE nodes get an IP in that network. Then you can cluster the PVE nodes.
 

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!