container cant connect to internet

Lana

New Member
Nov 13, 2023
18
1
3
can someone help me set the network so that my container can ping to internet
i run my Proxmox on cloud instance

this is my PVE networking setting i use the private ip that i got from the cloud instance provide

auto lo
iface lo inet loopback

auto ens3
iface ens3 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.69.83.174/24
gateway 10.69.83.1
bridge-ports ens3
bridge-stp off
bridge-fd 0

source-directory /etc/network/interfaces.d
source-directory /run/network/interfaces.d

and for the container lxc using 10.69.83.2 for the ip address and the DNS is 8.8.8.8
1710402279952.png

arch: amd64
cores: 1
hostname: webauthn1.tahutech.online
memory: 512
nameserver: 8.8.8.8
net0: name=eth0,bridge=vmbr0,gw=10.69.83.1,hwaddr=36:C4:C1:43:EC:5E,ip=10.69.83.2/24,type=veth
ostype: alpine
rootfs: local:100/vm-100-disk-0.raw,size=8G
searchdomain: webauthn1.tahutech.online
swap: 512

please corrent me if there is wrong with the setting
Thanks
 
Last edited:
good morning from germany. please post all your settings first.
When you wrote "container" then you mean a LXC an a Proxmox PVE?
please post all your settings.
Mostly you set the wrong default gateway and/ or nor 1st DNS Serveraddress.
 
You either can take screenshots and post them here or you open your cli and past the output of /etc/pve/lxc/<lxcid>.conf in a CODE-tag

Best
 
good morning from germany. please post all your settings first.
When you wrote "container" then you mean a LXC an a Proxmox PVE?
please post all your settings.
Mostly you set the wrong default gateway and/ or nor 1st DNS Serveraddress.
yes a lxc container on my pve node
 
So you can $ ping 1.1 ?
You can solve $ dig one.one ?
You have only one IP, that you can use?
You setup 10.69.83.2 for you LXC on PVE, do you have a valid ip, that will route back to you (Proxmox VE Host)?
 
otherwise you will need a only local network on vmbr2, that must NAT to the outer world.
You have to setup real DNS server and/ or dhcpd for vmbr2.
You can't access the vmbr2 from the outer world direct, so you must open and route one or more ports from 10.69.83.174 to you IPs on vmbr2.
 

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!