F
F
Fixid2015-11-06 16:54:07
linux
Fixid, 2015-11-06 16:54:07

How to use the same IP on multiple virtual machines?

Good afternoon. There is a Proxmox hypervisor with 3 interfaces and 3 virtual machines. All use NAT and are connected to vmbr1 which via POSTROUTING works with vmbr0.
Now you need to run the same software on each VM on different ports with access via IP vmbr2 (this can be done the same way as via vmbr1 with port forwarding), but the program requires bind on ext IP2.
How to add a new network interface to each VM with ext. IP2 and forwarding different ports to different VMs?
For example request ext. IP2:1000 goes to VM1, ext. IP2:1001 - VM2, ext. IP2:1002 - VM3.
fb13ec4b8e4a4927a34b100df5e5db82.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2015-11-06
@Fixid

you may need an intermediate virtual machine as a router and a bunch of bridges
read here
you need to shift the logic from Mikrotik notation to iptables and iproute2

P
Puma Thailand, 2015-11-06
@opium

Well, add an interface on the second bridge

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question