How to Setup multiple Public IP address

jn1

New Member
Dec 26, 2024
2
0
1
Hello all,

iam completly new to proxmox I just installed it on a Dedicated Server and now I cant figure out how to proper setup the network.

I have for now two public ipv4 adresses I can use. The first one is completly reserved for the proxmox host.

The second public IP adress I want to point to a debian vm. On the vm I want to host a couple of docker container.
I created the vm and manually put in the second puplic ip address. It kinda works but not really. If I want to ssh into the vm I have to try a couple of times and then it maybe is successfull.

At the moment I open a ssh tunnel to the dedicated server and then connect to the proxmox dashboard via localhost:8006.

First IP: (not the real puplic ip)
IP: 80.46.154.82/24
Gateway: 131.14.145.1

Second IP: (not the real puplic ip)
IP: 131.14.145.41/24
Gateway 80.46.154.1

So I cant figure out how to setup this network configuration correctly. The Host has one 10G interface
Proxmox uses:
vmbr0 Linux Bridge Active:yes Autostart:yes VLAN:No NetworkDevice:eno1 131.14.145.41/24 131.14.145.1

How do I setup the networking correctly so all traffic for 80.46.154.82 goes to the one VM. So I can run multiple docker container and use ssh and sftp without haveing to try to connect to it multiple times and get interupted connections.

From within the vm I can ping to 80.46.154.82 and I can also ping to 131.14.145.41.
I cant ping www.google.com couldnt resolve url.
I also cant ping my public Home Ip from within the vm.

From my home pc I can ping 80.46.154.82 but not 131.14.145.41.

I hope it is clear what I want to achieve here. Iam sorry if the sentences sometimes might not make really sense englisch isnt my native language.
 
Do you have two separate Network interfaces for these IP Adresses ? If so you could pass through the second Interface to the VM - this would be the best possible way ( also performance wise ).

If not - it seems like you have a routing problem because you only have one network bridge vmbr0 with two different gateways...
What hoster do you use?
Can you maybe create an image of the network connections ?
 
Sadly I only have one 10G network interface.

Hoster: Zap-Hosting

Do you mean a screenshot from the web dasboard from networks?

Or from /etc/network/interfaces from the host system?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!