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:
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:
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
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