Hetzner VLAN with Cloud Networks

TUBEOF

New Member
Jan 18, 2022
1
0
1
22
Hey!

I use Hetzner and have a vSwitch there, which was connected to the so-called "Cloud Networks" by me.
The steps for this were taken from here:
https://docs.hetzner.com/cloud/networks/connect-dedi-vswitch/
I did not use the network config 1:1, but adapted it to my setup.

The problem:
I cannot reach any IP of the cloud network from created VMs.
From the Proxmox host itself, however, without any problems.
I can also reach the private IP of the KVM from the Cloud Network, but not from the KVM to the Cloud Network.

Apparently, the routing I do on the host is ignored.
I always have to define the routing again on the VM itself using:
Bash:
ip route add 10.0.0.0/16 via 10.0.10.1 dev eth1
Is there a way to fix / do this directly on the host?
I don't want anyone can see or change the routing there.

About the VM setup:
Public and private IPs run over two different NICs at the VM.

My network config from the host:
Code:
auto lo
iface lo inet loopback

iface lo inet6 loopback

iface enp0s31f6 inet manual
        up route add -net 88.XX.248.0 netmask 255.255.255.192 gw 88.XX.248.1 dev enp0s31f6

auto vmbr0
iface vmbr0 inet static
        address 88.XX.248.17/26
        gateway 88.XX.248.1
        bridge-ports enp0s31f6
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

iface vmbr0 inet6 static
        address 2a01:XXX:10b:5d0::1/64
        gateway fe80::1
        up ip -6 route add 2a01:XXX:10b:5d0::/64 dev vmbr0
        down ip -6 route del 2a01:XXX:10b:5d0::/64 dev vmbr0

auto vmbr0.4000
iface vmbr0.4000 inet static
        address 10.0.10.3/24
        mtu 1400
        up ip route add 10.0.0.0/16 via 10.0.10.1 dev vmbr0.4000
        down ip route del 10.0.0.0/16 via 10.0.10.1 dev vmbr0.4000

auto vmbr1
iface vmbr1 inet static
        address 178.XX.216.129/29
        bridge-ports none
        bridge-stp off
        bridge-fd 0

auto vmbr2
iface vmbr2 inet static
        address 157.XX.78.1/29
        bridge-ports none
        bridge-stp off
        bridge-fd 0
 

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!