[SOLVED] Hetzner additional IP-subnet network settings problem

Enis Topus

New Member
Dec 15, 2023
1
0
1
Hi,
Before I dive into my question, I want to mention that I've thoroughly explored the entire forum and Hetzner documentation, including relevant topics related to my issue. Despite my efforts, I couldn't find a solution, so I'm opening a new topic. There might be similar threads in the forum, but unfortunately, I couldn't find a resolution.
I have a dedicated server with Hetzner, which provides me with a primary IPv4 and IPv6 /64 address. I've installed Proxmox VE 8.1 on the server, and I can access it using the IPv4 address.
Subsequently, I ordered an IPv4 subnet /28. According to the documentation, this subnet is routed to the main or primary IP. Now, I want to use these subnet IPs and IPv6 addresses in my VMs, employing Routed Configuration. However, I'm unable to reach the internet from my VMs.

Primary IPv4 : 49.23.64.218 - Gateway : 49.23.64.193 - Mask : 255.255.255.192
IPv6 : 2a01:4f8:2200:472d::/64
Additional Subnet IP 183.47.183.64 - Mask : 255.255.255.240 - Broadcast : 183.47.183.79 - (Static routed on 49.23.64.218 by Hetzner)

Here's my network configuration on the host system, similar to the following (IPs are similar but altered):

# Loopback device:
auto lo
iface lo inet loopback

# device: eno1
auto eno1
iface eno1 inet static
address 49.23.64.218
netmask 255.255.255.255
pointopoint 49.23.64.193
gateway 49.23.64.193

iface eno1 inet6 static
address 2a01:4f8:2200:472d::2
netmask 128
gateway fe80::1
up sysctl -p

iface vmbr0 inet6 static
address 2a01:4f8:2200:472d::3
netmask 64
up ip -6 route add 2a01:4f8:2200:472d::/64 dev vmbr0

# Additional IPv4 Subnet , routed on primary IP by Hetzner
auto vmbr1
iface vmbr1 inet static
address 183.47.183.65
netmask 255.255.255.240
bridge_ports none
bridge_stp off
bridge_fd 0

--
I've activated in sysctl.conf the following lines

sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1
 

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!