Route Port between nodes

starnetwork

Renowned Member
Dec 8, 2009
430
10
83
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,
 
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.