Same IP on multiple VM ?

rethus

Active Member
Feb 13, 2010
49
0
26
Is there a way to share IP on two VM?

For example, normal webserver should listen on domain.com. And Project-Tool (on own vm) should listen on subdomain.domain.com or domain.com:8080

On same VM this is not Porblem, only Vhost entry, but can i do this on two different VM's? Maybe mit veth
 
I would use private IPs for the VMs, and use DNAT for the redirect (done on the firewall/iptables). This only works if you use different ports.
 
I would use private IPs for the VMs, and use DNAT for the redirect (done on the firewall/iptables). This only works if you use different ports.
Good idea, i neever thought about private IP. Thanks for this hint.