Alright, I'm at my wits end.
I am trying to configure a ProxMox on dedicated server at Hetzner, which has one public IP, so I want to use NAT for VMs / containers.
I read all the manuals, and tried to follow Hetzner's manual to the letter. It simply doesn't work.
Here's my config:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp4s0
iface enp4s0 inet static
address xxx.xxx.xxx.16/27
gateway xxx.xxx.xxx.1
pointopoint xxx.xxx.xxx.1
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.xxx.16
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
iface eth0 inet manual
The guest is simply:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.2/24
gateway 10.0.0.1
When I create an LXC with interface attached to vmbr1
, it doesn't have internet connectivity.
When I do ping -I vmbr1 google.com
I get timeouts (and so it's for vmbr0
which is strange)
I think this is the most minimalistic configuration and is recommended everywhere. ip route
shows that vmbr0
is linkdown
- which AIUI means it's attached to an interface which is down - but it's not attached to anything really, and this is by design?
What am I doing wrong here?