[Problem] No internet in lxc container

Csabi

New Member
Jun 20, 2018
1
0
1
22
Hetzner dedicated server.

Interface configuration


source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp2s0
iface enp2s0 inet static
address 144.76.117.199
#netmask 255.255.255.224
netmask 255.255.255.255
gateway 144.76.117.193
pointopoint 144.76.117.193
up route add -net 144.76.117.192 netmask 255.255.255.224 gw 144.76.117.193 dev enp2s0
# route 144.76.117.192/27 via 144.76.117.193

#iface enp2s0 inet6 static
# address 2a01:4f8:192:72c6::2
# netmask 64
# gateway fe80::1

auto vmbr0
iface vmbr0 inet static
address 144.76.117.199 # Server Basis IP
netmask 255.255.255.255 # Netzmaske neu gesetzt
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 148.251.243.214/32 dev vmbr0 # erste VM mit erster Zusatz-IP
 

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!