I'm trying to setup Proxmox, with a container (LXC) using 2 public ip's on a cloud-based server. One ip for Proxmox and one ip for the container.
Proxmox is working fine but I can't get the container to access the internet.
I have tried many things but this is my current setup:
	
	
	
		
In the container .conf file:
	
	
	
		
111.111.111.7 is Proxmox.
111.111.111.128 is what I'm trying to get to work with the container.
Can someone see what the problem is?
The above configuration is based on "Routed Configuration" here: https://pve.proxmox.com/wiki/Network_Configuration
Before that I tried this (which doesn't work either):
	
	
	
		
Container:
	
	
	
		
				
			Proxmox is working fine but I can't get the container to access the internet.
I have tried many things but this is my current setup:
		Code:
	
	source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto ens1
iface ens1 inet static
        address 111.111.111.7/24
        gateway 111.111.111.1
auto vmbr0
iface vmbr0 inet static
        address 111.111.111.218/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0In the container .conf file:
		Code:
	
	net0: name=eth0,bridge=vmbr0,gw=111.111.111.7,hwaddr=xxxxxxxx,ip=111.111.111.218/24,type=veth111.111.111.7 is Proxmox.
111.111.111.128 is what I'm trying to get to work with the container.
Can someone see what the problem is?
The above configuration is based on "Routed Configuration" here: https://pve.proxmox.com/wiki/Network_Configuration
Before that I tried this (which doesn't work either):
		Code:
	
	source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto ens1
iface ens1 inet manual
auto vmbr0
iface vmbr0 inet static
        address 111.111.111.7/24
        gateway 111.111.111.1
        bridge-ports ens1
        bridge-stp off
        bridge-fd 0Container:
		Code:
	
	net0: name=eth0,bridge=vmbr0,hwaddr=2A:BD:E2:B6:7C:CE,ip=111.111.111.218/24,type=veth 
	