Skip to main content

Hetzner Bridge Network Configuration

Setting up Bridge

When you order a server from hetzner ( Auction / Normal ) the following would be the state assuming you have only purchased an additional IP and not a subnet

Hetzner Server

Bridge Mode

The following file contains the default network configuration on a default installation on Debian 11/12 on Hetzner.

nano /etc/network/interfaces
### Hetzner Online GmbH installimage
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp0s31f6
iface enp0s31f6 inet static
address 159.69.69.236
netmask 255.255.255.192
gateway 159.69.69.193
# route 159.69.69.192/26 via 159.69.69.193
up route add -net 159.69.69.192 netmask 255.255.255.192 gw 159.69.69.193 dev enp0s31f6

iface enp0s31f6 inet6 static
address 2a01:4f8:231:1526::2
netmask 64
gateway fe80::1

Now with the above config in place, to create the bridge, we will make changes as follows

### Hetzner Online GmbH installimage
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

# Physical interface - no IP configuration here
auto enp0s31f6
iface enp0s31f6 inet manual

# Bridge configuration
auto virbr0
iface virbr0 inet static
address 159.69.69.236
netmask 255.255.255.192
gateway 159.69.69.193
hwaddress ether 90:1b:0e:f1:70:66
dns-nameservers 8.8.8.8 8.8.4.4
bridge_ports enp0s31f6
bridge_stp off
bridge_fd 0
bridge_maxwait 0

iface virbr0 inet6 static
address 2a01:4f8:231:1526::2
netmask 64
gateway fe80::1
bridge_ports enp0s31f6
bridge_stp off
bridge_fd 0
bridge_maxwait 1
info

Please perform a reboot to confirm if everything works as expected, incase of any difficulties please reach out to our support.