Howto setup network with one public IP

Jeroen

New Member
Dec 27, 2016
4
0
1
44
Hi,

I've read nearly all forum topic about this, but still I can't figure out how to set up an ip for my lxc containers.

- I have a server directly connected to the internet so I have 1 public ip.
- On this server I run a fresh installation of proxmox.
- I create one lxc container with Debian.

Nomatter what I do, I just can't establish an internet connection.
I hope someone here is able to tell me whether it's possible and if yes... how?
 
Hi Jeroen
Usually for this, people order from their provider an extra IP adress, and add this IP adress to the container.
If you don't want to order an extra IP address, you need to setup masquerading with iptables as explained with https://pve.proxmox.com/wiki/Network_Model.
 
Hi Manu,
Thanks for helping me out!!
I tried this part already but I must have made a mistake.
I tried again and gave the VM an IP: 10.10.10.50/24 and gateway 10.10.10.1 and everything works fine!
 

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!