Routing at hetzner with pve and lxc. how??

simpsonetti

Well-Known Member
Sep 29, 2018
126
5
58
50
Hi, i have a server with debian 10 and pve at hetzner, therefor a ihave an additional subnet.
i've done it with this https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve/de
But it didn't work with my first lxc.
The networksettings in hostsystem is like:
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto eno1
iface eno1 inet static
  address 116.202.xxx.xxx Mainserver ip
  netmask 255.255.255.192
  gateway 116.202.xxx.xxx
  pointopoint 116.202.xxx.xxx
 
  up route add -net 116.202.165.64 netmask 255.255.255.192 gw 116.202.165.65 dev eno1

# für Einzel-IPs
auto vmbr0
iface vmbr0 inet static
  address 116.202.xx.xxx
  netmask 255.255.255.255
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  up ip route add 157.90.xx.xxx/32 dev vmbr0
  up ip route add 157.90.xx.xxx/32 dev vmbr0
  up ip route add 157.90.xx.xxx/32 dev vmbr0
  up ip route add 157.90.xx.xxx/32 dev vmbr0
  up ip route add 157.90.xx.xxx/32 dev vmbr0
  up ip route add 157.90.xx.xxx/32 dev vmbr0
  up ip route add 157.90.xx.xxx/32 dev vmbr0

in my lxc guest is this:
Code:
### Beispiel für Einzel-IP aus fremden Subnetz
# Loopback device:
auto lo
iface lo inet loopback

# device: eth0
auto eth0
iface eth0 inet static
  address <Zusatz-IP> so 157.90.xxx.xxx
  netmask 255.255.255.255
  pointopoint <Haupt-IP>
  gateway <Haupt-IP>

I started the lxc container, but i can't ping anyone.
So someone has a solution?
Regards Sebastian
 

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!