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?
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 0
In the container .conf file:
Code:
net0: name=eth0,bridge=vmbr0,gw=111.111.111.7,hwaddr=xxxxxxxx,ip=111.111.111.218/24,type=veth
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?
Last edited: