Conversion from Bridged to Routed on Hetzner

usmannasir

New Member
Aug 26, 2024
1
0
1
Hi,

My bridged config


This is bridged networking on hetzner proxmox server

root@rescue /mnt2/etc/network # cat interfacesback
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp98s0f0
iface enp98s0f0 inet manual

iface enp98s0f0 inet6 manual

iface enp97s0f0 inet manual

iface enp97s0f1 inet manual

iface enp98s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
    address 95.216.72.86/26
    gateway 95.216.72.65
    bridge-ports enp98s0f0
    bridge-stp off
    bridge-fd 0
    up route add -net 95.216.72.64 netmask 255.255.255.192 gw 95.216.72.65 dev vmbr0
    up route add -net 135.181.52.232 netmask 255.255.255.248 gw 95.216.72.86  # Added line

iface vmbr0 inet6 static
    address 2a01:4f9:2b:8ac::2/64
    gateway fe80::1


my routed config



Code:
auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp98s0f0
iface enp98s0f0 inet static
    address 95.216.72.86/32         # Main IP
    gateway 95.216.72.65            # Gateway for Main IP

iface enp98s0f0 inet6 static
    address 2a01:4f9:2b:8ac::2/64  # IPv6 address
    netmask 64
    gateway fe80::1

# Routed Bridge Interface
auto vmbr0
iface vmbr0 inet static
    address 95.216.72.86/32         # Main IP (same as enp98s0f0)
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    up ip route add 135.181.52.232/32 dev vmbr0   # Route for the foreign IP
    up ip route add 95.216.72.64/26 via 95.216.72.65 dev vmbr0 # Add route for the subnet

iface vmbr0 inet6 static
    address 2a01:4f9:2b:8ac::2/64  # IPv6 address
    netmask 64
    up ip -6 route add 2a01:4f9:2b:8ac::/64 dev vmbr0


i've one single fail over ip and one subnet

Subnet:135.181.52.232
Netmask:255.255.255.248
Broadcast:135.181.52.239

my bridged config works, but as soon as i configure routed, network stops working
 
Last edited:

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!