Two-Node Cluster on Private LAN instead of Public IP

samwayne

New Member
Jun 21, 2013
16
0
1
Hello,

I have two Proxmox Nodes:

eth0 (Public): 100Mbp/s
eth1 (Private) 1Gbp/s

When I create the cluster it defaults to the Public IP so I would like to know how to create the cluster so that online / offline migration or general communication between the two Nodes occur on the Private LAN rather than on the Public WAN. The main reason is so we are able to take advantage of the better 1Gbp/s connection on the Private LAN for transferring images or migration.

We will continue to access the Proxmox GUI via the Public IP however.

Regards,

Samwayne
 
Last edited:
Hi mcmyst,

Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

auto eth1
iface eth1 inet static
    address  10.10.4.100
    netmask  255.255.255.224

auto vmbr0
iface vmbr0 inet static
    address  172.16.16.5
    netmask  255.255.255.248
    gateway  172.16.16.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

The 172.16.16.X is used in this case to represent the Public IPs.

and IP Route

Code:
172.16.16.0/29 dev vmbr0  proto kernel  scope link  src 172.16.16.5
10.10.4.0/24 dev eth1  proto kernel  scope link  src 10.10.4.100
default via 172.16.16.1 dev vmbr0

I only added the private IP 10.10.4.100 after the cluster was created. So do I need to remove the cluster and recreate it?

Regards,

Samwayne
 
Ok I got it working via the Private LAN.

Just in case anyone wants to know.

1) I deleted the existing Cluster as per http://forum.proxmox.com/threads/11398-Full-remove-Cluster-feature and rebooted the two Nodes.
2) Then swapped the Public IP for the Private in /etc/hosts on both Nodes. So that /etc/hosts shows the Private IPs
3) Rebooted both Nodes.
4) Once the Nodes came backup I created a New Cluster from scratch.

Offline migration of a 20G VM now goes via the LAN and takes about 4mins vs 30 mins via the public network!

Thanks again for your help.
 
Last edited: