Route Port between nodes

starnetwork

Active Member
Dec 8, 2009
375
5
38
Hi,
I have 2 nodes in some cluster
#node1 - with available network port, but without compute resources
#node2 - with available compute resources, but no free network port
I need to connect some dedicated network VPN to the available port in #node1
and link it directly to the KVM vm on #node2

what is the right way to do that?

Regards,
 

Stefan_R

Proxmox Staff Member
Staff member
Jun 4, 2019
313
49
28
Vienna
If I understand this correctly, you have the following:

Code:
<external network>
       |
       |
    +------+                   +------+
    |#node1| ---cluster-net--- |#node2|
    +------+                   | <vm> |
                               +------+
and you want your VM to be able to connect to the external network via your cluster net?

If so, there's currently no easy way to go about this. One way would be to connect your VM to the bridge used as the interface for the cluster network, and then enable routing on #node1 (e.g. sysctl net.ipv4.ip_forward=1, and setting up the routing table correctly, if not automatically configured), using it as a gateway for your VM.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!