[TUTORIAL] Adding permanent route to bridge device

djed-pve

New Member
Jun 14, 2025
1
0
1
There is already a post in this forum named "Adding permanent route to vmbr4", which has quality "Solved", however the proposed solution is no longer valid.
The original solution depositing route info in /etc/sysconfig/network-scripts/ is no (longer) applicable.

The actual config location is as argument to the up option in the bridge network configuration in /etc/networ/interfaces :

e.g.

Code:
auto vmbr0
iface vmbr0 inet static
    address 192.168.123.200/24
    bridge-ports enp2s0f3
    bridge-stp off
    bridge-fd 0
    up ip route add 192.168.252.0/24 via 192.168.123.252
    up ip route add 192.168.253.0/24 via 192.168.123.253