Hetzner subnet with additional IPs - Driving me crazy for days!
This issue has been driving me crazy for days....
I've a Hetzner Dedi, I've 6 additional IPs for various projects. I needed more IPs so I ordered a /29 subnet from them too. Totalling to 12 IPs...
Here's my /etc/network/interfaces for the Host.
iface lo inet loopback
iface enp0s31f6 inet manual
pre-up /usr/sbin/ethtool -K enp0s31f6 tso off gso off
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp0s31f6/proxy_arp
iface vmbr0 inet static
up route add -net 195.x.x.192 netmask 255.255.255.248 gw 195.x.x.193 dev vmbr0
iface vmbr1 inet static
address 176.x.x.57 (First usable IP in the subnet)
My subnet is 176.x.x.56/29 (.56 to .63)
I've followed Hetzner's networking configuration guide and opted the "Network Configuration Bridged" method as all my VMs are KVM.
Bridge vmbr0 is used for VMs with additional IPs and each VM has unique Mac addresses assigned as generated by Hetzner.
VMs with additional single IPs are working perfectly without any issues, that is, it can access the internet and also anyone can access the VMs from the internet.
Bridge vmbr1 is the subnet and used for VMs that comes under the subnet.
Here comes my real problem and the headache of the week.
VMs can ping the host system, also it can access other VMs with additional single IPs.
it can't access the internet nor it can't be accessed from the internet.
When I try to ping 18.104.22.168 or any internet IP, the gateway pushes out (Destination host is unreachable)
/etc/network/interface of client VM that comes under the subnet
iface ens18 net static
address 22.214.171.124 (Second usable IP)
gateway 126.96.36.199 (Host subnet IP)
Some command outputs from the host
bridge name bridge id STP enabled interfaces
fwbr100i0 8000.4ade6b0f7240 no fwln100i0
fwbr101i0 8000.1e5f25c45715 no fwln101i0
fwbr102i0 8000.c23a9abd20d6 no fwln102i0
fwbr103i0 8000.1e1ef8b0df77 no fwln103i0
fwbr104i0 8000.8e9a5105ab37 no fwln104i0
fwbr105i0 8000.32d707c73ec4 no fwln105i0
vmbr0 8000.901b0ef795e2 no enp0s31f6
vmbr1 8000.8ab69a1f1e36 no tap106i0
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1